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

RAM state after reset by WatchDog

Hello Nordic team,

I'm looking into solution to pass data to my application after a Reset using the RAM of my nrf52840.

Looking at the documentation, this picture troubles me: 

I'm interested into the RAM state after a WatchDog reset, and it appears that RAM should be reset on the picture. But just after there is a note telling that the RAM is never reset ? 

So I made some tests using  a non_init section as described in this bug : https://devzone.nordicsemi.com/f/nordic-q-a/34395/status-of-sram-during-an-over-the-air-update/132658#132658

After a WD reset, the data i wrote in the section are still here.

So what is the case of corrumption the note talks about ?  Is data written in a non_init section reliable affter a WD reset ? 

Thanks in advance,

Aloïs KYROU

Parents Reply
  • Hey Heidi,

    Thanks for this, I didn't saw you answered !

    So for the product we are designing the most probable cause of a reboot is the Watchdog, but we would like to save a few data for the next boot...

    This is the only solution I see, RAM struct in .non_init section with a CRC calculation to ensure data is not corrupted, can you think of any other way to pass data to next boot after Watchdog reboot ? 

    Thanks in advance !

    Aloïs KYROU.

Children
Related