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

RTC saved ram : how to disable zero init ?

Hi,

I'm using the RTC backup ram on a lpc23xx board in order to saved crucial varables.

But it seems it's always set to 0 at startup and I want to avoid that.

I'm using a scatter file and I define a rtc_ram section like this :

RW_RTCRAM 0xE0084000 0x000007FF { main.o (rtc_ram) }

I tried to use zero init at declaration , but It's always set to 0 :

volatile uc_saved_status_t uc_saved_status __attribute__((section("rtc_ram"),zero_init));

How can I bypass the init for the RTC ram ?

Thanks in advance