How to implement low-power support with tickless mode in FreeRTOS
Hello everyone,
I'm using Board NUCLEO-U031R8 for testing now.
I have an old FreeRTOS project designed for a power-saving application, and I am preparing to migrate it to a new IC STM32U031 series MCU.
In the old project, setting configUSE_TICKLESS_IDLE to 1 allowed the system to enter low-power mode when tasks were idle, and the low-power support feature provided by the manufacturer.
So I started with STM32CubeMX to create a simple project and install "X-CUBE-FREERTOS" middleware (CMSIS RTOS2), and set configUSE_TICKLESS_IDLE to 1. then using STM32CubeIDE to import the .ioc file, last adding a long-duration LED blink task to make sure the system would entry tickless idle mode.
The LED operates as expected, but I noticed that the current consumption averages around 5mA, which suggests that low-power features might not be functioning as intended. Do I missing something or wrong understanding?
Is there a recommended way to achieve low-power mode with tickless functionality in FreeRTOS?
Regards
Kein.
