使用新版本CubeMX.4.14.0时提示:
WARNINGS:
it is strongly recommended to use a timebase source other than the systick when freertos is userd.
the timebase source can be changed from the pinout tab under sys
CubeMX现在升级的有点二了,居然推荐FreeRTOS的时钟节拍不使用滴答定时器,而是用其它的定时器。
FreeRTOS的port.C文件是基于滴答定时器的,其它定时器的话,使用低功耗的tickless模式得修改底层了,部分其它功能似乎也要修改。
==================================
WARNINGS:
it is strongly recommended to use a timebase source other than the systick when freertos is userd.
the timebase source can be changed from the pinout tab under sys
我也使用生成的代码,这个问题我估摸着是这样的。
第一 FreeRTOS 肯定使用的是 systick
第二 提到的 recommended to use a timebase other 应该说的HAL_IncTick() 还是需要用到的;由于FreeRTOS使用了systick ,所以推荐使用其他的时基源来IncTick