Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Watchdog RAM Retention

Hi! I'm trying to save some variables after a watchdog reset for debug why my application hangs up.

I add a ram section on flash_placement.xml ( <ProgramSection alignment="4" keep="Yes" load="No" name=".ram_persist" address_symbol="__start_ram_persist" end_symbol="__stop_ram_persist" size="8" /> ) and i use the variable as uint32_t __attribute__((section (".ram_persist"))) watchdog;

After a quick test, the variables don't hold the value after watchdog reset. So, it's possible to hold data in ram after a watchdog reset ?

Thanks

PS: I'm using segger embedded studio with a custom nrf52840 board (also i use the softdevice and the buttonless bootloader)

Parents Reply Children
Related