Setting up FreeRTOS for low-power usage using LPTIM not possible in CubeMX
- March 6, 2019
- 3 replies
- 2873 views
I just wonder why I am not able to set up LPTIM1 as time base for FreeRTOS.
Background: For battery powered applications I often use FreeRTOS with tickless mode and a sleep instruction in the idle hook function. This, allows automatic switching in sleep mode, when there is nothing to do. Perfect,
Problem: When I use a normal timer as time base for my RTOS then I am only allowed to use the "Sleep Mode". But in sleep mode the µC consumes a high amount of power. So I would like to use the "Stop Mode" But in "Stop Mode", the core is stopped and the only oscillators that are able to run are the LSE and LSI.
Setting up FreeRTOS for low-power usage using LPTIM1 or LPTIM2 as clock base is not possible in CubeMX. See the attached screenshot.
Does anybody ran into a similar problem? How do you setup your RTOS based systems for ultra-low-power applications?