Keil Logo Arm Logo

Discussion Forum

NO_INIT data area

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Dave Cote
Posted
31-May-2001 23:49 GMT
Toolset
C51
New! NO_INIT data area
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
New! RE: NO_INIT data area
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
New! RE: NO_INIT data area
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.

Thanks

Next Thread | Thread List | Previous Thread Start a Thread | Settings

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.