boards/m5stack/m5stack_stamps3/doc/index.html · boards/m5stack/m5stack_stamps3/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · M5Stack · ESP32-S3

M5Stack StampS3

ESP32-S3와 28-pin application header를 갖춘 stamp-size module입니다.

Official pathboards/m5stack/m5stack_stamps3/doc/index.html
Source fileboards/m5stack/m5stack_stamps3/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

StampS3 header의 PWM·SPI·I2C·UART pin과 active-low EN power control을 다룹니다.

M5Stack StampS3
M5Stack StampS3
SoC

ESP32-S3FN8 · 240MHz dual core

Header

28 pins · PWM · SPI · I2C · UART

Debug

External JTAG · MTCK/MTDO/MTDI/MTMS

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 BB4E4624156ED59F0C91FFA08697176D1C7A017A27D94EA0B449FCC8521D4FC0
.. _m5stack_stamps3:

M5Stack StampS3
###############

Overview
********

M5Stack StampS3 is an ESP32-based development board from M5Stack.
It features the following integrated components:

- ESP32-S3FN8 chip (240MHz dual core)
- 512KB SRAM
- 384KB ROM
- 8MB Flash
- Wi-Fi
- Bluetooth
- User-Button

.. figure:: ../../../../../../../boards/m5stack/m5stack_stamps3/doc/img/m5stack_stamps3.webp
        :align: center
        :alt: M5Stack StampS3
        :width: 400 px

        M5Stack StampS3 module

Functional Description
**********************

The following table below describes the key components, interfaces, and controls
of the M5Stack StampS3 module.

+---------------+-----------------------------------------------------------------+-----------+
| Key Component | Description                                                     | Status    |
+===============+=================================================================+===========+
| ESP32-S3FN8   | This MPU-ESP32S3 module provides complete Wi-Fi and Bluetooth   | supported |
| module        | functionalities and integrates a 8MB flash.                     |           |
+---------------+-----------------------------------------------------------------+-----------+
| Status LED    | One user LED connected via :dtcompatible:`worldsemi,ws2812-spi` | supported |
|               | interface (``led-strip``).                                      |           |
+---------------+-----------------------------------------------------------------+-----------+
| USB Port      | USB interface. Power supply for the board as well as the        | supported |
|               | communication interface between a computer and the board.       |           |
+---------------+-----------------------------------------------------------------+-----------+
| User button   | User button (``sw0``)                                           | supported |
+---------------+-----------------------------------------------------------------+-----------+

Main connector header
=====================

The Zephyr m5stack_stamps3 board can be used on various applications. It
therefore publishes a header definition to be used in different shields:
:dtcompatible:`m5stack,stamps3-header`.

.. figure:: ../../../../../../../boards/m5stack/m5stack_stamps3/doc/img/m5stack_stamps3_header.webp
        :align: center
        :alt: M5Stack StampS3 Header
        :width: 400 px

        M5Stack StampS3 connector header

Following interfaces are being exported for this header:

- ``m5stack_stamps3_clkout0``: PWM output with 2 channels (0 and 2).
- ``m5stack_stamps3_spilcd``: SPI interface for interfacing LCDs. Consists of a
  CLK, MOSI and CS signal.
- ``m5stack_stamps3_i2c0`` and ``m5stack_stamps3_i2c1``: I2C interfaces (SDA, SCL).
- ``m5stack_stamps3_uart0``: UART interface (RXD, TXD).
- ``m5stack_stamps3_header``: All GPIOs are of course accessible via main header
  definition.

+-----+-----------------------------------------+-----+---------------------------------+
| Pin | Functions                               | Pin | Functions                       |
+=====+=========================================+=====+=================================+
| 1   |                                         |     |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 2   |                                         |     |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 3   | ``m5stack_stamps3_clkout0`` - Channel 0 |     |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 4   |                                         |     |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 5   | ``m5stack_stamps3_spilcd`` - MOSI       |     |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 6   | ``m5stack_stamps3_spilcd`` - CLK        |     |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 7   | ``m5stack_stamps3_spilcd`` - CS         | 28  | **3V3**                         |
+-----+-----------------------------------------+-----+---------------------------------+
| 8   |                                         | 27  | ``m5stack_stamps3_uart0`` - TXD |
+-----+-----------------------------------------+-----+---------------------------------+
| 9   | ``m5stack_stamps3_clkout0`` - Channel 2 | 26  |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 10  |                                         | 25  | ``m5stack_stamps3_uart0`` - RXD |
+-----+-----------------------------------------+-----+---------------------------------+
| 11  | **GND**                                 | 24  |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 12  | ``m5stack_stamps3_i2c1`` - SDA          | 23  |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 13  | **5V**                                  | 22  | **EN**                          |
+-----+-----------------------------------------+-----+---------------------------------+
| 14  | ``m5stack_stamps3_i2c1`` - SCL          | 21  |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 15  | ``m5stack_stamps3_i2c0`` - SDA          | 20  |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 16  |                                         | 19  |                                 |
+-----+-----------------------------------------+-----+---------------------------------+
| 17  | ``m5stack_stamps3_i2c0`` - SCL          | 18  | **GND**                         |
+-----+-----------------------------------------+-----+---------------------------------+

Power supply
============

M5Stack StampS3 requires a single 5V input power supply. The module internally
features a DCDC (MUN3CAD01-SC) to generate the 3.3V needed for the MCU.

The **EN** signal (Pin 22) is an active low signal to enable the **3V3** power
supply. If this pin is pulled low this main 3.3V power supply for the MCU will be
deactivated. It is internally equipped with a pull-up and can hence be left open
if unused.

Start Application Development
*****************************

Before powering up your M5Stack StampS3, please make sure that the board is in good
condition with no obvious signs of damage.

System requirements
===================

Prerequisites
-------------

Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command
below to retrieve those files.

.. code-block:: console

   west blobs fetch hal_espressif

.. note::

   It is recommended running the command above after :file:`west update`.

Building & Flashing
-------------------

Build and flash applications as usual (see :ref:`build_an_application` and
:ref:`application_run` for more details).

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: m5stack_stamps3/esp32s3/procpu
   :goals: build

The usual ``flash`` target will work with the ``m5stack_stamps3`` board
configuration. Here is an example for the :ref:`hello_world`
application.

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: m5stack_stamps3/esp32s3/procpu
   :goals: flash

The baud rate of 921600bps is set by default. If experiencing issues when flashing,
try using different values by using ``--esp-baud-rate <BAUD>`` option during
``west flash`` (e.g. ``west flash --esp-baud-rate 115200``).

You can also open the serial monitor using the following command:

.. code-block:: shell

   west espressif monitor

After the board has automatically reset and booted, you should see the following
message in the monitor:

.. code-block:: console

   ***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
   Hello World! m5stack_stamps3

Debugging
---------

M5Stack StampS3 exports a JTAG-interface via Pins 19 (MTCK), 21 (MTDO), 23
(MTDI), 25 (MTMS).

.. note::

   Please note that additional JTAG equipment is needed to utilize JTAG. Refer to
   the ESP32S3 datasheet and the M5Stack StampS3 documentation for details.

Related Documents
*****************

- `M5Stack StampS3 schematic <https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/Stamp/S007%20StampS3/Sch_M5StampS3_v0.2.pdf>`_
- `M5Stack StampS3 <https://docs.m5stack.com/en/core/StampS3>`_
- `ESP32 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf>`_ (PDF)
- `ESP32 Hardware Reference <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/index.html>`_

Part 3

한국어 전문 번역

개요

M5Stack StampS3는 ESP32 기반 development board입니다.

  • ESP32-S3FN8 240MHz dual core
  • 512KB SRAM, 384KB ROM, 8MB flash
  • Wi-Fi, Bluetooth, User-Button
M5Stack StampS3
M5Stack StampS3 module

기능 설명

Key ComponentDescriptionStatus
ESP32-S3FN8 module완전한 Wi-Fi·Bluetooth 기능과 8MB flash를 제공합니다.supported
Status LEDworldsemi,ws2812-spi interface(led-strip)로 연결된 user LED입니다.supported
USB PortBoard 전원과 computer-board 통신용 USB interface입니다.supported
User buttonUser button(sw0)입니다.supported

Main connector header

m5stack_stamps3는 여러 application과 shield에서 사용할 m5stack,stamps3-header definition을 제공합니다.

M5Stack StampS3 Header
M5Stack StampS3 connector header
  • m5stack_stamps3_clkout0: channel 0·2의 2-channel PWM
  • m5stack_stamps3_spilcd: CLK, MOSI, CS로 구성된 LCD용 SPI
  • m5stack_stamps3_i2c0, m5stack_stamps3_i2c1: SDA·SCL I2C
  • m5stack_stamps3_uart0: RXD·TXD UART
  • m5stack_stamps3_header: 모든 GPIO에 접근하는 main header
PinFunctionsPinFunctions
1
2
3m5stack_stamps3_clkout0 - Channel 0
4
5m5stack_stamps3_spilcd - MOSI
6m5stack_stamps3_spilcd - CLK
7m5stack_stamps3_spilcd - CS283V3
827m5stack_stamps3_uart0 - TXD
9m5stack_stamps3_clkout0 - Channel 226
1025m5stack_stamps3_uart0 - RXD
11GND24
12m5stack_stamps3_i2c1 - SDA23
135V22EN
14m5stack_stamps3_i2c1 - SCL21
15m5stack_stamps3_i2c0 - SDA20
1619
17m5stack_stamps3_i2c0 - SCL18GND

Power supply

StampS3에는 5V input 하나가 필요하며 MUN3CAD01-SC DCDC가 MCU용 3.3V를 만듭니다. Pin 22의 EN은 active-low 3V3 enable입니다. Low로 당기면 MCU main 3.3V supply가 꺼집니다. Internal pull-up이 있어 사용하지 않을 때 open으로 둘 수 있습니다.

Application development 시작

M5Stack StampS3에 전원을 넣기 전에 board 상태가 양호하고 눈에 띄는 손상이 없는지 확인하십시오.

System requirements

Prerequisites

Espressif HAL이 동작하려면 WiFi와 Bluetooth binary blob이 필요합니다.

west blobs fetch hal_espressif
Building과 Flashing

일반적인 Zephyr application과 같은 방식으로 build하고 flash합니다.

west build -b m5stack_stamps3/esp32s3/procpu samples/hello_world

m5stack_stamps3 configuration에서는 일반적인 flash target이 동작합니다.

west build -b m5stack_stamps3/esp32s3/procpu samples/hello_world
west flash

Default baud rate는 921600bps입니다. 문제가 있으면 --esp-baud-rate <BAUD>를 사용하십시오. 예: west flash --esp-baud-rate 115200.

Serial monitor를 엽니다.

west espressif monitor

자동 reset과 boot 뒤 예상 output입니다.

***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx *****
Hello World! m5stack_stamps3

Debugging

JTAG는 pin 19(MTCK), 21(MTDO), 23(MTDI), 25(MTMS)로 나옵니다. 사용하려면 추가 JTAG equipment가 필요합니다.

관련 문서

Source

출처

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