Skip to content

Is it possible to make use of the STM32's low power modes using modm? #1084

Answered by salkinium
bid-p asked this question in Q&A
Discussion options

You must be logged in to vote

No, not at all. Of course you can manually enter these modes, but the entire architecture of modm is not designed for low-power operations. You could perhaps hack it, for example, the task scheduling is all based on polling, so you could enter WFI sleep mode in the main loop if you set the modm:platform:systick frequency to 1kHz, cos then you wake up at least every ms and run through the main loop once. But it's really a bad substitute for a proper RTOS which wakes up the right threads on an event.

Perhaps with the fiber scheduler, we could support low-power, but that's definitely not gonna happen anytime soon. I would recommend looking into a modern RTOS like Zephyr for low-power operati…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bid-p
Comment options

Answer selected by bid-p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants