Question
IWDG and CPU Registers
I am working on STM32H7 (Cortex-M7) and using IWDG for monitoring. I am wondering if there is a way to record Cortex-M7 CPU registers (General Purpose (Rx), SP, LR and PC) when IWDG runs out. Either before or after the reset.
I understand the RCC register can provide a flag indicating source of the reset, but is there a way to get CPU registers value when the reset occurred?