STM32 how to get last reset status
@floppes recommends to: Read RCC_CSR as soon as possible after startup, before initializing any other peripheral. It is safe to initialize your system clocks first (which is done in SystemInit() if you use ST’s libraries). Now, to determine the exact reset cause, here’s a full function to help you. Note that all reset flags can … Read more