cancel
Showing results for 
Search instead for 
Did you mean: 

RTC_TAMP_IRQHandler Getting continuously triggered.

SPK_FW
Associate II

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

7 REPLIES 7
TDK
Super User

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_FW
Associate II

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

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".
SPK_FW
Associate II

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

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.

Hi Jojo

TAMP_SR all 6 flags are in Reset state.

SPK_FW_0-1753843545563.png

 

  Here are my CubeMx settings. I have not enabled Tamper Pins i assume.

SPK_FW_1-1753843623901.png

After this RTC init before configuring alarm itself my function jumps to  RTC_TAMP_IRQHandler 

SPK_FW_2-1753843730181.png

 

Thank You

 

 

Hi 

Attached .ioc file

Thanks