cancel
Showing results for 
Search instead for 
Did you mean: 

"The WakeUp timer interrupt doesn't run after the MCU wakes up from standby mode."

chai2145
Associate III

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!

chai2145_0-1727920790399.png

chai2145_1-1727920868314.png

chai2145_2-1727921311090.png

 

4 REPLIES 4
TDK
Guru

Is it enabled? HAL_NVIC_EnableIRQ and relevant flag in the RTC peripheral.

If you feel a post has answered your question, please click "Accept as Solution".

Yes, have added the following lines in RTC init

chai2145_0-1727927195824.png

 

It hit the breakpoint if only I removed the line to enter standby mode.

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..