How to wake up from standby mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 5: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.
- Labels:
-
STM32C0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6:15 AM - edited ‎2025-02-06 6: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:
- external reset (NRST pin)
- IWDG reset
- wake-up event (WKUP pin, configurable rising or falling edge)
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6:27 AM
Thanks, I'll try that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6:32 AM
Thank you, I was looking in the datasheet which was the wrong place :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6:38 AM - edited ‎2025-02-06 6:38 AM
@DavidL_ wrote:I was looking in the datasheet which was the wrong place :)
As shown, the information is also in the datasheet!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 6:45 AM
Oh right, thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-06 7:28 AM
exactly.
