boards/seeed/seeeduino_xiao/doc/index.html · boards/seeed/seeeduino_xiao/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Seeed · SAMD21

Seeeduino XIAO

20 × 17.5 mm form factor에 SAMD21, native USB와 14-pin I/O를 담은 소형 Cortex-M0+ board입니다.

Official pathboards/seeed/seeeduino_xiao/doc/index.html
Source fileboards/seeed/seeeduino_xiao/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

지원 driver 12개, 48 MHz clock, SPI/I2C/UART pin, USB CDC와 10-bit DAC, BOSSA UF2 bootloader의 6단계 flashing을 설명합니다.

MCU

ATSAMD21G18A · Cortex-M0+

Memory

256 KiB flash · 32 KiB RAM

I/O

SERCOM · USB · DAC · 14 pins

Boot

BOSSA-compatible UF2

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 D78B53ED08BC083F6754FDE3AABD3B5F64E2EB97FEC60A762342CEA4FF9DEE17
.. _seeeduino_xiao:

Seeeduino XIAO
##############

Overview
********

The Seeeduino XIAO is a tiny (20 mm x 17.5 mm) ARM development
board with onboard LEDs, USB port, and range of I/O broken out
onto 14 pins.

.. image:: ../../../../../../../boards/seeed/seeeduino_xiao/doc/img/seeeduino_xiao.jpg
     :align: center
     :alt: Seeeduino XIAO

Hardware
********

- ATSAMD21G18A ARM Cortex-M0+ processor at 48 MHz
- 256 KiB flash memory and 32 KiB of RAM
- Three user LEDs
- Native USB port

Supported Features
==================

The seeeduino_xiao board configuration supports the following hardware
features:

+-----------+------------+------------------------------------------+
| Interface | Controller | Driver/Component                         |
+===========+============+==========================================+
| DMA       | on-chip    | Direct memory access                     |
+-----------+------------+------------------------------------------+
| DAC       | on-chip    | Digital to analogue converter            |
+-----------+------------+------------------------------------------+
| Flash     | on-chip    | Can be used with LittleFS to store files |
+-----------+------------+------------------------------------------+
| GPIO      | on-chip    | I/O ports                                |
+-----------+------------+------------------------------------------+
| HWINFO    | on-chip    | Hardware info                            |
+-----------+------------+------------------------------------------+
| I2C       | on-chip    | Inter-Integrated Circuit                 |
+-----------+------------+------------------------------------------+
| NVIC      | on-chip    | nested vector interrupt controller       |
+-----------+------------+------------------------------------------+
| SPI       | on-chip    | Serial Peripheral Interface ports        |
+-----------+------------+------------------------------------------+
| SYSTICK   | on-chip    | systick                                  |
+-----------+------------+------------------------------------------+
| USART     | on-chip    | Serial ports                             |
+-----------+------------+------------------------------------------+
| USB       | on-chip    | USB device                               |
+-----------+------------+------------------------------------------+
| WDT       | on-chip    | Watchdog                                 |
+-----------+------------+------------------------------------------+

Other hardware features are not currently supported by Zephyr.

The default configuration can be found in the Kconfig file
:zephyr_file:`boards/seeed/seeeduino_xiao/seeeduino_xiao_defconfig`.

Connections and IOs
===================

The `Seeeduino XIAO wiki`_ has detailed information about
the board including `pinouts`_ and the `schematic`_.

System Clock
============

The SAMD21 MCU is configured to use the 32 kHz external crystal
with the on-chip PLL generating the 48 MHz system clock.  The internal
APB and GCLK unit are set up in the same way as the upstream Arduino
libraries.

SPI Port
========

The SAMD21 MCU has 6 SERCOM based SPIs.  On the XIAO, SERCOM0 can be put
into SPI mode and used to connect to devices over pin 9 (MISO), pin 10
(MOSI), and pin 8 (SCK).

I2C Port
========

The SAMD21 MCU has 6 SERCOM based USARTs. On the XIAO, SERCOM2 is available on
pin 4 (SDA) and pin 5 (SCL).

Serial Port
===========

The SAMD21 MCU has 6 SERCOM based USARTs.  On the XIAO, SERCOM4 is
the Zephyr console and is available on pins 7 (RX) and 6 (TX).

USB Device Port
===============

The SAMD21 MCU has a USB device port that can be used to communicate
with a host PC.  See the :ref:`usb-samples` sample applications for
more, such as the :zephyr:code-sample:`usb-cdc-acm` sample which sets up a virtual
serial port that echos characters back to the host PC.

DAC
===

The SAMD21 MCU has a single channel DAC with 10 bits of resolution. On
the XIAO, the DAC is available on pin 0.

Programming and Debugging
*************************

The XIAO ships the BOSSA compatible UF2 bootloader.  The bootloader can be
entered by shorting the RST and GND pads twice.

Additionally, if :code:`CONFIG_USB_CDC_ACM` is enabled then the bootloader
will be entered automatically when you run :code:`west flash`.

Flashing
========

#. Build the Zephyr kernel and the :ref:`hello_world` sample application:

   .. zephyr-app-commands::
      :zephyr-app: samples/hello_world
      :board: seeeduino_xiao
      :goals: build
      :compact:

#. Connect the XIAO to your host computer using USB

#. Connect a 3.3 V USB to serial adapter to the board and to the
   host.  See the `Serial Port`_ section above for the board's pin
   connections.

#. Run your favorite terminal program to listen for output. Under Linux the
   terminal should be :code:`/dev/ttyUSB0`. For example:

   .. code-block:: console

      $ minicom -D /dev/ttyUSB0 -o

   The -o option tells minicom not to send the modem initialization
   string. Connection should be configured as follows:

   - Speed: 115200
   - Data: 8 bits
   - Parity: None
   - Stop bits: 1

#. Short the RST and GND pads twice quickly to enter bootloader mode

#. Flash the image:

   .. zephyr-app-commands::
      :zephyr-app: samples/hello_world
      :board: seeeduino_xiao
      :goals: flash
      :compact:

   You should see "Hello World! seeeduino_xiao" in your terminal.

References
**********

.. target-notes::

.. _Seeeduino XIAO wiki:
    https://wiki.seeedstudio.com/Seeeduino-XIAO/

.. _pinouts:
    https://wiki.seeedstudio.com/Seeeduino-XIAO/#hardware-overview

.. _schematic:
    https://wiki.seeedstudio.com/Seeeduino-XIAO/#resourses

Part 3

한국어 전문 번역

개요

Seeeduino XIAO는 20 mm × 17.5 mm 크기의 작은 ARM development board입니다. On-board LED, USB port와 14개 pin으로 외부에 노출된 여러 I/O를 제공합니다.

Seeeduino XIAO
Seeeduino XIAO

하드웨어

  • 48 MHz ATSAMD21G18A ARM Cortex-M0+ processor
  • 256 KiB flash memory + 32 KiB RAM
  • User LED 3개
  • Native USB port

지원 기능

seeeduino_xiao board configuration은 다음 hardware 기능을 지원합니다.

InterfaceControllerDriver / Component
DMAon-chipDirect memory access
DACon-chipDigital to analogue converter
Flashon-chipLittleFS file storage에 사용 가능
GPIOon-chipI/O ports
HWINFOon-chipHardware info
I2Con-chipInter-Integrated Circuit
NVICon-chipnested vector interrupt controller
SPIon-chipSerial Peripheral Interface ports
SYSTICKon-chipsystick
USARTon-chipSerial ports
USBon-chipUSB device
WDTon-chipWatchdog

그 밖의 hardware 기능은 현재 Zephyr에서 지원하지 않습니다. 기본 configuration은 boards/seeed/seeeduino_xiao/seeeduino_xiao_defconfig에 있습니다.

연결과 I/O

Seeeduino XIAO Wiki에는 pinout과 schematic을 포함한 상세 정보가 있습니다.

System clock

SAMD21 MCU는 32 kHz external crystal을 사용하며, on-chip PLL이 48 MHz system clock을 생성하도록 설정됩니다. Internal APB와 GCLK unit은 upstream Arduino library와 같은 방식으로 설정됩니다.

SPI port

SAMD21 MCU에는 SERCOM 기반 SPI 6개가 있습니다. XIAO에서는 SERCOM0을 SPI mode로 설정해 pin 9(MISO), pin 10(MOSI), pin 8(SCK)로 device를 연결할 수 있습니다.

I2C port

SAMD21 MCU에는 SERCOM 기반 USART 6개가 있습니다. XIAO에서는 SERCOM2를 pin 4(SDA)와 pin 5(SCL)에서 사용할 수 있습니다.

Serial port

SAMD21 MCU에는 SERCOM 기반 USART 6개가 있습니다. XIAO에서는 SERCOM4가 Zephyr console이며 pin 7(RX)과 pin 6(TX)에서 사용할 수 있습니다.

USB device port

SAMD21 MCU의 USB device port는 host PC와 통신하는 데 사용할 수 있습니다. Zephyr USB sample 중 usb-cdc-acm은 host PC에 character를 되돌려 보내는 virtual serial port를 구성합니다.

DAC

SAMD21 MCU에는 10-bit resolution의 single-channel DAC가 있습니다. XIAO에서는 pin 0에서 DAC를 사용할 수 있습니다.

Programming과 debugging

XIAO는 BOSSA-compatible UF2 bootloader가 설치된 상태로 출하됩니다. RST와 GND pad를 두 번 short하면 bootloader에 진입합니다.

CONFIG_USB_CDC_ACM을 활성화했다면 west flash 실행 시 bootloader에 자동으로 진입합니다.

Flashing

  1. Zephyr kernel과 hello_world sample application을 build합니다.
    west build -b seeeduino_xiao samples/hello_world
  2. USB로 XIAO를 host computer에 연결합니다.
  3. 3.3 V USB-to-serial adapter를 board와 host에 연결합니다. Pin 연결은 위의 serial port 절을 따릅니다.
  4. Terminal program으로 출력을 기다립니다. Linux에서는 보통 /dev/ttyUSB0입니다.
    $ minicom -D /dev/ttyUSB0 -o

    -o option은 minicom이 modem initialization string을 보내지 않게 합니다. 연결 설정은 speed 115200, data 8 bit, parity none, stop bit 1입니다.

  5. RST와 GND pad를 빠르게 두 번 short해 bootloader mode에 들어갑니다.
  6. Image를 flash합니다.
    west flash

    Terminal에 Hello World! seeeduino_xiao가 표시되어야 합니다.

참고 자료

Source

출처

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