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.
Hi,
I have almost 50 variables defined in my program. Now I want values of those variables to be retained by controller after power cycle. I am using LPC2378 controller and it has battery back up RAM facility.
From KEIL manual I can found only way to give specific address is by _at or by defining pointer pointing to address in battery backup RAM. Using the above mentioned process I need to specifically mention address to every variable.
Can any one suggest me some other option by which I can define all those variable in battery back up RAM at a time?
Thanks in advance for help!
Regards, Prasad
Hi Prasad Deshpande,
Right-click on a Source File and select Options for File from the context menu to specify the properties and compiler or assembler options for that file.
specify the Memory Assignment
http://www.keil.com/support/man/docs/uv3/uv3_dg_property.htm
Memory Assignment
Only available for RealView ARM: assign a file or group to specify memory regions. Code/Const (RO), Zero Initialized Data (ZI), and standard data (RW) areas can be selected. Note that you should enter the available memory regions in the Target dialog and enable Use Memory Layout from Target Dialog in the Linker dialog.