STM32 PM Suspend to RAM
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 + ADC measurements and entropy.
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 (
The board shall have an RTC to use it during the standby mode as a replacement
for LPTIM (which is disabled). The board shall also have RAM retention to be
able to restore context after standby.
Building and Running
Build and flash Blinky as follows, changing
stm32wba55cg for your board:
west build -b stm32wba55cg samples/boards/stm32/power_mgmt/suspend_to_ram
After flashing, the LED starts to blink.