Can the STM32F7 decide whether last boot option was power on or software reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-11 9: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?
- Labels:
-
RESET
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-11 10:45 AM
Have a look at the RCC control/status register.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-11 11:44 AM
Yes, that's possible by checking and clearing (!!!) respective bits in RCC_CSR register.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-12 9:18 AM
Thank you.
