AnsweredAssumed Answered

A suggestion for a new register in STM32 processors

Question asked by Andrei Chichak on Sep 25, 2017

When using watchdog timers, the processor resets when your program fails to clear the watchdog timer within a predetermined period. The RCC_CSR has two bits that can be queried at boot time that indicate a watchdog reset, if they fire, leading you in your search for the root cause. 


What would be useful is if the current PC was stored at the beginning of a watchdog reset cycle. That would be such an amazing help in finding the erroneous code, especially when dealing with RTOS' where there are a lot of potential causes.