Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Maarten Brock
11/29/14 01:36
Read: 883 times
The Netherlands

#190394 - toolchain?
Responding to: Kiran V. Sutar's previous message
Kiran V. Sutar said:
I am using AT89S52.
I have used the following: to read memory location 0xff0:
unsigned char code *Ptr=0xFF0;
The problem is:
Whenever I compile the code, this location is initialized to 0xff. I need to initialize this memory location (with a default ID) whenever I compile the source code.

How to initialize an unused ROM location in C?

Well this very much depends on the toolchain that you are using, but you forgot to tell is what that is.

List of 8 messages in thread
How to init a variable in ROM      Kiran V. Sutar      11/19/14 21:39      
   You can NOT write to ROM      David Prentice      11/20/14 04:35      
   Hex file      Daniel Contarino      11/20/14 15:18      
   Initialize code      Daniel Contarino      11/20/14 15:27      
   toolchain?      Maarten Brock      11/29/14 01:36      
   Using SDCC...      Oliver Sedlacek      12/11/14 05:50      
   that chip does not have any ROM      Erik Malund      12/12/14 08:50      
   Here is the solution I was looking for      Kiran V. Sutar      12/19/14 08:33      

Back to Subject List