Skip to main content
MKoca.1
Senior
March 8, 2021
Solved

When the external interrupt operates, the RTC interrupt breaks and does not enter the RTC interrupt again. Help please.

  • March 8, 2021
  • 6 replies
  • 1463 views

Hello to everyone. I am working on the stm32f429 board. I set up the RTC for every second. In RTC interrupt, I am trying to assign the hour minute second information to the variable and display it on the screen. There is also one more interrupt that I use to extract the data I get from the sensor. When there is information from the sensor, it enters this external interrupt. And when it enters this hack, the RTC breaks down. Never again goes into RTC interrupt. I could not figure out what could be the reason for this. Thank you from now.

This topic has been closed for replies.
Best answer by MKoca.1

I solved the problem. It is caused by an array in the LoraRxPacket function in the EXTI interrupt. After changing the value of #define, I forgot to update the value in that function. So I think data crush has occurred. RTC interrupt now works after correcting the value. Thank you very much for your valuable answers.

@Community member​  @Community member​ 

6 replies

MKoca.1
MKoca.1Author
Senior
March 8, 2021

0693W000008wHU1QAM.jpg0693W000008wHTwQAM.jpg 

The two cut images I mentioned are present in the pictures. When EXTI15_10_IRQHandler enters interrupt, it does not enter RTC_Alarm_IRQHandler interrupt again.

waclawek.jan
Super User
March 8, 2021

Read out and compare the content of EXTI registers before and after the EXTI handled being called.

JW

MKoca.1
MKoca.1Author
Senior
March 8, 2021

First of all, thank you for your answer. When it enters EXTI interrupt, the seconds minute hour counters at the RTC interrupt stop and do not continue counting. So the clock stops. Also, it does not enter RTC interrupt.

@Community member​ 

Tesla DeLorean
Guru
March 8, 2021

Is there significant dwell time in the EXTI IRQ Handler? Looks to potentially block.

What would you expect to happen if the RTC Alarm isn't advanced sufficiently into the future? ie if you miss the deadline would you expect it to fire perhaps in 23:59 hours/minutes ?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
waclawek.jan
Super User
March 8, 2021

> the seconds minute hour counters at the RTC interrupt stop and do not continue counting

That may be your perception due to the shadow feature of RTC.

Read out and compare the content of EXTI registers before and after the EXTI handled being called.

JW

MKoca.1
MKoca.1AuthorBest answer
Senior
March 8, 2021

I solved the problem. It is caused by an array in the LoraRxPacket function in the EXTI interrupt. After changing the value of #define, I forgot to update the value in that function. So I think data crush has occurred. RTC interrupt now works after correcting the value. Thank you very much for your valuable answers.

@Community member​  @Community member​