Associate III
November 16, 2023
Solved
LPTIM stops working when RTC is activated
- November 16, 2023
- 2 replies
- 1877 views
Hello,
I started with configuring all 4 of the U5's LPTIMs to "Count internal clock events", sourcing all of them with LSE and using different period values for each. The autogenerated code (STM32CubeIDE v1.13.2) worked, meaning each timer toggled independent GPIO outputs at the expected rates. The main.c file is attached.
Then I enabled RTC in the IOC and regenerated the code. If run from the debugger it works, but if run outside the debugger then the GPIO outputs toggled by the timers never get toggled. I can tell from a 5th GPIO output that it is in the do-nothing mainloop and not the Error_Handler() loop.
Is there some conflict or constraints between the LPTIMs and RTC that either prevent or limit how they can be used together?
Thanks
