2021-10-15 02:11 AM
Hello ST community,
In the software STM32CubeMX there is the possibility to select different timebase sources. By default the SysTick is selected. What criteria should be considered to decide which timebase to use ? What is the advantage/disadvantage of the other timebase sources? Is there an effect on precision or on energy consumption.
Are the other timebase options relevant for applications with an RTOS only? Mostly I read that in combination with a RTOS the SysTick is not used for unknown reasons.
Many thanks
Solved! Go to Solution.
2021-10-15 06:47 AM
IMHO this is mainly for RTOS use when SysTick is used for the scheduler. Since SysTick is part of the ARM core, it is more portable using it in the RTOS than using a vendor specific peripheral timer. The timer you are specifyfing as time base will be used in HAL for delays and timeouts. So you have two independent interrupt sources avoiding potential deadlocks or interference. SysTick can be disabled but I doubt that you would see any significant power savings when doing so.
hth
KnarfB
2021-10-15 06:47 AM
IMHO this is mainly for RTOS use when SysTick is used for the scheduler. Since SysTick is part of the ARM core, it is more portable using it in the RTOS than using a vendor specific peripheral timer. The timer you are specifyfing as time base will be used in HAL for delays and timeouts. So you have two independent interrupt sources avoiding potential deadlocks or interference. SysTick can be disabled but I doubt that you would see any significant power savings when doing so.
hth
KnarfB
2024-02-05 08:38 PM
That link is now dead. Any chance you have a backup copy?