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

Zephyr 3.7.0 · Boards · STM32 Wake Pins

GPIO Wake-up Pin Source

WAIT_TIME_US 뒤 자동 종료하고 wkup-src button으로 다시 power-on합니다.

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

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

Part 1

요약·해설

POWEROFF 지원, board overlay와 SoC DTSI wake-pin 조건을 설명합니다.

Power

Automatic off

Source

GPIO wake pin

DT role

wkup-src

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E13775BF0B66C8CE869FDC8BC97D242EA2F504E00257B84E20FDDD94E1F07D66
.. _gpio-as-a-wkup-pin-src-sample:

GPIO As A Wake-up Pin Source
############################

Overview
********

This sample is a minimum application to demonstrate using a wake-up pin with a GPIO as
a source to power on an STM32 SoC after Poweroff.

The system will power off automatically ``WAIT_TIME_US`` us after boot.
Press the user button designated in boards's devicetree overlay as "wkup-src" to power it on again.

.. _gpio-as-a-wkup-pin-src-sample-requirements:

Requirements
************

The SoC should support POWEROFF functionality & have a wake-up pin that corresponds
to the GPIO pin of a user button.
To support another board, add an overlay in boards folder.
Make sure that wake-up pins are configured in SoC dtsi file.

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

Build and flash wkup_pins as follows, changing ``nucleo_u5a5zj_q`` for your board:

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

After flashing, the LED in ON.
The LED will be turned off when the system is powered off.
Press the user button to power on the system again.

Part 3

한국어 전문 번역

개요

STM32 SoC가 power-off된 뒤 GPIO와 연결된 wake-up pin을 power-on source로 사용하는 방법을 보여주는 최소 application입니다.

System은 boot한 뒤 WAIT_TIME_US microseconds가 지나면 자동으로 power-off됩니다. 다시 켜려면 board Devicetree overlay에서 wkup-src로 지정한 user button을 누릅니다.

요구 사항

SoC가 POWEROFF 기능을 지원하고 user button의 GPIO pin에 대응하는 wake-up pin을 가져야 합니다. 다른 board를 지원하려면 boards folder에 overlay를 추가합니다. Wake-up pin이 SoC DTSI file에 구성되어 있는지도 확인해야 합니다.

Build와 실행

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

west build -b nucleo_u5a5zj_q samples/boards/stm32/power_mgmt/wkup_pins
west flash

Flash 뒤 LED가 켜집니다. System이 power-off되면 LED가 꺼집니다. User button을 눌러 system을 다시 켭니다.

Source

출처

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