Skip to main content
Antonio Alberto Iznaga Marín
Associate
April 5, 2017
Question

Stm32CubeMX change to systick priority cause hardware failure

  • April 5, 2017
  • 1 reply
  • 475 views
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

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    April 5, 2017
    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 VenmoUp vote any posts that you find helpful, it shows what's working..