samples/boards/stm32/power_mgmt/standby_shutdown/README.html · samples/boards/stm32/power_mgmt/standby_shutdown/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · STM32 Power Modes

STM32 PM Standby·Shutdown

LED2의 상태에 따라 button press가 서로 다른 low-power mode를 선택합니다.

Official pathsamples/boards/stm32/power_mgmt/standby_shutdown/README.html
Source filesamples/boards/stm32/power_mgmt/standby_shutdown/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

LPTIM 요구 사항, wake-up pin과 CONFIG_PM 기본값을 설명합니다.

LED2 off

Shutdown

LED2 on

Standby

Exit

Release button

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 3B2CEA1CCDBCB1C2090B74E1AE4D5666F689C2E0CCFA3CA171B38397B17C7646
.. _stm32-pm-standby_shutdown-sample:

STM32 PM Standby shutdown
#########################

Overview
********

This sample is a minimum application to demonstrate basic power management of Standby mode and
shutdown mode
behavior in a basic blinking LED set up you can enter in shutdown mode or in standbymode mode.
Press and hold the user button:
when LED2 is OFF to enter to Shutdown Mode
when LED2 is ON to enter to Standby Mode
release the user button to exit from shutdown mode or from shutdown mode.

.. _stm32-pm-standby_shutdown-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`).
For another board than nucleo_L476RG please adjust wakeup pin into config_wakeup_features().

Building and Running
********************

Build and flash standby_shutdown as follows, changing ``nucleo_L476RG`` for your board:

.. zephyr-app-commands::
   :zephyr-app: samples/boards/stm32/power_mgmt/standby_shutdown
   :board: nucleo_L476RG
   :goals: build flash
   :compact:

After flashing, the LED starts to blink.
Press and hold the user button:
when LED2 is OFF to enter to Shutdown Mode
when LED2 is ON to enter to Standby Mode
release the user button to exit from shutdown mode or from shutdown mode.

PM configurations
*****************

By default, :kconfig:option:`CONFIG_PM` is enabled.

Part 3

한국어 전문 번역

개요

기본 blinking LED 구성에서 Standby mode와 Shutdown mode의 power management를 보여주는 최소 application입니다. User button을 길게 눌러 두 mode 중 하나에 들어갈 수 있습니다.

  • LED2가 꺼져 있을 때 누르면 Shutdown mode에 들어갑니다.
  • LED2가 켜져 있을 때 누르면 Standby mode에 들어갑니다.
  • User button을 놓으면 해당 low-power mode에서 나옵니다.

요구 사항

Board가 PM 활성화를 지원해야 합니다. STM32 기반 target에서는 core sleep state에서도 사용할 수 있는 Cortex SysTick 대체 clock source를 지원해야 하며, 그 예가 LPTIM(st,stm32-lptim)입니다.

nucleo_L476RG 이외의 board에서는 config_wakeup_features()의 wake-up pin을 조정하십시오.

Build와 실행

nucleo_L476RG를 사용하는 board로 바꿔 다음과 같이 standby_shutdown을 build하고 flash합니다.

west build -b nucleo_L476RG samples/boards/stm32/power_mgmt/standby_shutdown
west flash

Flash 뒤 LED가 blink합니다. User button을 길게 눌렀을 때 LED2가 꺼져 있으면 Shutdown mode, 켜져 있으면 Standby mode에 들어갑니다. Button을 놓으면 low-power mode에서 나옵니다.

PM configuration

기본적으로 CONFIG_PM이 활성화됩니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.