"The WakeUp timer interrupt doesn't run after the MCU wakes up from standby mode."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 7:09 PM - edited ‎2024-10-02 7:11 PM
Hi,
Does anyone know if it's normal for the RTC_IRQHandler not to trigger when the MCU wakes up from standby mode using the wake-up timer? I tried setting a breakpoint in the RTC_IRQHandler, but the problem is that it doesn't hit the breakpoint when the MCU successfully wakes up.
Below is my code.
Thanks!
- Labels:
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 8:05 PM
Is it enabled? HAL_NVIC_EnableIRQ and relevant flag in the RTC peripheral.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 8:41 PM - edited ‎2024-10-02 8:47 PM
Yes, have added the following lines in RTC init
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-02 9:04 PM
It hit the breakpoint if only I removed the line to enter standby mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-03 12:14 AM - edited ‎2024-10-03 12:16 AM
Exiting STANDBY is via a RESET
Assume everything is destroyed and needs to be enabled. RTC should maintain time and content, and use LSE.
Don't assume the debugger will survive the power off and reset. Instrument via a serial port to understand what's going on internally.
Look at CubeL0 examples for STANDBY and try those
Up vote any posts that you find helpful, it shows what's working..
