1.. _stm32-pm-blinky-sample: 2 3STM32 PM Blinky 4############### 5 6Overview 7******** 8 9This sample is a minimum application to demonstrate basic power management 10behavior in a basic blinking LED set up using the :ref:`GPIO API <gpio_api>` in 11low power context. 12 13.. _stm32-pm-blinky-sample-requirements: 14 15Requirements 16************ 17 18The board should support enabling PM. For a STM32 based target, it means that 19it should support a clock source alternative to Cortex Systick that can be used 20in core sleep states, as LPTIM (:dtcompatible:`st,stm32-lptim`). 21 22Building and Running 23******************** 24 25Build and flash Blinky as follows, changing ``stm32l562e_dk`` for your board: 26 27.. zephyr-app-commands:: 28 :zephyr-app: samples/basic/blinky 29 :board: stm32l562e_dk 30 :goals: build flash 31 :compact: 32 33After flashing, the LED starts to blink. 34 35PM configurations 36***************** 37 38By default, :kconfig:option:`CONFIG_PM_DEVICE` and :kconfig:option:`CONFIG_PM_DEVICE_RUNTIME` are 39enabled, but user can also deactivate one or the other to see each configuration 40in play. 41