Skip to main content
Visitor II
April 23, 2010
Question

Battery-backed RAM problem

  • April 23, 2010
  • 3 replies
  • 758 views
Posted on April 23, 2010 at 20:31

Battery-backed RAM problem

    This topic has been closed for replies.

    3 replies

    Graduate II
    May 17, 2011
    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.

    Explorer II
    May 17, 2011
    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.

    egartrellAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 10:00

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