Hi,
I'm using NRF_WDT and it works very good.
I would like to investigate my project failures and I want to save some data when watchdog is expired.
How can I catch the watchdog before it reset my application, so I will be able to save data?
Thanks!
Hi,
I'm using NRF_WDT and it works very good.
I would like to investigate my project failures and I want to save some data when watchdog is expired.
How can I catch the watchdog before it reset my application, so I will be able to save data?
Thanks!
Hi,
You can enable interrupt for the WDT TIMEOUT event to get notified when the WD has timed out, see Watchdog reset. The limitation is that you only get ~2 32KHz clock cycles inside the WDT interrupt handler before the reset is effectuated, so it's not giving you enough time to store information to flash. Instead you may try to store it to a "non initialized" section of RAM as my colleague Sigurd suggested in this thread: https://devzone.nordicsemi.com/f/nordic-q-a/30075/saving-the-location-of-watchdog-timeout