This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RAM data is retained without power?

SDK: 17.0.2

IDE: SES

nRF52832 module

Hi!

I have a nRF52832 based custom board operating on battery power.  I assigned a variable to the non_init section in SES and loaded a value.  I expected this would disappear if I disconnected power, so I unhooked the battery and powered off the connected nRF52 DK.  And I closed SES.  Then I powered up everything and ran the debugger to the point where I read my non_init variable from RAM.  It still had the data I wrote!  What gives?  Shouldn't this value have disappeared when powered down?

So I thought I would leave a few hours  go by in case there was a cap holding the RAM data active.  After something like 4 hours I still read the the value I wrote into the non_init RAM.

What I'd like to do is have some method to detect an initial power on reset state after connecting power and set some initial conditions for the application that will be used as long as power is on .... such as date and time.  Let me know if you can suggest a good way to do this.

Thanks!

Max

    

Related