Skip to main content
LMI2
Senior III
July 23, 2019
Question

What timers are free

  • July 23, 2019
  • 2 replies
  • 1062 views

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.

This topic has been closed for replies.

2 replies

Ozone
Principal
July 24, 2019

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

But you could examine the source code yourself.

LMI2
LMI2Author
Senior III
July 24, 2019

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.

Tesla DeLorean
Guru
July 24, 2019

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