boards/adafruit/qt_py_rp2040/doc/index.html · boards/adafruit/qt_py_rp2040/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Adafruit · RP2040

Adafruit QT Py RP2040

초소형 RP2040 board의 STEMMA QT, PIO·PWM·USB 기능과 SWD 없이 UF2로 적재하는 절차를 설명합니다.

Official pathboards/adafruit/qt_py_rp2040/doc/index.html
Source fileboards/adafruit/qt_py_rp2040/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

QT Py RP2040은 RP2040, RGB NeoPixel, USB와 STEMMA QT connector를 작은 보드에 구성합니다. SWD pin을 외부에 노출하지 않으므로 BOOTSEL을 누른 채 켜고 UF2 file을 mass-storage drive로 복사해야 합니다.

Adafruit QT Py RP2040
Adafruit QT Py RP2040. 이미지 출처: Adafruit, Zephyr 3.7.0.
MCU

최대 133 MHz dual Cortex-M0+, SRAM 264 KB

Storage

XIP 가능한 on-board QSPI flash 8 MB

Flash

BOOTSEL + build/zephyr/zephyr.uf2 drag-and-drop

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 0D66F3230B3661C171D7DDDFF5EFD1BC766271F8BEB6B470609A8A939C9A550D
.. _adafruit_qt_py_rp2040:

Adafruit QT Py RP2040
#####################

Overview
********

The Adafruit QT Py RP2040 is a small, low-cost, versatile board from
Adafruit. It is equipped with an RP2040 SoC, an on-board RGB Neopixel,
a USB connector, and a STEMMA QT connector. The USB bootloader allows
it to be flashed without any adapter, in a drag-and-drop manner.

Hardware
********
- Dual core Arm Cortex-M0+ processor running up to 133MHz
- 264KB on-chip SRAM
- 8MB on-board QSPI flash with XIP capabilities
- 11 GPIO pins
- 4 Analog inputs
- 2 UART peripherals
- 2 SPI controllers
- 2 I2C controllers (one via STEMMA QT connector)
- 16 PWM channels
- USB 1.1 controller (host/device)
- 8 Programmable I/O (PIO) for custom peripherals
- On-board RGB LED
- 1 Watchdog timer peripheral


.. figure:: ../../../../../../../boards/adafruit/qt_py_rp2040/doc/img/qtpy_rp2040.jpg
     :align: center
     :alt: Adafruit QT Py RP2040

     Adafruit QT Py RP2040 (Image courtesy of Adafruit)

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

The adafruit_qt_py_rp2040 board configuration supports the following
hardware features:

.. list-table::
   :header-rows: 1

   * - Peripheral
     - Kconfig option
     - Devicetree compatible
   * - NVIC
     - N/A
     - :dtcompatible:`arm,v6m-nvic`
   * - UART
     - :kconfig:option:`CONFIG_SERIAL`
     - :dtcompatible:`raspberrypi,pico-uart`
   * - GPIO
     - :kconfig:option:`CONFIG_GPIO`
     - :dtcompatible:`raspberrypi,pico-gpio`
   * - ADC
     - :kconfig:option:`CONFIG_ADC`
     - :dtcompatible:`raspberrypi,pico-adc`
   * - I2C
     - :kconfig:option:`CONFIG_I2C`
     - :dtcompatible:`snps,designware-i2c`
   * - SPI
     - :kconfig:option:`CONFIG_SPI`
     - :dtcompatible:`raspberrypi,pico-spi`
   * - USB Device
     - :kconfig:option:`CONFIG_USB_DEVICE_STACK`
     - :dtcompatible:`raspberrypi,pico-usbd`
   * - HWINFO
     - :kconfig:option:`CONFIG_HWINFO`
     - N/A
   * - Watchdog Timer (WDT)
     - :kconfig:option:`CONFIG_WATCHDOG`
     - :dtcompatible:`raspberrypi,pico-watchdog`
   * - PWM
     - :kconfig:option:`CONFIG_PWM`
     - :dtcompatible:`raspberrypi,pico-pwm`
   * - Flash
     - :kconfig:option:`CONFIG_FLASH`
     - :dtcompatible:`raspberrypi,pico-flash`
   * - UART (PIO)
     - :kconfig:option:`CONFIG_SERIAL`
     - :dtcompatible:`raspberrypi,pico-uart-pio`

Pin Mapping
===========

The peripherals of the RP2040 SoC can be routed to various pins on the board.
The configuration of these routes can be modified through DTS. Please refer to
the datasheet to see the possible routings for each peripheral.

Default Zephyr Peripheral Mapping:
----------------------------------

.. rst-class:: rst-columns

- UART1_TX : P20
- UART1_RX : P5
- I2C0_SDA : P24
- I2C0_SCL : P25
- I2C1_SDA : P22
- I2C1_SCL : P23
- SPI0_RX : P4
- SPI0_SCK : P6
- SPI0_TX : P3

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

Flashing
========

Using UF2
---------

Since it doesn't expose the SWD pins, you must flash the Adafruit QT Py RP2040 with
a UF2 file. By default, building an app for this board will generate a
`build/zephyr/zephyr.uf2` file. If the QT Py RP2040 is powered on with the `BOOTSEL`
button pressed, it will appear on the host as a mass storage device. The
UF2 file should be drag-and-dropped to the device, which will flash the QT Py RP2040.

.. target-notes::

.. _Getting Started with Raspberry Pi Pico:
  https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf

.. _Primary Guide\: Adafruit QT Py RP2040:
  https://learn.adafruit.com/adafruit-qt-py-2040

Part 3

한국어 전문 번역

개요

Adafruit QT Py RP2040은 Adafruit의 작고 저렴하며 다용도인 board입니다. RP2040 SoC, on-board RGB NeoPixel, USB connector와 STEMMA QT connector를 갖습니다. USB bootloader를 이용하면 adapter 없이 drag-and-drop 방식으로 flash할 수 있습니다.

하드웨어

  • 최대 133 MHz로 동작하는 dual-core Arm Cortex-M0+ processor
  • on-chip SRAM 264 KB
  • XIP를 지원하는 on-board QSPI flash 8 MB
  • GPIO pin 11개
  • analog input 4개
  • UART peripheral 2개
  • SPI controller 2개
  • I2C controller 2개, 그중 하나는 STEMMA QT connector 사용
  • PWM channel 16개
  • USB 1.1 host/device controller
  • custom peripheral용 PIO 8개
  • on-board RGB LED
  • watchdog timer peripheral 1개
Adafruit QT Py RP2040
Adafruit QT Py RP2040. 이미지 출처: Adafruit.

지원 기능

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

PeripheralKconfig optionDevicetree compatible
NVICN/Aarm,v6m-nvic
UARTCONFIG_SERIALraspberrypi,pico-uart
GPIOCONFIG_GPIOraspberrypi,pico-gpio
ADCCONFIG_ADCraspberrypi,pico-adc
I2CCONFIG_I2Csnps,designware-i2c
SPICONFIG_SPIraspberrypi,pico-spi
USB DeviceCONFIG_USB_DEVICE_STACKraspberrypi,pico-usbd
HWINFOCONFIG_HWINFON/A
Watchdog Timer (WDT)CONFIG_WATCHDOGraspberrypi,pico-watchdog
PWMCONFIG_PWMraspberrypi,pico-pwm
FlashCONFIG_FLASHraspberrypi,pico-flash
UART (PIO)CONFIG_SERIALraspberrypi,pico-uart-pio

Pin mapping

RP2040 SoC peripheral은 board의 여러 pin으로 route할 수 있습니다. route 설정은 DTS에서 바꿀 수 있으며, peripheral별 가능한 route는 datasheet를 확인합니다.

Zephyr 기본 peripheral mapping

SignalPin
UART1_TXP20
UART1_RXP5
I2C0_SDAP24
I2C0_SCLP25
I2C1_SDAP22
I2C1_SCLP23
SPI0_RXP4
SPI0_SCKP6
SPI0_TXP3

프로그래밍과 디버깅

UF2 사용

QT Py RP2040은 SWD pin을 노출하지 않으므로 UF2 file로 flash해야 합니다. 이 board용 application을 build하면 기본적으로 build/zephyr/zephyr.uf2가 생성됩니다. BOOTSEL button을 누른 상태에서 전원을 켜면 host에 mass-storage device로 나타납니다. UF2 file을 해당 device로 drag-and-drop하면 QT Py RP2040이 flash됩니다.

참고 자료

Source

출처

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