cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32CubeMX change to systick priority cause hardware failure

Posted on April 05, 2017 at 16:45

Hi, I'm using stm32CubeMX v4.20 and after changing systick priority to 15(lowest) my project runs into hardware failure. If i changed back to zero, problem disappears. Any Inside on why?

best regards,

Tony

1 REPLY 1
Posted on April 05, 2017 at 17:41

>>

Any Insight on why?

You have higher priority code blocking on HAL_Delay(), which is waiting on a variable incremented by SysTick? You block, interrupt can't preempt.

This really should have been implemented using a free running timer's counter.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..