Skip to main content
Visitor II
July 8, 2021
Question

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

  • July 8, 2021
  • 5 replies
  • 1326 views

stm32f746 Low-power mode

    This topic has been closed for replies.

    5 replies

    Visitor II
    July 8, 2021

    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​ 

    movAuthor
    Visitor II
    July 9, 2021

    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.

    movAuthor
    Visitor II
    July 9, 2021

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

    movAuthor
    Visitor II
    July 9, 2021

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

    ST Employee
    July 12, 2021

    Hello @Community member​,

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

    Mohamed Aymen.