TIM6 or TIM7 as SysTick clock…

A year ago I tried to set the SysTick from the LL drivers but the code generated by CubeMX didn’t worked. There were no support for it from ST.M. so I had to find an alternative. I learned that TIM6 and 7 can be used for that, and when I started to work at my own alternative to CubeMX, I did it thinking I’ll use LL drivers. So the options were already there…

Meantime, I switched to SPL drivers but the option to use those timers as SysTick remained, even if is no longer needed. Why is still there then? Well, VPC (the name of my own visual pin configurator) is provided with sources and maybe someone will adapt it to generate projects for LL driver.

If you want to test them, all you need to do is to select the right option from the “Clock setup” window. Once you’ve set one of the two timers as SysTick, you can’t use it for anything else. The timer will increment the my_ticks global variable at every one millisecond and there is the my_delay_ms function that use it to count the required delay time.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.