Skip to main content
Graduate
February 6, 2025
Solved

How to wake up from standby mode?

  • February 6, 2025
  • 3 replies
  • 1531 views

I am using an stm32c011 MCU and want to put my device into standby mode and then periodically wake it up (every 30s or so).

I have seen guides which use the RTC to do that, but cube mx doesn't show me a WakeUp option on my RTC

DavidL__0-1738849020205.png

Am I missing something or how am I supposed to continue from here?

    This topic has been closed for replies.
    Best answer by KnarfB

    On a STM32C0, RTC cannot wakeup from standby mode, see ref.man Table 19. "Device resources enabled in different operating modes"

    But, for short intervals like 30s, you may use the IWDG for that.

    hth

    KnarfB

    3 replies

    Super User
    February 6, 2025

    The Data Sheet and/or Reference Manual will list all the available ways to exit the various low-power modes - so look there to see what RTC feature(s) are available to wake-up...

    An Alarm, perhaps ... ?

     

    PS:

    Datasheet says RTC is turned off in Standby Mode - so not a wakeup option:

    AndrewNeil_0-1738851531179.png

     

    So your options are:

    • external reset (NRST pin)
    • IWDG reset
    • wake-up event (WKUP pin, configurable rising or falling edge)

     

    KnarfBAnswer
    Super User
    February 6, 2025

    On a STM32C0, RTC cannot wakeup from standby mode, see ref.man Table 19. "Device resources enabled in different operating modes"

    But, for short intervals like 30s, you may use the IWDG for that.

    hth

    KnarfB

    DavidL_Author
    Graduate
    February 6, 2025

    Thanks, I'll try that.

    ST Employee
    February 6, 2025

    Hello @DavidL_

    As already said by everyone, always check this table in your product RM: 

     

    SarraS_0-1738851914325.png

    "-" = resource not available / without wake-up capability (grayed-out columns)

    DavidL_Author
    Graduate
    February 6, 2025

    Thank you, I was looking in the datasheet which was the wrong place :)

    Super User
    February 6, 2025

    @DavidL_ wrote:

    I was looking in the datasheet which was the wrong place :)


    As shown, the information is also in the datasheet!