2025-02-06 05:37 AM
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
Am I missing something or how am I supposed to continue from here?
Solved! Go to Solution.
2025-02-06 06:21 AM
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
2025-02-06 06:15 AM - edited 2025-02-06 06:20 AM
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:
So your options are:
2025-02-06 06:21 AM
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
2025-02-06 06:25 AM
Hello @DavidL_,
As already said by everyone, always check this table in your product RM:
"-" = 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.
2025-02-06 06:27 AM
Thanks, I'll try that.
2025-02-06 06:32 AM
Thank you, I was looking in the datasheet which was the wrong place :)
2025-02-06 06:35 AM
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?
2025-02-06 06:38 AM - edited 2025-02-06 06:38 AM
@DavidL_ wrote:I was looking in the datasheet which was the wrong place :)
As shown, the information is also in the datasheet!
2025-02-06 06:45 AM
Oh right, thanks!
2025-02-06 07:28 AM
exactly.