Skip to main content
Graduate II
October 3, 2024
Question

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

  • October 3, 2024
  • 2 replies
  • 817 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

 

    This topic has been closed for replies.

    2 replies

    Super User
    October 3, 2024

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

    chai2145Author
    Graduate II
    October 3, 2024

    Yes, have added the following lines in RTC init

    chai2145_0-1727927195824.png

     

    chai2145Author
    Graduate II
    October 3, 2024

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

    Graduate II
    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