All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Seeed Studio Xiao ESP32C3

Support for the Seeed Studio Xiao ESP32-C3 board. More...

Detailed Description

Support for the Seeed Studio Xiao ESP32-C3 board.

Author
David Picard

Seeed Studio Xiao ESP32C3

Table of Contents

  1. Overview
  2. Hardware
    1. MCU
    2. Board Configuration
    3. Board Pinout
    4. Board documentation
  3. Flashing the Device

Overview

Seeed Studio Xiao ESP32C3 is an IoT mini development board based on the Espressif ESP32-C3 WiFi/Bluetooth dual-mode chip, featuring a single ­core 32-bit RISC-V CPU that operates at up to 160 MHz.

Seeed Studio EPS32-C3 Xiao

Back to table of contents

Hardware

This section describes

Back to table of contents

MCU

Most features of the board are provided by the ESP32-C3 SoC. For detailed information about the ESP32-C3 variant (family) and ESP32x SoCs, see section ESP32 SoC Series.

Back to table of contents

Board Configuration

The Seeed Studio EPS32-C3 Xiao board has a reset button and a bootloader button, but no LED. After reset, the bootloader button may be used by the application.

To select the board, add the following to the make command line:

BOARD=seeedstudio-xiao-esp32c3 make ...

GPIO overview:

The purpose for which a GPIO is used depends on which module or function is used first. For example, if module periph_spi is not used, the GPIOs listed in SPI configuration can be used for other purposes.

The following table shows the default board configuration. This configuration can be overridden by application-specific configurations.

Function Pin Configuration
BUTTON0 GPIO9 GPIO9 is a strapping pin
ADC GPIO2, GPIO3, GPIO4 ADC Channels
I2C_DEV(0):SCL GPIO7 I2C Interfaces
I2C_DEV(0):SDA GPIO6 I2C Interfaces
PWM_DEV(0) GPIO2, GPIO3, GPIO4, GPIO5 PWM Channels
SPI_DEV(0):SCK GPIO8 SPI Interfaces
SPI_DEV(0):MISO GPIO9 SPI Interfaces
SPI_DEV(0):MOSI GPIO10 SPI Interfaces
SPI_DEV(0):CS0 GPIO5 SPI Interfaces
UART_DEV(0):TxD GPIO21 UART interfaces
UART_DEV(0):RxD GPIO20 UART interfaces


Note
The configuration of ADC channels contains all ESP32-C3 GPIOs that could be used as ADC channels.

For detailed information about the peripheral configurations of ESP32-C3 boards, see section Common Peripherals.

Back to table of contents

Board Pinout

The following figures show the pinouts as configured by default board definition.

Seeed Studio EPS32-C3 Xiao Pinout

Back to table of contents

Board documentation

Back to table of contents

Flashing the Device

The USB-C connector of the board is directly connected to the USB Serial/JTAG interface of the ESP32-C3 SoC. It can be used to program the board and to debug the application. Just connect the board to your host computer and use the following command:

make flash BOARD=seeedstudio-xiao-esp32c3 ...

The make utility will normally restart the board in download mode in order to flash it. But, on occasion, this reset doesn't work. The programmer can't connect to the board and the flashing operation is aborted with a timeout error:

Serial port /dev/ttyACM0
Connecting...
...
serial.serialutil.SerialTimeoutException: Write timeout

In this situation, restart the board manually in download mode:

  1. hold down the BOOT button
  2. press and release the RESET button
  3. release the BOOT button.

After flashing the board, it will still be in download mode. You have to press the RESET button to start your application.

For detailed information about ESP32-C3 as well as configuring and compiling RIOT for ESP32-C3 boards, see RIOT-OS on ESP32 SoC Series Boards.

Back to table of contents

Files

file  arduino_iomap.h
 Mapping from MCU pins to Arduino pins.
 
file  board.h
 Board definitions for the Seeed Studio Xiao ESP32-C3 board.
 
file  gpio_params.h
 Board specific configuration of direct mapped GPIOs.
 
file  periph_conf.h
 Peripheral configurations for the Seeed Studio ESP32-C3 Xiao board.