This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

nrf52 RAM Retention issue

Hi, In my project i would like to save 100 bytes of information in RAM before going to System-off sleep mode.I have tested the example project given in sdk11 works okay.Have used the same in my application as well.I am using softdevice S132 .Configured a button to wake up. My issue begins here :-( -After programming my board I used the push button to wake my device,the RAM data was available and works perfectly.But if I power cycle the board once,and after my device sleeps if I wake my device by pressing the push button the RAM details are not read.But what I noticed is the register GPREGRET was written to and read as expected.

-Should i take any special care while saving data to RAM?

Parents
  • Bui, I just ported the code into keil just the ram retention logic.What i observed was while in debug mode the ram retention works otherwise it does not.When I check the noint the code literally hangs up due to some clock registers being uninitialized.Attaching the main file for you reference. The hash defines used below are from the ram retention sample code.

Reply
  • Bui, I just ported the code into keil just the ram retention logic.What i observed was while in debug mode the ram retention works otherwise it does not.When I check the noint the code literally hangs up due to some clock registers being uninitialized.Attaching the main file for you reference. The hash defines used below are from the ram retention sample code.

Children
No Data
Related