2024-01-26 03:59 AM
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):
I am using LSE for rtc clock:
if i try to disable the irqs then the interrupt fires again on __enable_irq()
Any hint will be appreciated :)
2024-01-26 05:49 AM - edited 2024-01-26 05:55 AM
Hello @Duccio,
Thank you for your question!
Have a look on this thread.
Also, I join you the RTC interrupts array in RM0493.
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.