2024-10-02 07:09 PM - edited 2024-10-02 07: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!
2024-10-02 08:05 PM
Is it enabled? HAL_NVIC_EnableIRQ and relevant flag in the RTC peripheral.
2024-10-02 08:41 PM - edited 2024-10-02 08:47 PM
Yes, have added the following lines in RTC init
2024-10-02 09:04 PM
It hit the breakpoint if only I removed the line to enter standby mode.
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