Skip to main content
Visitor II
January 26, 2024
Question

RTC WakeupTimer interrupt triggered immediately

  • January 26, 2024
  • 1 reply
  • 1412 views

Hello everyone,

I'm working on a NUCLEO board (stm32wba52cg) and currently testing some of the baord's features, but i'm facing a strange problem with RTC. Problem is that the Interrupt of the wakeupTimer start firing immediatly after its initialization, then the program get stuck in a loop of infinite RTC IRQs (see the atteached screenshots):

Duccio_0-1706269846573.png

Duccio_2-1706269875070.png

I am using LSE for rtc clock:

Duccio_3-1706269923006.png

if i try to disable the irqs then the interrupt fires again on __enable_irq()

Any hint will be appreciated :) 

This topic has been closed for replies.

1 reply

Pierre_Paris
ST Employee
January 26, 2024

Hello @Duccio,

Thank you for your question!

Have a look on this thread. 

Also, I join you the RTC interrupts array in RM0493.

 RTC.PNG

For the timer peripherals in their default configuration, the prescaler and counter are "pre-loaded" via a shadow register, which means that when you write new prescaler and auto-reload values (PSC and ARR) the new values do not take effect until the next "update event". (See page 1043 of RM)

Best Regards,

Pierre

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.