Hello, I'm using stm32f746 MCU with CMSIS-RTOS2, all working fine except: after wakeup from STANDBY Mode, MCU is not continue execute code, it start from main() reset. Which "Low-power mode" mode I must to use for continue code execution after wakeup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-07 8:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-08 2:32 AM
Hello @Community member​ ,
This indicates that the MCU has been reset (a hard fault probably). Could you clarify if you need to restart debugging or that you find yourself in the entry point after exit of the low power mode.
Otherwise, to answer you question here are extracts from the reference manual:
Best regards,
@SBEN .2​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-09 9:56 AM
I solved the problem using STOP mode: HAL_PWR_EnterSTOPMode (PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFE);
Now MCU continue execute code from enter power down state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-09 9:59 AM
The HAL documentation is not good enough, unfortunately, but everything can be solved by experiments :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-09 10:05 AM
By the way, it's not about HARD FAULT. The question is why does the controller reset when exiting POWER DOWN mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-07-12 1:39 AM
Hello @Community member​,
For Standby and Shutdown we have a system reset after waking up, otherwise the other modes continue the execution.
Mohamed Aymen.
