2021-03-08 02:58 AM
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.
Solved! Go to Solution.
2021-03-08 06:56 AM
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
2021-03-08 03:01 AM
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.
2021-03-08 03:30 AM
Read out and compare the content of EXTI registers before and after the EXTI handled being called.
JW
2021-03-08 05:36 AM
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
2021-03-08 05:53 AM
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 ?
2021-03-08 06:44 AM
> 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
2021-03-08 06:56 AM
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