2025-07-23 6:03 AM
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
2025-07-23 6:07 AM - edited 2025-07-23 6:07 AM
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.
2025-07-24 9:30 PM
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
2025-07-25 7:30 AM
Sounds like it's configured with an auto wakeup timer and that timer triggers the interrupt periodically.
2025-07-29 6:34 AM
Hi, I have not configured auto wake. I am using Cube Mx for initiation. I have enabled Alarm A but even before Init of Alarm interrupt is getting triggered..
Thank you
2025-07-29 7:58 AM
Hello,
Can you read the status of the TAMP_SR register when this issue happens ?
If you can share your .ioc or project it would be very helpful.
Thanks.
2025-07-29 7:49 PM
Hi Jojo
TAMP_SR all 6 flags are in Reset state.
Here are my CubeMx settings. I have not enabled Tamper Pins i assume.
After this RTC init before configuring alarm itself my function jumps to RTC_TAMP_IRQHandler
Thank You
2025-07-29 8:57 PM