I am converting from the IAR compiler to Keil and cannot find reference to defining segments like I used to. Specificly I used a seg known as NO_INIT in XDATA for variables I did not want altered on power up.
Any help would be great.
Read-Only
Author Andrew Neil
Posted 4-Jun-2001 22:52 GMT
Toolset C51
RE: NO_INIT data area
Andrew Neil
This is common among many compilers, but I don't think that Keil actually has such a notion?
Are you trying to implement some sort of non-volatile memory?
It sounds like you've probably already searched the Compiler & Linker manuals for suitable options.
The file startup.a51 controls the initial clearing of XDATA, etc - could you modify this to give an uninitialised area, and then use Linker controls to put your non-volatile variables into that area?
See Chapter 6, "Advanced Programming Techniques" in the C51 User's Guide
Read-Only
Author Dave Cote
Posted 5-Jun-2001 15:02 GMT
Toolset C51
RE: NO_INIT data area
Dave Cote
Correct, I am working on getting a non-volatile area defined that does not get initialized on start-up. A place I can drop variables that remain intact.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.