Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RAM retention problem

Hello,

      I'm using nRF5 SDK with version 15, nRF52832 IC and softdevice s132. I need to save hold the data in the ram even in sleep mode. I'm using the below code. However it did not resolved my issue. 

 sd_power_ram_power_set(4,(POWER_RAM_POWER_S0POWER_On << POWER_RAM_POWER_S0POWER_Pos) |
    (POWER_RAM_POWER_S1POWER_On << POWER_RAM_POWER_S1POWER_Pos) |
    (POWER_RAM_POWER_S0RETENTION_On << POWER_RAM_POWER_S0RETENTION_Pos) |
    (POWER_RAM_POWER_S1RETENTION_On << POWER_RAM_POWER_S1RETENTION_Pos));

Related