2017-09-25 11:17 AM
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.
#architecture #stm32