This is the documentation for the latest (main) development branch of
Zephyr. If you are looking for the documentation of previous releases, use
the drop-down menu on the left and select the desired version.
STM32 PM Blinky
This sample is a minimum application to demonstrate basic power management
behavior in a basic blinking LED set up using the GPIO API in
low power context.
The board should support enabling PM. For a STM32 based target, it means that
it should support a clock source alternative to Cortex Systick that can be used
in core sleep states, as LPTIM (
Building and Running
Build and flash Blinky as follows, changing
stm32l562e_dk for your board:
west build -b stm32l562e_dk samples/basic/blinky
After flashing, the LED starts to blink.