• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/11-Mar-2024-159

src/11-Mar-2024-4227

CMakeLists.txtD11-Mar-2024197 85

README.rstD11-Mar-20241 KiB4128

prj.confD11-Mar-202495 54

sample.yamlD11-Mar-2024487 1918

README.rst

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