2019-03-11 09:01 AM
I want to do different things in my STM32F7-microcontroller depending on whether someone turned on power (meaning ALL components on the PCB recently started up) or the micrcontroller was reset through a software reset (meaning ONLY the STM32F7-microcontroller on the PCB is starting up). It is possible to distinguish between the cases from within the source code?
2019-03-11 10:45 AM
Have a look at the RCC control/status register.
2019-03-11 11:44 AM
Yes, that's possible by checking and clearing (!!!) respective bits in RCC_CSR register.
2019-03-12 09:18 AM
Thank you.