Skip to main content
Associate III
October 3, 2024
Question

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

  • October 3, 2024
  • 2 replies
  • 1857 views

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

 

2 replies

TDK
October 3, 2024

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""."
chai2145Author
Associate III
October 3, 2024

Yes, have added the following lines in RTC init

chai2145_0-1727927195824.png

 

chai2145Author
Associate III
October 3, 2024

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

Tesla DeLorean
Guru
October 3, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..