Skip to content
IoT Crest

ESP32-C6 pinout: DevKitC-1 headers and GPIO functions

By Hamza Rivera, updated , 6 min read

Short answer: The ESP32-C6 pinout lists each GPIO pin on the chip and the functions it can take, such as UART, ADC, USB and boot strapping. On the ESP32-C6-DevKitC-1 board, GPIO0 to GPIO13 and GPIO15 to GPIO23 sit on the two pin headers, while the pins that connect to the flash chip are not broken out. Strapping pins MTMS (GPIO4), MTDI (GPIO5), GPIO8, GPIO9 and GPIO15 are read at reset, so check their state before wiring them to anything.

ESP32-C6 pinout for the DevKitC-1 board: header pins, GPIO numbers, strapping pins, ADC channels and USB pins, from Espressif's own documents.

This article covers the GPIO pins on the ESP32-C6-DevKitC-1 headers, their alternate functions, and the pins the chip reads at boot It does not cover electrical limits for each pin, the QFN32 package pin list, and the pins of other ESP32 boards

The ESP32-C6 pinout is the map of which GPIO number, and which alternate function, sits on each pin of the chip and on each header pin of a board such as the ESP32-C6-DevKitC-1. Read it before you wire a sensor, because one GPIO number can serve several jobs and a few of them must stay clear at boot.

Pinout table for the DevKitC-1

The DevKitC-1 has two 16-pin headers, J1 and J3, on both sides of the board. The table below lists the GPIO pins and the functions Espressif’s board guide gives for each one. The pin numbers are the header positions from the board guide’s header tables, and the notes point to the datasheet section that explains each function.

Header pinBoard labelFunctions listed on the boardDatasheet note
J1-3GPIO4MTMS, LP_GPIO4, LP_UART_RXD, ADC1_CH4, FSPIHDStrapping pin (Section 2.3.5); ADC1_CH4 (Table 2-9); MTMS JTAG (Section 2.3.4)
J1-4GPIO5MTDI, LP_GPIO5, LP_UART_TXD, ADC1_CH5, FSPIWPStrapping pin (Section 2.3.5); ADC1_CH5 (Table 2-9); MTDI JTAG (Section 2.3.4)
J1-5GPIO6MTCK, LP_GPIO6, LP_I2C_SDA, ADC1_CH6, FSPICLKADC1_CH6 (Table 2-9); JTAG interface (Section 2.3.4)
J1-6GPIO7MTDO, LP_GPIO7, LP_I2C_SCL, FSPIDJTAG interface (Section 2.3.5)
J1-7GPIO0XTAL_32K_P, LP_GPIO0, LP_UART_DTRN, ADC1_CH0ADC1_CH0 and XTAL_32K_P (Table 2-9)
J1-8GPIO1XTAL_32K_N, LP_GPIO1, LP_UART_DSRN, ADC1_CH1ADC1_CH1 and XTAL_32K_N (Table 2-9)
J1-9GPIO8Strapping pin, also drives the onboard RGB LEDStrapping pin (Section 2.3.5; Section 3, Boot Configurations)
J1-10GPIO10None listed beyond the GPIO functionGPIO function only (Table 2-4)
J1-11GPIO11None listed beyond the GPIO functionGPIO function only (Table 2-4)
J1-12GPIO2LP_GPIO2, LP_UART_RTSN, ADC1_CH2, FSPIQADC1_CH2 (Table 2-9)
J1-13GPIO3LP_GPIO3, LP_UART_CTSN, ADC1_CH3ADC1_CH3 (Table 2-9)
J3-2GPIO16U0TXD, FSPICS0UART0 interface (Section 2.3.5)
J3-3GPIO17U0RXD, FSPICS1UART0 interface (Section 2.3.5)
J3-4GPIO15Strapping pinStrapping pin (Section 2.3.5); JTAG source control (Section 3.4)
J3-5GPIO23SDIO_DATA3SDIO interface (Table 2-3)
J3-6GPIO22SDIO_DATA2SDIO interface (Table 2-3)
J3-7GPIO21SDIO_DATA1, FSPICS5SDIO interface (Table 2-3)
J3-8GPIO20SDIO_DATA0, FSPICS4SDIO interface (Table 2-3)
J3-9GPIO19SDIO_CLK, FSPICS3SDIO interface (Table 2-3)
J3-10GPIO18SDIO_CMD, FSPICS2SDIO interface (Table 2-3)
J3-11GPIO9Strapping pinStrapping pin (Section 2.3.5; Section 3, Boot Configurations)
J3-13GPIO13USB_D+USB Serial/JTAG (Section 2.3.4; Table 2-9)
J3-14GPIO12USB_D-USB Serial/JTAG (Section 2.3.4; Table 2-9)

The board also has a 3V3 pin, a 5V pin, ground pins, an RST pin that enables and disables the chip, and one pin marked NC with no connection. The board guide gives the RST function as “High: enables the chip; Low: disables the chip.”

Strapping pins

Strapping pins are read at reset. The board guide says that “MTMS, MTDI, GPIO8, GPIO9, and GPIO15 are strapping pins of the ESP32-C6 chip,” and that their voltage levels at power-up or reset control several chip functions. The datasheet’s boot configuration section splits the work between the pins:

  • GPIO8 and GPIO9 set the chip boot mode. GPIO8 also controls ROM message printing.
  • MTMS and MTDI set the clock edge for SDIO sampling and driving.
  • GPIO15 selects the source of the JTAG signals during early boot. The datasheet says this pin “does not have any internal pull resistors and the strapping value must be controlled by the external circuit that cannot be in a high impedance state.”

The datasheet’s Table 3-1 lists the default state of each strapping pin when nothing is connected to it. Check that table before you add a resistor, a switch or a sensor output to any of these pins. The board guide describes the boot and reset buttons as: “Holding down Boot and then pressing Reset initiates Firmware Download mode for downloading firmware through the serial port.”

Analog inputs

The ADC1 channels are ADC1_CH0 to ADC1_CH6. They sit on GPIO0 to GPIO6 (datasheet Table 2-9). On the DevKitC-1, all seven channels are on the headers. The same table also lists USB_D- on GPIO12 and USB_D+ on GPIO13, and XTAL_32K_P and XTAL_32K_N on GPIO0 and GPIO1. GPIO0 and GPIO1 therefore carry both a 32 kHz clock function and an ADC channel.

USB and UART pins

GPIO12 and GPIO13 connect to the USB Serial/JTAG controller by default. The datasheet says that “To function as GPIOs, these pins need to be reconfigured.” GPIO16 and GPIO17 carry UART0, which the datasheet describes as an interface “often used for debugging.” Keep those two pins free if you need a serial debug log.

JTAG pins

MTMS on GPIO4, MTDI on GPIO5, MTCK on GPIO6 and MTDO on GPIO7 carry the JTAG interface for debugging (datasheet Table 2-3 and Table 2-4). The datasheet’s priority list (Section 2.3.5) names GPIO4 to GPIO7 as the JTAG interface, and Section 2.3.4 says the USB Serial/JTAG pins can take over the debug role if the JTAG pins are needed for other work.

Flash pins

On the QFN40 package, GPIO24 to GPIO26 and GPIO28 to GPIO30 carry the SPI flash signals (datasheet Table 2-4). The datasheet tells designers, in its pin mapping section, to “Do not use the pins connected to flash for any other purposes.” The DevKitC-1 board guide says that “All available GPIO pins (except for the SPI bus for flash) are broken out to the pin headers on the board,” so these pins do not reach the headers.

Lower-power GPIOs

Many pins on the DevKitC-1 headers also appear as LP_GPIO0 to LP_GPIO7 in the board guide, along with LP_UART and LP_I2C signal names. These are the low-power domain’s versions of the same pins. The board guide lists them but does not explain how they behave in sleep modes, so read the chip’s low-power section before you rely on one of them to wake the chip.

Choosing pins for a first project

Start with pins that have one job on the board. GPIO10 and GPIO11 carry no alternate function in the board guide, which makes them simple outputs or inputs. Keep GPIO16 and GPIO17 for the serial console if you plan to read debug output. Keep GPIO8, GPIO9 and GPIO15 for signals that can tolerate a boot-time state, and do not use GPIO12 and GPIO13 as general pins unless you reconfigure the USB port first.

For how to pick a bus for a sensor on these pins, I2C vs SPI compares the two bus types. For the chip itself and its radio, see the ESP32-C6 guide. For choosing between boards, choosing a microcontroller compares the ESP32 family with other options.

Sources

Common questions

Which ESP32-C6 pins are strapping pins?

MTMS (GPIO4), MTDI (GPIO5), GPIO8, GPIO9 and GPIO15 are the strapping pins on the ESP32-C6 chip. The chip reads their logic levels at power-up or reset to choose its boot mode and some debug settings. The datasheet's boot configuration section lists the default state of each one, so check that table before you attach a pull-up or pull-down resistor.

Which ESP32-C6 pins can read an analog voltage?

The ADC1 channels run from ADC1_CH0 to ADC1_CH6, and they sit on GPIO0 to GPIO6.

Can I use the flash pins on a DevKitC-1?

The flash pins are not broken out to the DevKitC-1 headers, and the datasheet tells designers not to use them for other purposes. On the chip, GPIO24 to GPIO26 and GPIO28 to GPIO30 carry the SPI flash signals.

Which pins does the DevKitC-1 use for the USB port?

GPIO12 and GPIO13 carry USB_D- and USB_D+. By default they connect to the USB Serial/JTAG controller, so they need to be reconfigured before they work as general-purpose pins.

Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.

More from Sensors and hardware

All sensors and hardware articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.