We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
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
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