cancel
Showing results for 
Search instead for 
Did you mean: 

What timers are free

LMI2
Lead

Cube/HAL shows some nice Timers, are they free. That is are they used by for instance HAL_Delay or something else. What about the examples and their timer usage.

3 REPLIES 3
Ozone
Lead

Last time I checked, Cube "mis"-used the SysTick timer for delays etc.

But you could examine the source code yourself.

LMI2
Lead

What timers are free. Sorry about unclear heading, by the way. I corrected it now. The forum said first that I can't make questions and I had to make a new one quickly. SysTick seems to have its own timer. That would be good.

SysTick is a core peripheral, not an ST provided one.

Surely CubeMX flags which one it uses, or you get to select it.

For the examples, hard to say, couldn't take more than a minute to grep the source, and figure the HAL_Tick source.

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