Support for the Seeed Studio Xiao ESP32-C6 board. More...
Support for the Seeed Studio Xiao ESP32-C6 board.
Seeed Studio Xiao ESP32C6 is a small board based on the Espressif ESP32-C6 SoC, featuring two 32-bit RISC-V processors: a high-performance core running at up to 160 MHz and a low-power core clocked up to 20 MHz.

Most features of the board are provided by the ESP32-C6 SoC. For detailed information about the ESP32-C6 variant (family) and ESP32x SoCs, see section ESP32 SoC Series.
The Seeed Studio ESP32-C6 Xiao board has a reset button and a bootloader button, as well as a user LED on GPIO15. After reset, the bootloader button may be used by the application.
GPIO overview:
The purpose for which a GPIO is used depends on which module or function is used first. For example, if the periph_spi module 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(Boot) | GPIO9 | GPIO9 is a strapping pin |
| LED0 | GPIO15 | User LED (low active) |
| ADC/LP_GPIO | GPIO0, GPIO1, GPIO2 | ADC Channels |
| PWM_DEV(0) | GPIO0, GPIO1, GPIO2 | PWM Channels |
| I2C_DEV(0):SDA | GPIO22 | I2C Interfaces |
| I2C_DEV(0):SCL | GPIO23 | I2C Interfaces |
| SPI_DEV(0):SCK | GPIO19 | SPI Interfaces |
| SPI_DEV(0):MISO | GPIO20 | SPI Interfaces |
| SPI_DEV(0):MOSI | GPIO18 | SPI Interfaces |
| SPI_DEV(0):CS0 | GPIO21 | SPI Interfaces |
| UART_DEV(0):TxD | GPIO16 | UART interfaces |
| UART_DEV(0):RxD | GPIO17 | UART interfaces |
For detailed information about the peripheral configurations of ESP32-C6 boards, see section Common Peripherals.
The board has an RF switch to toggle between the built-in ceramic antenna and an external U.FL antenna. It is controlled by two GPIOs:
The built-in ceramic antenna is used by default, so no configuration is required for the common case. The board_init function configures the RF switch accordingly at startup.
To use the external U.FL antenna instead, enable the CONFIG_XIAO_ESP32C6_EXT_ANTENNA option, for example by adding the following line to the application's Makefile:
The XIAO ESP32C6 series features a built-in power management chip, allowing it to be powered independently by a battery or to charge the battery through its USB port.
For connecting a battery to your XIAO, it's recommend using a qualified rechargeable 3.7V lithium battery. When soldering the battery, carefully distinguish between the positive and negative terminals. The negative electrode pad should be located on the left side near the silk screen marking "D8", while the positive electrode pad should be located on the right side near the silk screen marking "D5".
To monitor the battery voltage on the XIAO ESP32C6, similar to the XIAO ESP32C3, you'll need to solder a 200k resistor in a 1:2 configuration. This setup reduces the voltage by half, allowing safe monitoring through the A0 analog port.
Sample Code can be found in The Seeed Wiki.
On the XIAO ESP32C6, only GPIO0, GPIO1 and GPIO2 of these RTC-capable pins are broken out and can therefore be used as wake-up sources.
The following figure shows the pinout as configured by default board definition.

The USB-C connector of the board is directly connected to the USB Serial/JTAG interface of the ESP32-C6 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:
Files | |
| file | arduino_iomap.h |
| Mapping from MCU pins to Arduino pins. | |
| file | board.h |
| Board specific definitions for the Seeed Studio XIAO ESP32-C6. | |
| file | periph_conf.h |
| Peripheral configurations for the Seeed Studio XIAO ESP32-C6. | |