2018-06-27 01:08 PM
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 #stm32l476rg2018-06-28 12:18 AM
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.