2022-06-10 02:59 AM
I am getting desperate trying to solve this issue.
When I add some content to HAL_TIM_PeriodElapsedCallback the main loop gets frozen but still continue receiving call on HAL_TIM_PeriodElapsedCallback.
Could somebody help me out with this? I have been dealing with this issue for almost 3 days and don't know what could be the problem I have tried changing the priorities of the timers, prescales, moving functionality out of the timers IRQ handlers...
Thanks in advance.
Solved! Go to Solution.
2022-06-10 04:54 AM
Never mind! Solved! It was a library imported from another project which was modifying the registers of one of the timers used on my project! It was driving me crazy... Thanks for the help anyway :)
2022-06-10 03:05 AM
Try decreasing the interrupt rate, i.e. increase (significantly - 10x or even more) TIMx_ARR or TIMx_PSC.
JW
2022-06-10 03:24 AM
I tried by x10, x100 and x1000 and same thing. :(
2022-06-10 03:38 AM
Have also tried with several combinations changing the priority but nothing.
2022-06-10 04:54 AM
Never mind! Solved! It was a library imported from another project which was modifying the registers of one of the timers used on my project! It was driving me crazy... Thanks for the help anyway :)