Get Program Counter after WatchDog reset
Posted: Mon Jan 20, 2020 7:14 pm
Hi!
I have a black F407 board running pretty stable. However, every now and then the watchdog kicks in and re-sets the board.
I know this as I have a SD card attached where debug info is stored, and I do check IWatchdog.isReset() to detect if re-set was caused by watchdog.
On the good old Arduinos, there is this great tutorial over at Megunolink on how to store the value of the program counter during a watchdog re-set:
https://www.megunolink.com/articles/how ... -watchdog/
However, I'm not able to figure out how to attach an ISR on the IWatchdog to complete the same, or if there exist some other way to extract the Program counter during or right after a watchdog event. Do anybody in here know how to complete this?
BR
Comiter
I have a black F407 board running pretty stable. However, every now and then the watchdog kicks in and re-sets the board.
I know this as I have a SD card attached where debug info is stored, and I do check IWatchdog.isReset() to detect if re-set was caused by watchdog.
On the good old Arduinos, there is this great tutorial over at Megunolink on how to store the value of the program counter during a watchdog re-set:
https://www.megunolink.com/articles/how ... -watchdog/
However, I'm not able to figure out how to attach an ISR on the IWatchdog to complete the same, or if there exist some other way to extract the Program counter during or right after a watchdog event. Do anybody in here know how to complete this?
BR
Comiter