Part 1
요약·해설
XTAL_32K pins, C3·S2·S3 주파수와 monitor 출력 변화를 설명합니다.
XTAL32K · 32768 Hz
RC SLOW
C3 · S2 · S3
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
F875814E0A85270E8F13CD901E46146373B9A5C5D6A93878F619670B7A3EF41C
.. _xt_wdt_sample:
Espressif XT WDT Sample
#######################
Overview
********
This sample shows how to work with XTAL32K Watchdog Timer (XT WDT) peripheral.
To properly run this sample, you need to have a board with an external 32.728 Hz
crystal oscillator connected to the XTAL_32K_P and XTAL_32K_N pins.
The app will ask for the crystal removal to simulate a crystal failure and trigger
the XT WDT interrupt. Internally the hardware switch the RTC SLOW clock source from
ESP32_RTC_SLOW_CLK_SRC_XTAL32K to ESP32_RTC_SLOW_CLK_SRC_RC_SLOW (136 KHz for C3 and S3 /
9 KHz for S2).
Supported SoCs
**************
The following SoCs supports the XT WDT peripheral:
* ESP32-C3
* ESP32-S2
* ESP32-S3
Building and Running
********************
Make sure you have your board connected over USB port and the external crystal is connected
to pins XTAL_32K_P and XTAL_32K_N.
.. code-block:: console
west build -p -b esp32s3_devkitm/esp32s3/procpu samples/boards/esp32/xt_wdt
west flash
If using another supported Espressif board, replace the argument in the above
command with a proper board name (e.g., `esp32s2_saola`).
Sample Output
=============
To check output of this sample, run ``west espressif monitor`` or any other serial
console program (e.g., minicom, putty, screen, etc).
This example uses ``west espressif monitor``, which automatically detects the serial
port at ``/dev/ttyUSB0``:
.. code-block:: console
$ west espressif monitor
.. code-block:: console
*** Booting Zephyr OS build v3.6.0-3896-gb4a7f061524f ***
[00:00:01.287,000] <inf> xt_wdt_sample: XT WDT Sample on esp32s3_devkitm/esp32s3/procpu
[00:00:01.287,000] <inf> xt_wdt_sample: Current RTC SLOW clock rate: 32768 Hz
[00:00:01.287,000] <inf> xt_wdt_sample: Remove the external 32K crystal to trigger the watchdog
XT WDT callback
[00:00:03.554,000] <inf> xt_wdt_sample: Current RTC SLOW clock rate: 136000 Hz
Part 3
한국어 전문 번역
개요
이 sample은 XTAL32K Watchdog Timer(XT WDT) peripheral 사용법을 보여줍니다. 올바르게 실행하려면 XTAL_32K_P와 XTAL_32K_N pin에 external 32.728 Hz crystal oscillator가 연결된 board가 필요합니다.
Application은 crystal failure를 시뮬레이션해 XT WDT interrupt를 발생시키도록 crystal 제거를 요청합니다. 내부 hardware는 RTC SLOW clock source를 ESP32_RTC_SLOW_CLK_SRC_XTAL32K에서 ESP32_RTC_SLOW_CLK_SRC_RC_SLOW로 전환합니다. RC SLOW frequency는 C3·S3에서 136 kHz, S2에서 9 kHz입니다.
지원 SoC
다음 SoC가 XT WDT peripheral을 지원합니다.
- ESP32-C3
- ESP32-S2
- ESP32-S3
Build와 실행
Board가 USB port에 연결되어 있고 external crystal이 XTAL_32K_P와 XTAL_32K_N pin에 연결되어 있는지 확인하십시오.
west build -p -b esp32s3_devkitm/esp32s3/procpu samples/boards/esp32/xt_wdt
west flash
다른 지원 Espressif board를 사용한다면 위 명령의 board argument를 알맞은 이름으로 바꾸십시오. 예: esp32s2_saola.
Sample 출력
출력을 확인하려면 west espressif monitor 또는 minicom, PuTTY, screen 같은 serial console program을 실행합니다. 이 monitor 명령은 /dev/ttyUSB0를 자동 감지합니다.
$ west espressif monitor
*** Booting Zephyr OS build v3.6.0-3896-gb4a7f061524f ***
[00:00:01.287,000] <inf> xt_wdt_sample: XT WDT Sample on esp32s3_devkitm/esp32s3/procpu
[00:00:01.287,000] <inf> xt_wdt_sample: Current RTC SLOW clock rate: 32768 Hz
[00:00:01.287,000] <inf> xt_wdt_sample: Remove the external 32K crystal to trigger the watchdog
XT WDT callback
[00:00:03.554,000] <inf> xt_wdt_sample: Current RTC SLOW clock rate: 136000 Hz
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.