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

--ramwr values persist after reboot (using nrfjprog to set values)

Hi All,

I have an application running on the nRF52832.   From within the application I can store data to 0x2000 2010 - 0x2000 2028  and read the data back after a reboot/power cycle with no problem after I implemented the following code in my save_state():

#if defined(NRF52832_XXAA) || defined(NRF51422) || defined(NRF51822)
     NRF_POWER->RAMON |= (POWER_RAMON_OFFRAM0_RAM0On << POWER_RAMON_OFFRAM0_Pos) |
     (POWER_RAMON_OFFRAM1_RAM1On << POWER_RAMON_OFFRAM1_Pos);
#endif

What I'm trying to do now is program multiple devices using nrfjprog,  which works well, but when I write to these memory locations the data is only good for the first run.  If I cycle power to the board it doesn't remember the values I wrote using nrfjprog --ramwr   (or --memwr)    I even do --verify to confirm the write.

Is there an nrfjprog command I need to give that is similar to my RAMON code above?

thanks much!
Bob

Related