If you don't clear RCC->CSR after reading it, then it may not get cleared when the MCU is reset, leading to an inaccurate representation of the reason for the last reset.For example, on an STM32L496, if I connect power, resulting in the reset reasons...