Associate
April 2, 2026
Solved
Inaccurate tick period when enabling USE_TICKLESS_IDLE
- April 2, 2026
- 2 replies
- 189 views
Hello,
I am using STM32U575RGT6 with CubeMX 6.17 and the bundled X-CUBE-FREERTOS v1.4.0. After enabling USE_TICKLESS_IDLE, I observed that the tick period becomes inaccurate.
Specifically, the delay appears to be consistently shortened to about 0.875× of the expected value.
void StartDefaultTask(void const *argument) {
while (1) {
HAL_GPIO_TogglePin(LED_RED_GPIO_Port, LED_RED_Pin);
vTaskDelay(400);
}
}With USE_TICKLESS_IDLE disabled, the delay is approximately 400 ms as expected.
After enabling it, the delay is reduced to about 350 ms.
I have created a minimal project to reproduce the issue, and it shows the same behavior consistently. The project is attached.
Could anyone help explain the cause or suggest a fix?
Thank you.
