cancel
Showing results for 
Search instead for 
Did you mean: 

How to wake up from standby mode?

DavidL_
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

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

View solution in original post

9 REPLIES 9

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)

 

KnarfB
Principal III

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

Sarra.S
ST Employee

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)

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thanks, I'll try that.

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

Would the idea behind this basically be to set up the IWDG to a certain time (e.g. the 30s) and then not update it to let it reset the system after the configured time?


@DavidL_ wrote:

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


As shown, the information is also in the datasheet!

Oh right, thanks!

exactly.