Visitor II
April 8, 2025
Question
Code Gets Stuck in RTC Initialization . Works Occasionally, Fails Most of the Time
- April 8, 2025
- 1 reply
- 531 views
Hi all,
I'm currently working on a project involving bidirectional communication (TX and RX), and I'm encountering an issue with the RTC initialization.
The problem is that my code often gets stuck in the MX_RTC_Init() function. Interestingly, it works fine occasionally, but most of the time it hangs at this point during startup.
As part of my troubleshooting, I tried disabling the RTC interrupt, and after that, the code seems to run consistently without getting stuck.
Has anyone experienced something similar or have any suggestions on what might be causing this inconsistency? Could it be related to the RTC clock source or interrupt configuration?
Any help or insights would be appreciated.
Thanks
