Skip to main content
Associate II
July 23, 2025
Question

RTC_TAMP_IRQHandler Getting continuously triggered.

  • July 23, 2025
  • 1 reply
  • 514 views

Hi, 
I have configured My RTC with LSE of 32.768Khz for STM32G0B1CETx

And In NVIC Setting RTC & TAMP interrupts are enabled..

All these are done using Cube Mx

After HAL_RTC_Init() call from main;  RTC_TAMP_IRQHandler is getting called continuously. 

Time and alarm is configured after  HAL_RTC_Init(). which is not even called.

Any inputs could be helpful.

Thank you

Suraj Prem

1 reply

TDK
Super User
July 23, 2025

Set a breakpoint in RTC_TAMP_IRQHandler. Examine the state of the RTC and TAMP to determine why it has called.

Note that these stay configured when the chip is reset, as long as power is not lost.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SPK_FWAuthor
Associate II
July 25, 2025

Hi,

When Interrupt is triggered, RTC_SP flag only WUTF in enabled rest all are zero. For TAMp_IER register all 6 interrupt seems to be disabled.

 

Thank you

TDK
Super User
July 25, 2025

Sounds like it's configured with an auto wakeup timer and that timer triggers the interrupt periodically.

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