cancel
Showing results for 
Search instead for 
Did you mean: 

Why does STM32Cube recommend to not use SysTick

Philipp Legrum
Associate II
Posted on June 27, 2018 at 22:08

as TimeBase Source?

Today, I've been trying to activate FreeRTOS' USE_TICKLESS_IDLE feature.

It turns out that the tickless idle --in fact it is a unnecessary tick suppression-- works only when Timebase Source is SysTick because it is hard-coded so in the FreeRTOS port. (I'm using the latest CubeMX and firmware package.)

While this is perfectly fine for me, I'm curious why CubeMX keeps recommending not tu use SysTick as Time Base.

Thanks, Phil

#tickless-idle #systick #stm32l476rg
1 REPLY 1
Ben K
Senior III
Posted on June 28, 2018 at 09:18

The HAL has its own timebase which it uses for timeout detection. This was originally based on the SysTick interrupt, but in order to be able to operate alongside the FreeRTOS, it has to use a TIM timer instead.