cancel
Showing results for 
Search instead for 
Did you mean: 

Battery-backed RAM problem

egartrell
Associate
Posted on April 23, 2010 at 20:31

Battery-backed RAM problem

3 REPLIES 3
Posted on May 17, 2011 at 10:00

Most of the people coming to the forums have problems, the lack of traffic is probably a good indicator. The STR912 project I worked on has been deployed.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
baranovus
Associate III
Posted on May 17, 2011 at 10:00

Hello, clive1.

I tried to make battery backup but also failed. I work in IAR. I declare variable foo __no_init,  somewhere in program assign foo = 0x85 and print it out at the beginning of main. It shows foo = 0;

But RTC itself works. At the beginning of hardware initializations I call:

  SCU_APBPeriphClockConfig(__RTC,ENABLE); /*enable RTC clock*/

  SCU_APBPeriphReset(__RTC,DISABLE);      /*RTC out of RESET state*/ 

and  after that:

  RTC_DeInit();

  RTC_SRAMBattPowerCmd(ENABLE); 

Could you give a hint, what I'm missing?

Thanks.

egartrell
Associate
Posted on May 17, 2011 at 10:00

So, my rep is exaggerating...nobody is using this?