cancel
Showing results for 
Search instead for 
Did you mean: 

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?

mov
Associate II

stm32f746 Low-power mode

5 REPLIES 5
SBEN .2
Senior II

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:

0693W00000Bd8qvQAB.png 

0693W00000Bd8rAQAR.png 

Best regards,

@SBEN .2​ 

mov
Associate II

0693W00000BdJ2iQAF.jpgI 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.

mov
Associate II

The HAL documentation is not good enough, unfortunately, but everything can be solved by experiments 🙂

mov
Associate II

By the way, it's not about HARD FAULT. The question is why does the controller reset when exiting POWER DOWN mode.

Mohamed Aymen HZAMI
ST Employee

Hello @Community member​,

For Standby and Shutdown we have a system reset after waking up, otherwise the other modes continue the execution.

Mohamed Aymen.