Part 1
요약·해설
LPTIM 대체 RTC와 아직 미지원인 SPI loopback을 설명합니다.
RAM context
RTC
GPIO · ADC · entropy
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
1B5CE6625272223FBB3C8D30EB6A9F2639AEDA382017DEAAD4627D027AA5480A
.. _stm32-pm-suspend-to-ram-sample:
STM32 PM Suspend to RAM
#######################
Overview
********
This sample is a minimum application to demonstrate basic power management
behavior in a basic blinking LED set up using the :ref:`GPIO API <gpio_api>` in
low power context + ADC measurements and entropy.
SPI loopback is also available but not yet implemented for Suspend To RAM PM
mode.
.. _stm32-pm-suspend-to-ram-sample-requirements:
Requirements
************
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 (:dtcompatible:`st,stm32-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:
.. zephyr-app-commands::
:zephyr-app: samples/boards/stm32/power_mgmt/suspend_to_ram
:board: stm32wba55cg
:goals: build flash
:compact:
After flashing, the LED starts to blink.
PM configurations
*****************
By default, :kconfig:option:`CONFIG_PM_DEVICE` and :kconfig:option:`CONFIG_PM_DEVICE_RUNTIME`
are enabled.
Part 3
한국어 전문 번역
개요
Low-power context에서 GPIO API를 사용하는 기본 blinking LED 구성에 ADC measurement와 entropy를 더해 power-management 동작을 보여주는 최소 application입니다.
SPI loopback도 사용할 수 있지만 Suspend to RAM PM mode에는 아직 구현되지 않았습니다.
요구 사항
Board가 PM 활성화를 지원해야 합니다. STM32 기반 target에서는 core sleep state에서도 사용할 수 있는 Cortex SysTick 대체 clock source를 지원해야 하며, 그 예가 LPTIM(st,stm32-lptim)입니다.
Board에는 standby mode에서 비활성화되는 LPTIM을 대신해 사용할 RTC가 있어야 합니다. 또한 standby 뒤 context를 복원할 수 있도록 RAM retention을 지원해야 합니다.
Build와 실행
stm32wba55cg를 사용하는 board로 바꿔 다음과 같이 Blinky를 build하고 flash합니다.
west build -b stm32wba55cg samples/boards/stm32/power_mgmt/suspend_to_ram
west flash
Flash 뒤 LED가 blink하기 시작합니다.
PM configuration
기본적으로 CONFIG_PM_DEVICE와 CONFIG_PM_DEVICE_RUNTIME이 활성화됩니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.