This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Storing variables at Battery back up RAM

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

Parents
  • HI.

    <quote>
    Do I need to insert this line for every variable?
    </quote>

    sorry i dont know the answer to it.

    if u need it for evry variable and u have lot of variables it can be a lot of work.

    but if u do u can put all yo're non volatile variables into a structure. and then u have one variable and only one adress.

    Always yo're freind.

    Zeusti.

Reply
  • HI.

    <quote>
    Do I need to insert this line for every variable?
    </quote>

    sorry i dont know the answer to it.

    if u need it for evry variable and u have lot of variables it can be a lot of work.

    but if u do u can put all yo're non volatile variables into a structure. and then u have one variable and only one adress.

    Always yo're freind.

    Zeusti.

Children