Strapping pins of every ESP32 chip
Strapping pins are read once at reset and decide how the chip boots. A button, LED or sensor on one of them can stop a board from starting. Here is every chip's list, what each pin controls and its default level, from the datasheets.
| Chip | Strapping pins |
|---|---|
| ESP32 | GPIO0, GPIO2, GPIO5, GPIO12, GPIO15 |
| ESP32-S2 | GPIO0, GPIO45, GPIO46 |
| ESP32-S3 | GPIO0, GPIO3, GPIO45, GPIO46 |
| ESP32-C2 | GPIO8, GPIO9 |
| ESP32-C3 | GPIO2, GPIO8, GPIO9 |
| ESP32-C5 | GPIO2, GPIO3, GPIO7, GPIO25, GPIO26, GPIO27, GPIO28 |
| ESP32-C6 | GPIO4, GPIO5, GPIO8, GPIO9, GPIO15 |
| ESP32-C61 | GPIO3, GPIO4, GPIO7, GPIO8, GPIO9 |
| ESP32-H2 | GPIO8, GPIO9, GPIO25 |
| ESP32-P4 | GPIO34, GPIO35, GPIO36, GPIO37, GPIO38 |
ESP32 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO0 GPIO0 | Boot mode | pull-up | 1 SPI Boot (run from flash)0 Joint Download Boot (with GPIO2 = 0)12 |
| GPIO2 GPIO2 | Boot mode | pull-down | 0 required (or floating) for Joint Download Bootx ignored in SPI Boot (GPIO0 = 1)12 |
| GPIO5 GPIO5 | SDIO slave timing (output edge) | pull-up | 1 SDIO slave outputs on the rising edge0 SDIO slave outputs on the falling edge13 |
| GPIO12 GPIO12 (MTDI) | VDD_SDIO voltage (flash/PSRAM supply) | pull-down | 0 VDD_SDIO from VDD3P3_RTC, typically 3.3 V (default)1 VDD_SDIO from the internal 1.8 V LDO14 |
| GPIO15 GPIO15 (MTDO) | ROM messages on U0TXD; SDIO slave timing (sampling edge) | pull-up | 1 ROM messages printed on U0TXD (default); SDIO slave samples on the rising edge0 ROM messages silenced; SDIO slave samples on the falling edge12 |
Boot modes
x = does not matter.
Other pins with a role at boot
- ADC2 pins cannot be used while Wi-Fi is in use; use ADC1 pins instead. In ESP-IDF, adc_oneshot_read() on ADC2 can then fail with ESP_ERR_TIMEOUT.45
- GPIO34–39 are input-only: no output driver and no internal pull-up/pull-down.14
- JTAG: MTDI = GPIO12, MTCK = GPIO13, MTMS = GPIO14, MTDO = GPIO15. No strapping pin selects the JTAG source; the eFuse EFUSE_DISABLE_JTAG can only disable JTAG.4
- UART0 (console, flashing): U0TXD = GPIO1, U0RXD = GPIO3.16
- GPIO34–39 have no internal pull-up or pull-down; an input that needs a defined idle level needs an external resistor.4
- The ROM prints a reset and boot-mode message on U0TXD (GPIO1) at 115200 baud after reset, unless GPIO15 (MTDO) is low at reset.2
- GPIO0, GPIO2 and GPIO15 are both strapping pins and ADC2 channels.3
The internal pulls set a strapping level only when the pin is unconnected or sees a high-impedance circuit. Anything else on the pin during reset (a load, a button, another chip's output) decides the sampled value, so check its level at power-up and reset.1
The internal pull is about 45 kΩ; a button that enters download mode has to pull GPIO0 down hard, e.g. through 10 kΩ to GND.2
A pull-up (or a high level) on GPIO12 at reset selects 1.8 V for VDD_SDIO. With 3.3 V flash this may prevent flashing or booting. The eFuse EFUSE_SDIO_FORCE can fix the voltage so that GPIO12 is ignored.2
The sampled values stay in latches until power-down, so all five pins can be used as normal GPIOs once reset is over; only their level during reset matters.1
ESP32-S2 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO0 GPIO0 | Boot mode | weak pull-up | 1 SPI Boot (run from flash)0 Joint Download Boot (with GPIO46 = 0)78 |
| GPIO45 GPIO45 | VDD_SPI voltage (flash/PSRAM supply) | weak pull-down | 0 VDD_SPI from VDD3P3_RTC_IO via RSPI, typically 3.3 V (default)1 VDD_SPI from the internal 1.8 V LDO87 |
| GPIO46 GPIO46 | Boot mode; ROM message printing (with EFUSE_UART_PRINT_CONTROL) | weak pull-down | 0 required for Joint Download Boot; ROM printing enabled if EFUSE_UART_PRINT_CONTROL = 1, disabled if = 21 ignored in SPI Boot; ROM printing disabled if EFUSE_UART_PRINT_CONTROL = 1, enabled if = 2x ROM printing ignores GPIO46 when EFUSE_UART_PRINT_CONTROL = 0 (default: enabled) or 3 (disabled)78 |
Boot modes
x = does not matter.
Other pins with a role at boot
- Wi-Fi also uses SAR ADC2. ESP-IDF arbitrates access in adc_oneshot_read(), which can fail with ESP_ERR_TIMEOUT while ADC2 is busy; a conversion interrupted by the arbiter returns an invalid value. Inputs that must be read with Wi-Fi on belong on ADC1.98
- GPIO46 is input-only, with a fixed pull-down.710
- GPIO19 = USB_D-, GPIO20 = USB_D+; connected to USB OTG by default and must be reconfigured to work as GPIOs.7
- JTAG: MTCK = GPIO39, MTDO = GPIO40, MTDI = GPIO41, MTMS = GPIO42 (there is no USB Serial/JTAG controller on this chip).710
- UART0 (console, UART download): U0TXD = GPIO43, U0RXD = GPIO44.711
- GPIO46 has a fixed pull-down; it cannot be given a pull-up.10
- By default the ROM prints its boot messages on UART0 (U0TXD = GPIO43).7
With the eFuses at their defaults, a high level on GPIO45 at reset switches VDD_SPI to the internal 1.8 V regulator. Keep GPIO45 low during reset on boards with 3.3 V flash, or fix the voltage with EFUSE_VDD_SPI_FORCE.8
Only the documented patterns are supported; GPIO0 low with GPIO46 high triggers unexpected behaviour. Anything that pulls GPIO46 high during reset therefore breaks download mode.8
The internal pulls set a strapping level only when the pin is unconnected or sees a high-impedance circuit. A boot button on GPIO0 has to be a strong pull-down (about 45 kΩ internal pull; e.g. 10 kΩ to GND).7
ESP32-S3 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO0 GPIO0 | Boot mode | weak pull-up | 1 SPI Boot (run from flash)0 Joint Download Boot (with GPIO46 = 0)1213 |
| GPIO3 GPIO3 | JTAG signal source (only when EFUSE_STRAP_JTAG_SEL = 1) | floating (no internal pull) | 1 JTAG from the USB Serial/JTAG controller (if EFUSE_STRAP_JTAG_SEL = 1)0 JTAG from the pins MTDI, MTCK, MTMS, MTDO (if EFUSE_STRAP_JTAG_SEL = 1)x ignored with the eFuses at their defaults (all 0): JTAG goes to the USB Serial/JTAG controller1213 |
| GPIO45 GPIO45 | VDD_SPI voltage (flash/PSRAM supply) | weak pull-down | 0 VDD_SPI from VDD3P3_RTC via RSPI, typically 3.3 V (default)1 VDD_SPI from the internal 1.8 V LDO1312 |
| GPIO46 GPIO46 | Boot mode; ROM message printing to UART0 (with EFUSE_UART_PRINT_CONTROL) | weak pull-down | 0 required for Joint Download Boot; UART0 ROM printing enabled if EFUSE_UART_PRINT_CONTROL = 01, disabled if = 101 ignored in SPI Boot; UART0 ROM printing disabled if EFUSE_UART_PRINT_CONTROL = 01, enabled if = 10x ROM printing ignores GPIO46 when EFUSE_UART_PRINT_CONTROL = 00 (default: enabled) or 11 (disabled)1213 |
Boot modes
| GPIO0 | GPIO1 | GPIO2 | GPIO46 | Mode |
|---|---|---|---|---|
| 1 | x | x | x | SPI Boot1213 |
| 0 | x | x | 0 | Joint Download Boot (USB Serial/JTAG, USB OTG or UART download)1213 |
| 0 | 1 | 0 | 1 | SPI Download Boot From the TRM. GPIO1 and GPIO2 are not strapping pins, but they must be reserved in this mode.13 |
x = does not matter.
Other pins with a role at boot
- The ADC2 channels cannot be used together with Wi-Fi. ESP-IDF arbitrates ADC2 between Wi-Fi and adc_oneshot_read(), which can fail with ESP_ERR_TIMEOUT; inputs that must be read with Wi-Fi on belong on ADC1.1412
- GPIO19 = USB_D-, GPIO20 = USB_D+; connected to the USB Serial/JTAG controller by default. Reconfiguring them as GPIOs disables USB-JTAG.1215
- With the eFuses at their defaults, JTAG goes to the USB Serial/JTAG controller (GPIO19/20). The pad JTAG (MTCK = GPIO39, MTDO = GPIO40, MTDI = GPIO41, MTMS = GPIO42) is used only after EFUSE_DIS_USB_JTAG is burnt, or with EFUSE_STRAP_JTAG_SEL = 1 and GPIO3 low.1213
- UART0 (console, UART download): U0TXD = GPIO43, U0RXD = GPIO44.1216
- The datasheet states that strapping pin GPIO3 has no internal pull resistors: if its strapping value is used (EFUSE_STRAP_JTAG_SEL = 1), an external circuit must hold it at a defined level.12
- At power-up GPIO1–GPIO19 (including XTAL_32K_P/N = GPIO15/16) are briefly driven low (typ. 60 µs). GPIO18 also shows a high-level glitch; GPIO19 and GPIO20 show two high-level glitches of about 60 µs each; GPIO20 also has a pull-down glitch.12
- By default the ROM prints its boot messages to both UART0 (U0TXD = GPIO43) and the USB Serial/JTAG controller.1312
With the eFuses at their defaults, a high level on GPIO45 at reset switches VDD_SPI to the internal 1.8 V regulator. Keep GPIO45 low during reset on boards with 3.3 V flash or PSRAM, or fix the voltage with EFUSE_VDD_SPI_FORCE.13
The TRM lists GPIO0 = 0 with GPIO46 = 1 only as SPI Download Boot, which also needs GPIO1 = 1 and GPIO2 = 0; other undocumented combinations may trigger unexpected behaviour. Something that pulls GPIO46 high during reset therefore keeps the chip out of Joint Download Boot.13
The internal pulls set a strapping level only when the pin is unconnected or sees a high-impedance circuit. A boot button on GPIO0 has to be a strong pull-down (about 45 kΩ internal pull; e.g. 10 kΩ to GND).12
GPIO1–GPIO20 are briefly driven low or high during power-up (typically 60 µs per pulse, see the glitch rule), before any firmware runs; whatever is connected to them sees these pulses.12
ESP32-C2 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO8 GPIO8 | Boot mode; ROM message printing to UART0 (with EFUSE_UART_PRINT_CONTROL) | none (N/A) | 1 required for Joint Download Boot; ignored in SPI Boot; UART0 ROM printing disabled if EFUSE_UART_PRINT_CONTROL = 1, enabled if = 20 with GPIO9 = 0: SPI Download Boot if GPIO3 = 0 and GPIO2 = 1 (other combinations: see the boot mode table); UART0 ROM printing enabled if EFUSE_UART_PRINT_CONTROL = 1, disabled if = 2x ROM printing ignores GPIO8 when EFUSE_UART_PRINT_CONTROL = 0 (default: enabled) or 3 (disabled)1718 |
| GPIO9 GPIO9 | Boot mode | weak pull-up | 1 SPI Boot (run from flash)0 Joint Download Boot (with GPIO8 = 1)1718 |
Boot modes
x = does not matter.
Other pins with a role at boot
- JTAG: MTMS = GPIO4, MTDI = GPIO5, MTCK = GPIO6, MTDO = GPIO7 (no USB Serial/JTAG on this chip).1718
- UART0 (console, UART download): U0TXD = GPIO20, U0RXD = GPIO19.1719
- On the ESP8684-MINI-1 module (ESP32-C2), GPIO0, GPIO1, GPIO3 and GPIO5 (MTDI) have low-level glitches during power-up. The chip datasheet has no glitch table.20
- U0TXD (GPIO20) has its output enabled with a weak pull-up right after reset; the ROM prints to UART0 unless GPIO8 and EFUSE_UART_PRINT_CONTROL disable it.1718
- The ROM assumes a 40 MHz crystal and sets UART0 to 115200 baud; with a 26 MHz crystal the ROM output runs at about 74880 baud.17
Joint Download Boot needs GPIO9 = 0 and GPIO8 = 1, and GPIO8 has no internal pull at reset, so the board must hold it high. GPIO8 = 0 with GPIO9 = 0 is an invalid combination (or SPI Download Boot, depending on GPIO3/GPIO2); anything on GPIO8 that pulls it low during reset can make download mode unreliable.2118
The internal pull is about 45 kΩ; a button that enters download mode has to pull GPIO9 down hard, e.g. through 10 kΩ to GND. More generally, the weak pulls decide the level only when nothing but a high-impedance circuit is connected.21
The chip cannot detect its crystal frequency. On a 26 MHz board the ROM messages arrive at about 74880 baud instead of 115200.17
Where the sources disagree
ESP32-C3 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO2 GPIO2 | Boot mode (SPI Download Boot only); pull-up recommended | floating | 1 recommended in SPI Boot and Joint Download Boot (because of glitches); required for SPI Download Boot0 with GPIO9 = 0 and GPIO8 = 0: invalid combination2223 |
| GPIO8 GPIO8 | Boot mode; ROM message printing to UART0 (with EFUSE_UART_PRINT_CONTROL) | floating | 1 required for Joint Download Boot; ignored in SPI Boot; UART0 ROM printing disabled if EFUSE_UART_PRINT_CONTROL = 1, enabled if = 20 with GPIO9 = 0: SPI Download Boot if GPIO3 = 0 and GPIO2 = 1 (other combinations: see the boot mode table); UART0 ROM printing enabled if EFUSE_UART_PRINT_CONTROL = 1, disabled if = 2x ROM printing ignores GPIO8 when EFUSE_UART_PRINT_CONTROL = 0 (default: always printed) or 3 (never printed)2223 |
| GPIO9 GPIO9 | Boot mode | weak pull-up | 1 SPI Boot (run from flash)0 Joint Download Boot (with GPIO8 = 1)2224 |
Boot modes
| GPIO2 | GPIO8 | GPIO9 | Mode |
|---|---|---|---|
| 1 | x | 1 | SPI Boot GPIO2 does not actually select the mode; the datasheet recommends pulling it up because of glitches.2223 |
| 1 | 1 | 0 | Joint Download Boot (USB Serial/JTAG or UART download) GPIO2 does not actually select the mode; the datasheet recommends pulling it up because of glitches.2223 |
x = does not matter.
Other pins with a role at boot
- ESP-IDF v5.5.5 does not support ADC2 in oneshot mode on ESP32-C3 at all (unstable results, see the SoC errata); CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 forces it. ADC2 has a single channel, GPIO5. Use ADC1 (GPIO0–GPIO4).2522
- GPIO18 = USB_D-, GPIO19 = USB_D+; connected to the USB Serial/JTAG controller by default. Reconfiguring them as GPIOs disables USB-JTAG.2226
- By default GPIO18/19 are used by the USB Serial/JTAG controller. The pad JTAG interface is MTMS = GPIO4, MTDI = GPIO5, MTCK = GPIO6, MTDO = GPIO7; using USB Serial/JTAG instead frees these pins.2226
- UART0 (console, UART download): U0TXD = GPIO21, U0RXD = GPIO20.2227
- At power-up MTCK (GPIO6), MTDO (GPIO7), GPIO10 and U0RXD (GPIO20) are driven low for about 5 ns; GPIO18 (USB_D-) is driven high for about 50 µs (50000 ns).22
- U0TXD (GPIO21) has its output enabled with a weak pull-up right after reset, and by default the ROM prints boot messages to UART0 and USB Serial/JTAG.22
- After reset GPIO19 has the USB pull-up enabled. When the USB function is disabled and GPIO18/19 are used as GPIOs, their internal pull-up and pull-down start disabled.22
Joint Download Boot needs GPIO9 = 0 and GPIO8 = 1, and GPIO8 floats at reset, so the board must hold it high. GPIO8 = 0 with GPIO9 = 0 is an invalid combination (or SPI Download Boot, depending on GPIO3/GPIO2); anything on GPIO8 that pulls it low during reset can make download mode unreliable.2423
GPIO2 does not select SPI Boot or Joint Download Boot, but it floats at reset and the datasheet recommends a pull-up because of glitches.22
The internal pull is about 45 kΩ; a button that enters download mode has to pull GPIO9 down hard, e.g. through 10 kΩ to GND. More generally, the weak pulls decide the level only when nothing but a high-impedance circuit is connected.24
ESP32-C5 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO2 MTMS | No function given (listed as a strapping pin) | floating | 2829 |
| GPIO3 MTDI | SDIO slave output (driving) edge (together with GPIO25) | floating | 0 SDIO outputs driven on the falling edge1 SDIO outputs driven on the rising edge2830 |
| GPIO7 | JTAG signal source (only if EFUSE_JTAG_SEL_ENABLE is burnt) | floating, no internal pull resistors | 1 JTAG from the USB Serial/JTAG controller0 JTAG from the pins MTDI, MTCK, MTMS, MTDO (GPIO2–GPIO5)2830 |
| GPIO25 | SDIO slave sampling edge (together with MTDI) | floating | 0 SDIO inputs sampled on the falling edge1 SDIO inputs sampled on the rising edge2829 |
| GPIO26 | Boot mode (selects Joint Download Boot 1) | floating | 0 with GPIO27 = 0 and GPIO28 = 0: Joint Download Boot 1 (UART, SDIO)x ignored in SPI Boot and Joint Download Boot 02829 |
| GPIO27 | Boot mode; UART0 ROM message printing | pull-up (1) | 1 with GPIO28 = 0: Joint Download Boot 0 (USB-Serial-JTAG, UART); with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages off, with 2 on0 with GPIO26 = 0 and GPIO28 = 0: Joint Download Boot 1; with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages on, with 2 off2829 |
| GPIO28 | Boot mode | pull-up (1) | 1 SPI Boot (run from flash)0 download boot; GPIO27 and GPIO26 select Joint Download Boot 0 or 12831 |
Boot modes
| GPIO26 | GPIO27 | GPIO28 | Mode |
|---|---|---|---|
| x | x | 1 | SPI Boot default2829 |
| x | 1 | 0 | Joint Download Boot 0 (USB-Serial-JTAG, UART, SPI Slave on chip revision v0.1 only)2829 |
| 0 | 0 | 0 | Joint Download Boot 1 (UART, SDIO) sources disagree Datasheet and TRM list this row; esptool's boot-mode page calls GPIO27 = 0 with GPIO28 = 0 invalid. See “Where the sources disagree”.2829 |
x = does not matter.
Other pins with a role at boot
- GPIO13 (USB D-) and GPIO14 (USB D+) are connected to the USB Serial/JTAG controller by default; they must be reconfigured to work as GPIOs.2832
- Pad JTAG is on GPIO2 (MTMS), GPIO3 (MTDI), GPIO4 (MTCK), GPIO5 (MTDO). By default JTAG goes through the built-in USB Serial/JTAG controller.2830
- UART0 (default console): TX = GPIO11, RX = GPIO12.2833
- GPIO7 (JTAG source strap) has no internal pull resistors; if EFUSE_JTAG_SEL_ENABLE is burnt it must be driven by an external circuit that is not high-impedance.2829
- When the USB function is disabled and GPIO13/GPIO14 are used as GPIOs, their internal pull-up and pull-down resistors are off by default (configurable).28
- GPIO19 is the VDD_SPI pin: the power supply of the flash by default; usable as GPIO only if the flash is powered by an external supply.28
Unlike the ESP32-C6, the C5 selects the boot mode with GPIO26, GPIO27 and GPIO28; GPIO28 is the BOOT pin. With GPIO28 = 0, GPIO27 = 1 selects download over USB/UART, and GPIO27 = 0 with GPIO26 = 0 selects download over UART/SDIO.28
GPIO26 = 1, GPIO27 = 0, GPIO28 = 0 is not in the boot-mode table. The TRM warns that undocumented patterns may cause unexpected behaviour.29
The strap levels must stay valid for at least 3 ms after CHIP_PU goes high.28
Where the sources disagree
- Is GPIO27 = 0 with GPIO28 = 0 valid?. Resolution: The datasheet and TRM (primary) define GPIO26 = GPIO27 = GPIO28 = 0 as Joint Download Boot 1; the esptool page (latest) does not mention GPIO26. Published as in the datasheet.2831
- Function of GPIO2 (MTMS) as a strapping pin. Resolution: Listed as a strapping pin, but no boot function is documented for it. Published without values.2828
- Which pin is VDD_SPI. Resolution: The peripheral-assignment list calls GPIO27 the VDD_SPI pin, but the pin tables put VDD_SPI on pin 29 = GPIO19 and GPIO27 on pin 37 (VDDPST3 domain). Published as GPIO19 (the pin tables).2828
ESP32-C6 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO4 MTMS | SDIO slave sampling edge | floating | 0 SDIO inputs sampled on the falling edge1 SDIO inputs sampled on the rising edge3435 |
| GPIO5 MTDI | SDIO slave output (driving) edge | floating | 0 SDIO outputs driven on the falling edge1 SDIO outputs driven on the rising edge3435 |
| GPIO8 | Boot mode (together with GPIO9); UART0 ROM message printing | floating | 1 required for Joint Download Boot (GPIO9 = 0); with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages off, with 2 on0 with GPIO9 = 0: invalid combination; with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages on, with 2 off3436 |
| GPIO9 | Boot mode | weak pull-up (1) | 1 SPI boot (run from flash)0 Joint Download Boot (USB-Serial-JTAG, UART, SDIO); needs GPIO8 = 13436 |
| GPIO15 | JTAG signal source (only if EFUSE_JTAG_SEL_ENABLE is burnt) | floating, no internal pull resistors | 1 JTAG from the USB Serial/JTAG controller0 JTAG from the pins MTDI, MTCK, MTMS, MTDO (GPIO4–GPIO7)3435 |
Boot modes
| GPIO8 | GPIO9 | Mode |
|---|---|---|
| x | 1 | SPI Boot default3437 |
| 1 | 0 | Joint Download Boot (USB-Serial-JTAG, UART, SDIO)3437 |
| 0 | 0 | Invalid combination invalid3436 |
x = does not matter.
Other pins with a role at boot
- GPIO12 (USB D-) and GPIO13 (USB D+) are connected to the USB Serial/JTAG controller by default; they must be reconfigured to work as GPIOs.3438
- Pad JTAG is on GPIO4 (MTMS), GPIO5 (MTDI), GPIO6 (MTCK), GPIO7 (MTDO). With no eFuses burnt, JTAG goes through the USB Serial/JTAG controller instead.3435
- UART0 (default console): TX = GPIO16, RX = GPIO17.3439
- GPIO15 (JTAG source strap) has no internal pull resistors; if EFUSE_JTAG_SEL_ENABLE is burnt it must be driven by an external circuit that is not high-impedance.34
- GPIO27 is the VDD_SPI pin: the power supply of off-package flash by default; usable as GPIO only if the flash is powered externally.34
- GPIO24–GPIO26 and GPIO28–GPIO30 are the SPI0/1 flash interface and not recommended for other uses.34
The strap levels must stay valid for at least 3 ms after CHIP_PU goes high. Anything external that drives GPIO8, GPIO9 or GPIO15 must not change them during that time.34
GPIO9 has an internal pull-up; a BOOT button should pull it down firmly, for example through 10 kΩ to GND.36
If the application reconfigures the USB pins or disables the USB Serial/JTAG controller, the device disappears from the host. Hold GPIO9 low and reset to get into download mode.38
ESP32-C61 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO3 MTMS | SDIO slave sampling edge | floating | 0 SDIO inputs sampled on the falling edge1 SDIO inputs sampled on the rising edge4041 |
| GPIO4 MTDI | SDIO slave output (driving) edge | floating | 0 SDIO outputs driven on the falling edge1 SDIO outputs driven on the rising edge4041 |
| GPIO7 | JTAG signal source (only if EFUSE_JTAG_SEL_ENABLE is burnt) | floating, no internal pull resistors | 1 JTAG from the USB Serial/JTAG controller0 JTAG from the pins MTDI, MTCK, MTMS, MTDO (GPIO3–GPIO6)4041 |
| GPIO8 | Boot mode (together with GPIO9); UART0 ROM message printing | floating | 1 required for Joint Download Boot (GPIO9 = 0); with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages off, with 2 on0 with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages on, with 2 off4042 |
| GPIO9 | Boot mode | pull-up (1) | 1 SPI Boot (run from flash)0 Joint Download Boot (USB-Serial-JTAG, UART, SDIO Slave 2.0); needs GPIO8 = 14043 |
Boot modes
| GPIO8 | GPIO9 | Mode |
|---|---|---|
| x | 1 | SPI Boot default4043 |
| 1 | 0 | Joint Download Boot (USB-Serial-JTAG, UART, SDIO Slave 2.0)4043 |
| 0 | 0 | Invalid combination invalid Not listed in the datasheet table; esptool calls it invalid, and the TRM says only documented patterns should be used.4243 |
x = does not matter.
Other pins with a role at boot
- GPIO12 (USB D-) and GPIO13 (USB D+) are connected to the USB Serial/JTAG controller by default; they must be reconfigured to work as GPIOs.4044
- Pad JTAG is on GPIO3 (MTMS), GPIO4 (MTDI), GPIO5 (MTCK), GPIO6 (MTDO). By default JTAG goes through the built-in USB Serial/JTAG controller.4041
- UART0 (default console): TX = GPIO11, RX = GPIO10.4045
- GPIO7 (JTAG source strap) has no internal pull resistors; if EFUSE_JTAG_SEL_ENABLE is burnt it must be driven by an external circuit that is not high-impedance.4043
- When the USB function is disabled and GPIO12/GPIO13 are used as GPIOs, their internal pull-up and pull-down resistors are off by default (configurable).40
For download mode GPIO8 must be high. The datasheet lists only SPI Boot and Joint Download Boot; esptool calls the GPIO8 = 0, GPIO9 = 0 combination invalid.42
The strap levels must stay valid for at least 3 ms after CHIP_PU goes high.40
GPIO9 has an internal pull-up; a BOOT button should pull it down firmly, for example through 10 kΩ to GND.42
ESP32-H2 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO8 | Boot mode (together with GPIO9); UART0 ROM message printing | floating | 1 required for Joint Download Boot (GPIO9 = 0); with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages off, with 2 on0 with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages on, with 2 off4647 |
| GPIO9 | Boot mode | weak pull-up (1) | 1 SPI Boot (run from flash)0 Joint Download Boot (USB-Serial-JTAG, UART); needs GPIO8 = 14647 |
| GPIO25 | JTAG signal source (only if EFUSE_JTAG_SEL_ENABLE is burnt) | floating, no internal pull resistors | 1 JTAG from the USB Serial/JTAG controller0 JTAG from the pins MTDI, MTCK, MTMS, MTDO (GPIO2–GPIO5)4648 |
Boot modes
| GPIO8 | GPIO9 | Mode |
|---|---|---|
| x | 1 | SPI Boot default46 |
| 1 | 0 | Joint Download Boot (USB-Serial-JTAG, UART)46 |
| 0 | 0 | Invalid combination invalid Not listed in the datasheet table; esptool calls it invalid.47 |
x = does not matter.
Other pins with a role at boot
- GPIO26 (USB D-) and GPIO27 (USB D+) are connected to the USB Serial/JTAG controller by default; they must be reconfigured to work as GPIOs.4649
- Pad JTAG is on GPIO2 (MTMS), GPIO3 (MTDO), GPIO4 (MTCK), GPIO5 (MTDI). By default JTAG goes through the built-in USB Serial/JTAG controller.4648
- UART0 (default console): TX = GPIO24, RX = GPIO23.4650
- GPIO25 (JTAG source strap) has no internal pull resistors; if the JTAG-select eFuse is burnt it must be driven by an external circuit that is not high-impedance.46
- When the USB function is disabled and GPIO26/GPIO27 are used as GPIOs, their internal pull-up and pull-down resistors are off by default (configurable).46
For download mode GPIO8 must be high. The datasheet lists only SPI Boot and Joint Download Boot; esptool calls the GPIO8 = 0, GPIO9 = 0 combination invalid.47
On the H2 the enable pin is called CHIP_EN. The strap levels must stay valid for at least 3 ms after CHIP_EN goes high.46
GPIO9 has an internal pull-up; a BOOT button should pull it down firmly, for example through 10 kΩ to GND.47
ESP32-P4 chip page →
| Pin | Controls | Default at reset | Levels |
|---|---|---|---|
| GPIO34 | JTAG signal source (only if EFUSE_JTAG_SEL_ENABLE is burnt) | floating, no internal pull resistors | 1 JTAG from the USB Serial/JTAG controller0 JTAG from the pins MTDI, MTCK, MTMS, MTDO (GPIO2–GPIO5)5152 |
| GPIO35 | Boot mode | weak pull-up (1) | 1 SPI Boot (run from flash)0 download: GPIO36 = 1 → Joint Download Boot; GPIO36 = 0 → SPI Download Boot or invalid, depending on GPIO37/GPIO385153 |
| GPIO36 | Boot mode; UART0 ROM message printing | floating | 1 with GPIO35 = 0: Joint Download Boot; with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages off, with 2 on0 with GPIO35 = 0: SPI Download Boot or invalid (see GPIO37/GPIO38); with EFUSE_UART_PRINT_CONTROL = 1 UART0 ROM messages on, with 2 off5153 |
| GPIO37 | Boot mode (SPI Download Boot only); also UART0 TX | floating (high-impedance at reset) | 0 with GPIO35 = 0, GPIO36 = 0 and GPIO38 = 1: SPI Download Boot1 with GPIO35 = 0 and GPIO36 = 0: invalid combination5351 |
| GPIO38 | Boot mode (SPI Download Boot only); also UART0 RX | floating (high-impedance at reset) | 1 with GPIO35 = 0, GPIO36 = 0 and GPIO37 = 0: SPI Download Boot0 with GPIO35 = 0, GPIO36 = 0 and GPIO37 = 0: invalid combination5351 |
Boot modes
| GPIO35 | GPIO36 | GPIO37 | GPIO38 | Mode |
|---|---|---|---|---|
| 1 | x | x | x | SPI Boot default5351 |
| 0 | 1 | x | x | Joint Download Boot (USB-Serial-JTAG, USB 2.0 OTG, UART, SPI Slave)5351 |
| 0 | 0 | 0 | 1 | SPI Download Boot5351 |
| 0 | 0 | 1 | x | Invalid combination invalid53 |
| 0 | 0 | 0 | 0 | Invalid combination invalid5354 |
x = does not matter.
Other pins with a role at boot
- GPIO24 (USB1P1_N0, D-) and GPIO25 (USB1P1_P0, D+) are connected to the USB Serial/JTAG controller by default; they must be reconfigured to work as GPIOs. The ESP-IDF console guide lists GPIO24/26 (D-) and GPIO25/27 (D+).5155
- Pad JTAG is on GPIO2 (MTCK), GPIO3 (MTDI), GPIO4 (MTMS), GPIO5 (MTDO). With no eFuses burnt, JTAG goes through the USB Serial/JTAG controller instead.5152
- UART0 (default console): TX = GPIO37, RX = GPIO38. Both are also strapping pins (SPI Download Boot).5156
- GPIO34 (JTAG source strap) has no internal pull resistors; if EFUSE_JTAG_SEL_ENABLE is burnt it must be driven by an external circuit that is not high-impedance.51
GPIO35 is the BOOT pin. In download mode GPIO36 picks Joint Download Boot (1) or, with GPIO37/GPIO38, SPI Download Boot; GPIO37 and GPIO38 matter only in that case.53
GPIO37/GPIO38 are both the UART0 TX/RX pins and strapping pins. They are floating and high-impedance at reset; with GPIO35 = 1 (normal SPI Boot) their level does not affect the boot mode.53
The strap levels must stay valid for at least 3 ms after CHIP_PU goes high.51
GPIO35 has an internal pull-up; a BOOT button should pull it down firmly, for example through 10 kΩ to GND.54
Where the sources disagree
Sources
Checked 2026-11-28.
- ESP32 Series Datasheet v5.3 primary
What it confirms (11)
- ESP32: GPIO0 “Strapping pin: GPIO0 and GPIO2 … GPIO0 Pull-up 1 … SPI Boot Mode 1 Any value … Joint Download Boot Mode 2 0 0”
- ESP32: GPIO2 “Strapping pin: GPIO0 and GPIO2 … GPIO2 Pull-down 0”
- ESP32: GPIO5 “Strapping pin: MTDO and GPIO5 … GPIO5 Pull-up 1 … Falling edge sampling, falling edge output 0 0 … Falling edge sampling, rising edge output 0 1 … Rising edge sampling, falling edge output 1 0 … Rising edge sampling, rising edge output 1 1”
- ESP32: GPIO12 “Strapping pin: MTDI … MTDI Pull-down 0 … MTDI = 0 (by default), VDD_SDIO pin is powered directly from VDD3P3_RTC. Typically this voltage is 3.3 … MTDI = 1, VDD_SDIO pin is powered from internal 1.8 V LDO. … This functionality can be overridden by setting EFUSE_SDIO_FORCE to 1, in which case the EFUSE_SDIO_TIEH … determines the VDD_SDIO voltage:”
- ESP32: GPIO15 “Strapping pin: MTDO … MTDO Pull-up 1 … During booting, the strapping pin MTDO can be used to control the U0TXD Printing … Rising edge sampling, falling edge output 1 0 … Falling edge sampling, falling edge output 0 0”
- ESP32: boot mode SPI Boot “SPI Boot Mode 1 Any value”
- ESP32: boot mode Joint Download Boot (UART or SDIO download) “Joint Download Boot Mode 2 0 0 … SDIO Download Boot … UART Download Boot”
- ESP32: input_only “GPIO pins 34-39 are input-only. These pins do not feature an output driver or internal pull-”
- ESP32: uart0_default “U0RXD 40 I/O GPIO3, U0RXD, … U0TXD 41 I/O GPIO1, U0TXD,”
- ESP32: External circuits override the weak pulls “are determined by pins’internal weak … pull-up/pull-down resistors at reset if the pins are not connected to any circuit, or connected to an external … high-impedance circuit. … To change the bit values, the strapping pins should be connected to external pull-down/pull-up resistances.”
- ESP32: Free after reset “At system reset, the latches sample the bit values of their respective strapping pins and store them until the chip is powered down or shut down. … the pins are freed up to be used as regular IO pins after reset.”
- esptool documentation (latest, ESP32): Boot Mode Selection primary
What it confirms (6)
- ESP32: GPIO0 “The ESP32 will enter the serial bootloader when GPIO0 is held low on reset. Otherwise it will run the program in flash. … GPIO0 has an internal pullup resistor, so if it is left unconnected then it will pull high.”
- ESP32: GPIO2 “GPIO2 must also be either left unconnected/floating, or driven Low, in order to enter the serial bootloader. … In normal boot mode (GPIO0 high), GPIO2 is ignored.”
- ESP32: GPIO15 “If driven Low, silences boot messages printed by the ROM bootloader. Has an internal pull-up, so unconnected = High = normal output.”
- ESP32: other “After reset, the second line printed by the ESP32 ROM (at 115200bps) is a reset & boot mode message: … If driven Low, silences boot messages printed by the ROM bootloader.”
- ESP32: A boot button on GPIO0 needs a strong pull-down “The ESP32 has a 45k ohm internal pull-up/pull-down resistor at GPIO0 (and other pins). If you want to connect a switch button to enter the boot mode, this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP32: GPIO12 high can brown out 3.3 V flash “May prevent flashing and/or booting if 3.3V flash is used and this pin is pulled high, causing the flash to brownout. … This functionality can be overridden by setting EFUSE_SDIO_FORCE to 1”
- ESP32 Technical Reference Manual v5.9 primary
What it confirms (2)
- ESP32: GPIO5 “By default, the GPIO5 strapping value determines the Slave’s output driving edge.”
- ESP32: other “Some of the SAR ADC2 pins are used as strapping pins (GPIO0, GPIO2, and GPIO15), thus can not be used”
- ESP-IDF v5.5.5 Programming Guide (ESP32): GPIO & RTC GPIO primary
What it confirms (5)
- ESP32: GPIO12 “GPIO12 (MTDI)”
- ESP32: adc2_wifi “ADC2 pins cannot be used when Wi-Fi is used. … you may consider using an ADC1 GPIO instead”
- ESP32: input_only “GPI: GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions.”
- ESP32: jtag_default “JTAG: GPIO12-15 are usually used for inline debug. … MTMS 17 I/O GPIO14, … MTDI 18 I/O GPIO12, … MTCK 20 I/O GPIO13, … MTDO 21 I/O GPIO15, … If EFUSE_DISABLE_JTAG is set to 1, the source of JTAG signals can be disabled.”
- ESP32: no_pullups “GPI: GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions.”
- ESP-IDF v5.5.5 Programming Guide (ESP32): ADC Oneshot Mode Driver primary
What it confirms (1)
- ESP32: adc2_wifi “ADC2 is also used by Wi-Fi. … This function may fail when the ADC is in use by other drivers/peripherals, and return ESP_ERR_TIMEOUT.”
- arduino-esp32 3.3.12: variants/esp32/pins_arduino.h primary
What it confirms (1)
- ESP32: uart0_default “static const uint8_t TX = 1; … static const uint8_t RX = 3;”
- ESP32-S2 Series Datasheet v1.9 primary
What it confirms (11)
- ESP32-S2: GPIO0 “Strapping pins: GPIO0 and GPIO46 … GPIO0 Weak pull-up 1 … SPI boot mode 1 Any value … Joint download boot mode 2 0 0”
- ESP32-S2: GPIO45 “Strapping pin: GPIO45 … GPIO45 Weak pull-down 0”
- ESP32-S2: GPIO46 “Strapping pins: GPIO0 and GPIO46 … ROM message printing … Strapping pin: GPIO46 … GPIO46 Weak pull-down 0 … Enabled 1 0 … 2 1 … Disabled 2 0 … 3 Ignored”
- ESP32-S2: boot mode SPI Boot “SPI boot mode 1 Any value”
- ESP32-S2: boot mode Joint Download Boot (USB OTG, UART or SPI download) “Joint download boot mode 2 0 0 … USB-OTG Download Boot … UART Download Boot … SPI Download Boot”
- ESP32-S2: input_only “Except for GPIO46 (input only)”
- ESP32-S2: usb_default “25 RTC_GPIO19 USB_D- ADC2_CH8 … 26 RTC_GPIO20 USB_D+ ADC2_CH9 … USB_D+/- – by default, connected to the USB OTG. To function as GPIOs, these pins need to be”
- ESP32-S2: jtag_default “43 GPIO39 MTCK I1 … 44 GPIO40 MTDO O/T … 46 GPIO41 MTDI I1 … 47 GPIO42 MTMS I0 … GPIO39, GPIO40, GPIO41, GPIO42 : JTAG interface.”
- ESP32-S2: uart0_default “48 GPIO43 U0TXD O … 49 GPIO44 U0RXD I1 … GPIO43, GPIO44 : UART0 interface.”
- ESP32-S2: other “During the boot process, the messages by the ROM code can be printed to: … (Default) UART0”
- ESP32-S2: External circuits override the weak pulls “pull-up/pull-down resistors at reset if the pins are not connected to any circuit, or connected to an external … high-impedance circuit. … The ESP32-S2 has a 45k ohm internal pull-up/pull-down resistor at GPIO0 (and other pins). If you want to connect a switch button to enter the boot mode, this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP32-S2 Technical Reference Manual v1.3 primary
What it confirms (7)
- ESP32-S2: GPIO0 “GPIO0 GPIO45 GPIO46 … Default Pull-up Pull-down Pull-down”
- ESP32-S2: GPIO45 “GPIO45 = 0, VDD_SPI pin is powered directly from VDD3P3_RTC_IO via resistor RSP I . Typically this … GPIO45 = 1, VDD_SPI pin is powered from internal 1.8 V LDO. … This functionality can be overridden by setting EFUSE_VDD_SPI_FORCE to 1, in which case the”
- ESP32-S2: GPIO46 “UART ROM Code Printing EFUSE_UART_PRINT_CONTROL GPIO46 … EFUSE_UART_PRINT_CONTROL and GPIO46 control ROM messages printing to UART.”
- ESP32-S2: boot mode SPI Boot “”x” means that this value is ignored.”
- ESP32-S2: adc2_wifi “SAR ADC2 can be controlled by three controllers, namely RTC ADC2 CTRL, DIG ADC2 CTRL, and … The value returned by a conversion that is interrupted or not started will be invalid.”
- ESP32-S2: GPIO45 high selects 1.8 V flash supply “GPIO45 = 1, VDD_SPI pin is powered from internal 1.8 V LDO. … This functionality can be overridden by setting EFUSE_VDD_SPI_FORCE to 1, in which case the”
- ESP32-S2: GPIO0 = 0 with GPIO46 = 1 is not a valid combination “The strapping combination of GPIO0 = 0 and GPIO46 = 1 is not supported and will trigger unexpected behavior.”
- ESP-IDF v5.5.5 Programming Guide (ESP32-S2): ADC Oneshot Mode Driver primary
What it confirms (1)
- ESP32-S2: adc2_wifi “ADC2 is also used by Wi-Fi. adc_oneshot_read() has provided protection between the Wi-Fi driver and ADC oneshot mode driver. … This function may fail when the ADC is in use by other drivers/peripherals, and return ESP_ERR_TIMEOUT.”
- ESP-IDF v5.5.5 Programming Guide (ESP32-S2): GPIO & RTC GPIO primary
What it confirms (3)
- ESP32-S2: input_only “GPI: GPIO46 is fixed to pull-down and is input only.”
- ESP32-S2: jtag_default “JTAG: GPIO39-42 are usually used for inline debug.”
- ESP32-S2: no_pullups “GPI: GPIO46 is fixed to pull-down and is input only.”
- arduino-esp32 3.3.12: variants/esp32s2/pins_arduino.h primary
What it confirms (1)
- ESP32-S2: uart0_default “static const uint8_t TX = 43; … static const uint8_t RX = 44;”
- ESP32-S3 Series Datasheet v2.2 primary
What it confirms (15)
- ESP32-S3: GPIO0 “Strapping pin: GPIO0 and GPIO46 … GPIO0 Weak pull-up 1 … SPI boot mode 1 Any value … Joint download boot mode 2 0 0”
- ESP32-S3: GPIO3 “Strapping pin: GPIO3 … GPIO3 Floating – … 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. … 0 0 0 Ignored … USB Serieal/JTAG Controller 0 0 1 1 … 0 0 1 0 … The default values of all the above eFuse parameters are 0”
- ESP32-S3: GPIO45 “Strapping pin: GPIO45 … GPIO45 Weak pull-down 0”
- ESP32-S3: GPIO46 “Strapping pin: GPIO0 and GPIO46 … ROM message printing … Strapping pin: GPIO46 … GPIO46 Weak pull-down 0”
- ESP32-S3: boot mode SPI Boot “SPI boot mode 1 Any value”
- ESP32-S3: boot mode Joint Download Boot (USB Serial/JTAG, USB OTG or UART download) “Joint download boot mode 2 0 0 … USB-Serial-JTAG Download Boot … USB-OTG Download Boot … UART Download Boot”
- ESP32-S3: adc2_wifi “analog functions (see Table 2-8 Analog Functions) cannot be used with Wi-Fi simul-”
- ESP32-S3: usb_default “25 RTC_GPIO19 USB_D- ADC2_CH8 … 26 RTC_GPIO20 USB_D+ ADC2_CH9 … USB_D+/- – by default, connected to the USB Serial/JTAG Controller. To function as GPIOs, these”
- ESP32-S3: jtag_default “0 0 0 Ignored … USB Serieal/JTAG Controller 0 0 1 1 … 0 0 1 0 … 0 1 Ignored Ignored … The default values of all the above eFuse parameters are 0 … 44 GPIO39 MTCK I1 … 45 GPIO40 MTDO O/T … 47 GPIO41 MTDI I1 … 48 GPIO42 MTMS I1 … GPIO39, GPIO40, GPIO41, GPIO42 : JTAG interface.”
- ESP32-S3: uart0_default “49 GPIO43 U0TXD O … 50 GPIO44 U0RXD I1 … GPIO43, GPIO44 : UART0 interface.”
- ESP32-S3: no_pullups “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.”
- ESP32-S3: glitch_at_boot “Some pins have glitches during power-up. See details in Table 2-2. … GPIO1 Low-level glitch 60 … GPIO3 Low-level glitch 60 … GPIO14 Low-level glitch 60 … XTAL_32K_P Low-level glitch 60 … XTAL_32K_N Low-level glitch 60 … GPIO17 Low-level glitch 60 … Low-level glitch 60 GPIO18 High-level glitch 60 … Low-level glitch 60 GPIO19 High-level glitch2 60 … Pull-down glitch 60 GPIO20 High-level glitch2 60 … GPIO19 and GPIO20 pins both have two high-level glitches during chip power-up, each … lasting for about 60 µs. … 1 Low-level glitch: the pin is at a low level output status during the time period; … 21 RTC_GPIO15 XTAL_32K_P ADC2_CH4 … 22 RTC_GPIO16 XTAL_32K_N ADC2_CH5”
- ESP32-S3: other “(Default) UART0 and USB Serial/JTAG controller”
- ESP32-S3: External circuits override the weak pulls “pull-up/pull-down resistors at reset if the pins are not connected to any circuit, or connected to an external … high-impedance circuit. … The ESP32-S3 has a 45k ohm internal pull-up/pull-down resistor at GPIO0 (and other pins). If you want to connect a switch button to enter the boot mode, this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP32-S3: Power-up glitches on GPIO1–20 “Some pins have glitches during power-up. See details in Table 2-2. … 1 Low-level glitch: the pin is at a low level output status during the time period;”
- ESP32-S3 Technical Reference Manual v1.8 primary
What it confirms (11)
- ESP32-S3: GPIO0 “GPIO0 Pull-up … SPI Boot mode 1 Ignored Ignored Ignored”
- ESP32-S3: GPIO3 “GPIO3 controls the source of JTAG signals during the early boot process. … GPIO3 N/A … JTAG pins MTDI, MTCK, MTMS, and MTDO”
- ESP32-S3: GPIO45 “GPIO45 = 0, VDD_SPI pin is powered directly from VDD3P3_RTC via resistor RSP I . Typically this voltage … GPIO45 = 1, VDD_SPI pin is powered from internal 1.8 V LDO. … This functionality can be overridden by setting eFuse bit EFUSE_VDD_SPI_FORCE to 1, in which case the”
- ESP32-S3: GPIO46 “EFUSE_UART_PRINT_CONTROL Represents the default UART boot message output mode. 00: Enabled. 01: Enabled when GPIO46 is low at reset. 10: Enabled when GPIO46 is high at reset. 11:”
- ESP32-S3: boot mode SPI Boot “SPI Boot mode 1 Ignored Ignored Ignored”
- ESP32-S3: boot mode Joint Download Boot (USB Serial/JTAG, USB OTG or UART download) “Joint Download Boot mode1 0 0 Ignored Ignored”
- ESP32-S3: boot mode SPI Download Boot “SPI Download Boot mode2 0 1 1 0 … GPIO1 and GPIO2 are not strapping pins. But”
- ESP32-S3: jtag_default “JTAG pins MTDI, MTCK, MTMS, and MTDO … a Bold marks the default value and configuration”
- ESP32-S3: other “During the boot process, ROM messages are printed to both UART0 and USB Serial/JTAG controller by default.”
- ESP32-S3: GPIO45 high selects 1.8 V flash supply “GPIO45 = 1, VDD_SPI pin is powered from internal 1.8 V LDO. … This functionality can be overridden by setting eFuse bit EFUSE_VDD_SPI_FORCE to 1, in which case the”
- ESP32-S3: Only documented patterns “Only documented patterns should be used. If some pattern is not documented, it may trigger unex- … SPI Download Boot mode2 0 1 1 0 … SPI Download Boot mode: GPIO1 and GPIO2 are not strapping pins.”
- ESP-IDF v5.5.5 Programming Guide (ESP32-S3): ADC Oneshot Mode Driver primary
What it confirms (1)
- ESP32-S3: adc2_wifi “ADC2 is also used by Wi-Fi. adc_oneshot_read() has provided protection between the Wi-Fi driver and ADC oneshot mode driver. … This function may fail when the ADC is in use by other drivers/peripherals, and return ESP_ERR_TIMEOUT.”
- ESP-IDF v5.5.5 Programming Guide (ESP32-S3): GPIO & RTC GPIO primary
What it confirms (1)
- ESP32-S3: usb_default “USB-JTAG: GPIO19 and GPIO20 are used by USB-JTAG by default. If they are reconfigured to operate as normal GPIOs, USB-JTAG functionality will be disabled.”
- arduino-esp32 3.3.12: variants/esp32s3/pins_arduino.h primary
What it confirms (1)
- ESP32-S3: uart0_default “static const uint8_t TX = 43; … static const uint8_t RX = 44;”
- ESP8684 (ESP32-C2) Series Datasheet v2.3 primary
What it confirms (10)
- ESP32-C2: GPIO8 “Strapping pin: GPIO8 and GPIO9 … Strapping pin: GPIO8 … GPIO8 N/A - … EFUSE_UART_PRINT_CONTROL and GPIO8 control ROM messages printing to UART0 … Enabled 1 0 … Disabled 2 0 … 3 Ignored”
- ESP32-C2: GPIO9 “Strapping pin: GPIO8 and GPIO9 … GPIO9 Internal weak pull-up 1 … SPI boot mode 1 x2 … Joint download boot mode 3 0 1”
- ESP32-C2: boot mode SPI Boot “SPI boot mode 1 x2 … Values that have no effect on the result and can”
- ESP32-C2: boot mode Joint Download Boot (UART download) “Joint download boot mode 3 0 1 … Download Boot mode supports UART”
- ESP32-C2: jtag_default “9 GPIO4 MTMS … 10 GPIO5 MTDI … 12 GPIO6 MTCK … 13 GPIO7 MTDO”
- ESP32-C2: uart0_default “19 GPIO19 U0RXD … 20 GPIO20 U0TXD”
- ESP32-C2: other “20 U0TXD IO VDD3P3_CPU OE, WPU IO MUX … EFUSE_UART_PRINT_CONTROL and GPIO8 control ROM messages printing to UART0”
- ESP32-C2: other “Upon power-on reset, the ROM bootloader assumes a default crystal frequency of 40 MHz and sets the UART … baud rate to 115200 bps accordingly. … If a 26 MHz crystal is connected instead, the actual UART baud rate will be approximately 74880 bps.”
- ESP32-C2: Boot log at 74880 baud with a 26 MHz crystal “The chip does not support automatic detection of the crystal frequency, nor is this information stored in … If a 26 MHz crystal is connected instead, the actual UART baud rate will be approximately 74880 bps.”
- ESP32-C2: discrepancy “15 GPIO9 IO VDD3P3_CPU IE IE, WPU IO MUX … GPIO9 Internal weak pull-up 1”
- ESP8684 (ESP32-C2) Technical Reference Manual v1.3 primary
What it confirms (9)
- ESP32-C2: GPIO8 “GPIO8 N/A … SPI Download Boot mode3 0 0 0 1 … Invalid Combination4 0 0 x 0”
- ESP32-C2: GPIO9 “By default, GPIO9 is connected to the chip’s internal pull-up resistor. … GPIO9 Pull-up”
- ESP32-C2: boot mode SPI Boot “SPI Boot mode 1 x1 x x”
- ESP32-C2: boot mode Joint Download Boot (UART download) “Joint Download Boot mode2 0 1 x x”
- ESP32-C2: jtag_default “4 MTMS MTMS GPIO4 … 5 MTDI MTDI GPIO5 … 6 MTCK MTCK GPIO6 … 7 MTDO MTDO GPIO7”
- ESP32-C2: other “20 U0TXD U0TXD GPIO20 - - 2 4 … 4 - OE = 1, WPU = 1 (output enabled, pull-up resistor enabled)”
- ESP32-C2: GPIO8 has no default level “Invalid Combination: This combination can trigger unexpected be-”
- ESP32-C2: discrepancy (GPIO9 pull at reset) “By default, GPIO9 is connected to the chip’s internal pull-up resistor.”
- ESP32-C2: discrepancy “By default, GPIO9 is connected to the chip’s internal pull-up resistor.”
- arduino-esp32 3.3.12: variants/esp32c2/pins_arduino.h primary
What it confirms (1)
- ESP32-C2: uart0_default “static const uint8_t TX = 20; … static const uint8_t RX = 19;”
- ESP8684-MINI-1 & MINI-1U Datasheet v1.1 primary
What it confirms (1)
- ESP32-C2: glitch_at_boot “IO0, IO1, IO3, IO5/MTDI pins have low-level glitches during chip power up.”
- esptool documentation (latest, ESP32-C2): Boot Mode Selection primary
What it confirms (2)
- ESP32-C2: GPIO8 has no default level “GPIO8 must also be driven High, in order to enter the serial bootloader reliably. The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-C2: A boot button on GPIO9 needs a strong pull-down “The ESP32-C2 has a 45k ohm internal pull-up/pull-down resistor at GPIO9 (and other pins). If you want to connect a switch button to enter the boot mode, this has to be a strong pull-down. For example a 10k resistor to GND. … pull-up/pull-down resistors at reset if the pins are not connected to any circuit, or connected to an external … high-impedance circuit.”
- ESP32-C3 Series Datasheet v2.5 primary
What it confirms (13)
- ESP32-C3: GPIO2 “Strapping pins: GPIO2, GPIO8, and GPIO9 … GPIO2 Floating – … GPIO2 actually does not determine SPI Boot and Joint Down- … load Boot mode, but it is recommended to pull this pin up due … to glitches.”
- ESP32-C3: GPIO8 “Strapping pins: GPIO2, GPIO8, and GPIO9 … Strapping pin: GPIO8 … GPIO8 Floating – … EFUSE_UART_PRINT_CONTROL and GPIO8 control ROM messages printing to UART0”
- ESP32-C3: GPIO9 “Strapping pins: GPIO2, GPIO8, and GPIO9 … GPIO9 Weak pull-up 1 … SPI boot mode 1 Any value 1 … Joint download boot mode 3 1 1 0”
- ESP32-C3: boot mode SPI Boot “SPI boot mode 1 Any value 1 … GPIO2 actually does not determine SPI Boot and Joint Down-”
- ESP32-C3: boot mode Joint Download Boot (USB Serial/JTAG or UART download) “Joint download boot mode 3 1 1 0 … USB-Serial-JTAG Download Boot … UART Download Boot”
- ESP32-C3: adc2_wifi “ADC2 supports measurements on 1 channel, and is not factory-calibrated. … ADC2 of some chip revisions is not operable.”
- ESP32-C3: usb_default “25 GPIO18 USB_D- … 26 GPIO19 USB_D+ … USB_D+/- – by default, connected to the USB Serial/JTAG Controller. To function as GPIOs, these”
- ESP32-C3: jtag_default “GPIO4 MTMS I1 GPIO4 … GPIO5 MTDI I1 GPIO5 … GPIO6 MTCK I1 GPIO6 … GPIO7 MTDO O/T GPIO7 … To free these pins up, the pin functions USB_D+/- of the ESP32-C3 Technical Reference Manual”
- ESP32-C3: uart0_default “GPIO20 U0RXD I1 GPIO20 … GPIO21 U0TXD O GPIO21”
- ESP32-C3: glitch_at_boot “Some pins have glitches during power-up. See details in Table 2-2. … Typical Time Period(ns) … MTCK Low-level glitch 5 … MTDO Low-level glitch 5 … GPIO10 Low-level glitch 5 … U0RXD Low-level glitch 5 … GPIO18 High-level glitch 50000 … GPIO6 MTCK I1 GPIO6 … GPIO7 MTDO O/T GPIO7 … GPIO20 U0RXD I1 GPIO20”
- ESP32-C3: other “28 U0TXD IO VDD3P3_CPU WPU 7 IO MUX … 7. Output enabled … (Default) UART0 and USB Serial/JTAG controller”
- ESP32-C3: other “26 GPIO19 IO VDD3P3_CPU USB_PU IO MUX … When the USB function is disabled, USB pins are used as regular GPIOs and the pin’s internal weak pull-up and … pull-down resistors are disabled by default”
- ESP32-C3: Pull GPIO2 up “GPIO2 actually does not determine SPI Boot and Joint Down- … load Boot mode, but it is recommended to pull this pin up due … GPIO2 Floating –”
- ESP32-C3 Technical Reference Manual v1.4 primary
What it confirms (5)
- ESP32-C3: GPIO2 “SPI Download Boot mode3 0 0 0 1 … Invalid Combination4 0 0 x 0 … GPIO2 N/A”
- ESP32-C3: GPIO8 “ROM code is always printed to UART0 during boot. The … 0 Print is enabled during boot. … 1 Print is disabled during boot. … Print is always disabled during boot. The value of GPIO8 is … 01: Enabled when GPIO8 is low at reset. 10: Enabled when GPIO8 is high at reset. 11: Disabled.”
- ESP32-C3: boot mode SPI Boot “SPI Boot mode 1 x1 x x”
- ESP32-C3: boot mode Joint Download Boot (USB Serial/JTAG or UART download) “Joint Download Boot mode2 0 1 x x”
- ESP32-C3: GPIO8 has no default level “Invalid Combination: This combination can trigger unexpected be-”
- esptool documentation (latest, ESP32-C3): Boot Mode Selection primary
What it confirms (3)
- ESP32-C3: GPIO9 “The ESP32-C3 will enter the serial bootloader when GPIO9 is held low on reset. Otherwise it will run the program in flash. … GPIO9 has an internal pullup resistor, so if it is left unconnected then it will pull high.”
- ESP32-C3: GPIO8 has no default level “GPIO8 must also be driven High, in order to enter the serial bootloader reliably. The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-C3: A boot button on GPIO9 needs a strong pull-down “The ESP32-C3 has a 45k ohm internal pull-up/pull-down resistor at GPIO9 (and other pins). If you want to connect a switch button to enter the boot mode, this has to be a strong pull-down. For example a 10k resistor to GND. … pull-up/pull-down resistors at reset if the pins are not connected to any circuit, or connected to an external … high-impedance circuit.”
- ESP-IDF v5.5.5 Programming Guide (ESP32-C3): ADC Oneshot Mode Driver primary
What it confirms (1)
- ESP32-C3: adc2_wifi “ADC2 oneshot mode is no longer supported, due to hardware limitations. The results are not stable. This issue can be found in ESP32-C3 Series SoC Errata. For compatibility, you can enable CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 to force use ADC2.”
- ESP-IDF v5.5.5 Programming Guide (ESP32-C3): GPIO & RTC GPIO primary
What it confirms (2)
- ESP32-C3: usb_default “USB-JTAG: GPIO18 and GPIO19 are used by USB-JTAG by default. If they are reconfigured to operate as normal GPIOs, USB-JTAG functionality will be disabled.”
- ESP32-C3: jtag_default “USB-JTAG: GPIO18 and GPIO19 are used by USB-JTAG by default.”
- arduino-esp32 3.3.12: variants/esp32c3/pins_arduino.h primary
What it confirms (1)
- ESP32-C3: uart0_default “static const uint8_t TX = 21; … static const uint8_t RX = 20;”
- ESP32-C5 Series Datasheet v1.5 primary
What it confirms (23)
- ESP32-C5: GPIO2 “GPIO2, GPIO3, GPIO7, GPIO25, GPIO26, GPIO27, GPIO28 : Strapping pins. … MTMS Floating”
- ESP32-C5: GPIO3 “Strapping pin: GPIO25 and MTDI … MTDI Floating … Falling edge sampling, falling edge output 0 0 … Falling edge sampling, rising edge output 0 1 … GPIO25 and MTDI are floating by default, so above are not default configurations.”
- ESP32-C5: GPIO7 “GPIO7 Floating … The strapping pin GPIO7 can be used to control the source of JTAG signals during the early boot process. … In Joint Download Boot 1 mode, the USB Serial/JTAG controller is forcibly disabled, and the JTAG signal only comes from JTAG pins.”
- ESP32-C5: GPIO25 “GPIO25 Floating … Falling edge sampling, falling edge output 0 0 … Rising edge sampling, falling edge output 1 0”
- ESP32-C5: GPIO26 “GPIO26 Floating … Joint download boot mode 13 0 0 0 … Joint download boot mode 02 Any value 1 0 … Joint Download Boot 1 mode supports the following download methods”
- ESP32-C5: GPIO27 “GPIO27 Pull-up 1 … Joint download boot mode 02 Any value 1 0 … Joint download boot mode 13 0 0 0 … EFUSE_UART_PRINT_CONTROL and GPIO27 control ROM messages printing to UART0 … ROM messages are always printed to UART0 during boot 0 (0b00) x4 … Print is enabled during boot 0 1 (0b01) Print is disabled during boot 1 … Print is disabled during boot 0 2 (0b10) Print is enabled during boot 1 … Print is disabled during boot 3 (0b11) x”
- ESP32-C5: GPIO28 “GPIO28 Pull-up 1 … SPI boot mode1 Any value Any value 11 … Joint download boot mode 02 Any value 1 0”
- ESP32-C5: boot mode SPI Boot “SPI boot mode1 Any value Any value 11”
- ESP32-C5: boot mode Joint Download Boot 0 (USB-Serial-JTAG, UART, SPI Slave on chip revision v0.1 only) “Joint download boot mode 02 Any value 1 0 … USB-Serial-JTAG Download Boot … SPI Slave Download Boot (chip revision v0.1 only)”
- ESP32-C5: boot mode Joint Download Boot 1 (UART, SDIO) “Joint download boot mode 13 0 0 0 … Joint Download Boot 1 mode supports the following download methods: • UART Download Boot • SDIO Download Boot”
- ESP32-C5: usb_default “GPIO13, GPIO14 : USB Serial/JTAG interface. … By default, the USB function is enabled for USB pins (i.e., GPIO13 and GPIO14)”
- ESP32-C5: jtag_default “GPIO2, GPIO3, GPIO4, GPIO5 : JTAG interface. … 11 GPIO2 MTMS I1 … 14 GPIO5 MTDO O/T”
- ESP32-C5: uart0_default “GPIO11, GPIO12 : UART0 interface. … 20 GPIO11 U0TXD O … 21 GPIO12 U0RXD I1”
- ESP32-C5: no_pullups “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.”
- ESP32-C5: other “When the USB function is disabled, USB pins are used as regular GPIOs. In this case, the internal weak pull-up and pull-down resistors of the USB pins are disabled by default, but are configurable”
- ESP32-C5: other “29 GPIO19 VDD_SPI … VDD_SPI – the power supply pin for flash by default, and can only be used as a GPIO pin if the flash is powered by an external power supply.”
- ESP32-C5: Three boot-mode pins “Strapping pin: GPIO26, GPIO27, and GPIO28 … Joint download boot mode 02 Any value 1 0 … Joint download boot mode 13 0 0 0”
- ESP32-C5: Hold the levels for 3 ms “pin values after CHIP_PU is already high and before these pins 3”
- ESP32-C5: discrepancy (Is GPIO27 = 0 with GPIO28 = 0 valid?) “Joint download boot mode 13 0 0 0”
- ESP32-C5: discrepancy (Function of GPIO2 (MTMS) as a strapping pin) “MTMS Floating”
- ESP32-C5: discrepancy (Function of GPIO2 (MTMS) as a strapping pin) “Strapping pin: GPIO25 and MTDI”
- ESP32-C5: discrepancy (Which pin is VDD_SPI) “GPIO27 : The VDD_SPI pin.”
- ESP32-C5: discrepancy (Which pin is VDD_SPI) “29 GPIO19 VDD_SPI … 37 GPIO27 IO VDDPST3 IE, WPU IE, WPU”
- ESP32-C5 Technical Reference Manual v1.1 primary
What it confirms (9)
- ESP32-C5: GPIO2 “Bit[1]: MTMS”
- ESP32-C5: GPIO25 “Bit[6]: GPIO25”
- ESP32-C5: GPIO26 “Joint Download Boot 13 0 0 0”
- ESP32-C5: GPIO27 “Bit[3]: GPIO27”
- ESP32-C5: boot mode SPI Boot “SPI Boot1 Any value Any value 11”
- ESP32-C5: boot mode Joint Download Boot 0 (USB-Serial-JTAG, UART, SPI Slave on chip revision v0.1 only) “Joint Download Boot 02 Any value 1 0”
- ESP32-C5: boot mode Joint Download Boot 1 (UART, SDIO) “Joint Download Boot 13 0 0 0”
- ESP32-C5: no_pullups “This pin does not have internal pull-up or pull-down resistors”
- ESP32-C5: Use only documented combinations “Only documented patterns should be used. If an undocumented pattern is used, it may trigger unexpected behaviors.”
- ESP-IDF v5.5.5 docs (esp32c5): Configure Other JTAG Interfaces primary
What it confirms (3)
- ESP32-C5: GPIO3 “MTDI / GPIO3”
- ESP32-C5: GPIO7 “If the strapping pin is low when ESP32-C5 is reset, JTAG interface will use GPIO2-GPIO5. If the strapping pin is high, USB_SERIAL_JTAG will be used as the JTAG interface.”
- ESP32-C5: jtag_default “By default, ESP32-C5 JTAG interface is connected to the built-in USB_SERIAL_JTAG peripheral. … JTAG interface can then be connected to GPIO2-GPIO5.”
- esptool docs (latest), ESP32-C5: Boot Mode Selection primary
What it confirms (2)
- ESP32-C5: GPIO28 “The ESP32-C5 will enter the serial bootloader when GPIO28 is held low on reset.”
- ESP32-C5: discrepancy (Is GPIO27 = 0 with GPIO28 = 0 valid?) “The strapping combination of GPIO27 = 0 and GPIO28 = 0 is invalid and will trigger unexpected behavior.”
- ESP-IDF v5.5.5 docs (esp32c5): USB Serial/JTAG Controller Console primary
What it confirms (1)
- ESP32-C5: usb_default “14 | D+ (green) | 13 | D- (white)”
- ESP-IDF v5.5.5: components/soc/esp32c5/include/soc/uart_pins.h primary
What it confirms (1)
- ESP32-C5: uart0_default “#define U0RXD_GPIO_NUM 12 … #define U0TXD_GPIO_NUM 11”
- ESP32-C6 Series Datasheet v1.6 primary
What it confirms (15)
- ESP32-C6: GPIO4 “SDIO Sampling and Driving Clock Edge … Strapping pin: MTMS and MTDI … MTMS Floating … Falling edge sampling, falling edge output 0 0 … Rising edge sampling, falling edge output 1 0 … GPIO4, GPIO5, GPIO8, GPIO9, GPIO15 : Strapping pins.”
- ESP32-C6: GPIO5 “MTDI Floating … Falling edge sampling, falling edge output 0 0 … Falling edge sampling, rising edge output 0 1 … MTMS and MTDI are floating by default, so above are not default configurations.”
- ESP32-C6: GPIO8 “GPIO8 Floating … SPI boot mode Any value 1 … Joint download boot mode 2 1 0 … Invalid combination 3 0 0 … EFUSE_UART_PRINT_CONTROL and GPIO8 control ROM messages printing to UART0 … UART0 ROM Code Printing EFUSE_UART_PRINT_CONTROL GPIO8 0 Ignored Enabled 1 0 2 1 1 1 Disabled 2 0 3 Ignored”
- ESP32-C6: GPIO9 “GPIO9 Weak pull-up 1 … SPI boot mode Any value 1 … Joint download boot mode 2 1 0 … USB-Serial-JTAG Download Boot … UART Download Boot … SDIO Download Boot”
- ESP32-C6: GPIO15 “GPIO15 Floating … The strapping pin GPIO15 can be used to control the source of JTAG signals during the early boot process. … 0 0 0 Ignored USB Serial/JTAG Controller 0 0 1 1 … 0 0 1 0 JTAG pins 2 … JTAG pins refer to MTDI, MTCK, MTMS, and MTDO.”
- ESP32-C6: boot mode SPI Boot “SPI boot mode Any value 1”
- ESP32-C6: boot mode Joint Download Boot (USB-Serial-JTAG, UART, SDIO) “Joint download boot mode 2 1 0 … USB-Serial-JTAG Download Boot … SDIO Download Boot”
- ESP32-C6: boot mode Invalid combination “Invalid combination 3 0 0 … This combination triggers unexpected behavior and should be avoided.”
- ESP32-C6: usb_default “GPIO12, GPIO13 : USB Serial/JTAG interface. … USB_D+/- – by default, connected to the USB Serial/JTAG Controller. To function as GPIOs, these pins need to be reconfigured.”
- ESP32-C6: jtag_default “GPIO4, GPIO5, GPIO6, GPIO7 : JTAG interface. … 0 0 0 Ignored USB Serial/JTAG Controller”
- ESP32-C6: uart0_default “GPIO16, GPIO17 : UART0 interface. … 29 U0TXD U0TXD (P1) … 30 U0RXD U0RXD (P1)”
- ESP32-C6: no_pullups “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.”
- ESP32-C6: other “GPIO27 : The VDD_SPI pin. The power supply pin for off-package flash by default, and can only be reconfigured as a GPIO pin if the flash is powered by an external power supply.”
- ESP32-C6: other “GPIO24, GPIO25, GPIO26, GPIO28, GPIO29, GPIO30 : SPI0/1 interface recommended for the off-package flash.”
- ESP32-C6: Hold the levels for 3 ms “pin values after CHIP_PU is already high and before these pins 3”
- ESP-IDF v5.5.5 docs (esp32c6): Configure Other JTAG Interfaces primary
What it confirms (4)
- ESP32-C6: GPIO4 “MTMS / GPIO4”
- ESP32-C6: GPIO5 “MTDI / GPIO5”
- ESP32-C6: GPIO15 “If the strapping pin is low when ESP32-C6 is reset, JTAG interface will use GPIO4-GPIO7. If the strapping pin is high, USB_SERIAL_JTAG will be used as the JTAG interface.”
- ESP32-C6: jtag_default “MTMS / GPIO4 … MTDO / GPIO7 … JTAG interface can then be connected to GPIO4-GPIO7.”
- esptool docs (latest), ESP32-C6: Boot Mode Selection primary
What it confirms (4)
- ESP32-C6: GPIO8 “In normal boot mode (GPIO9 high), GPIO8 is ignored.”
- ESP32-C6: GPIO9 “The ESP32-C6 will enter the serial bootloader when GPIO9 is held low on reset.”
- ESP32-C6: boot mode Invalid combination “The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-C6: BOOT button needs a strong pull-down “GPIO9 has an internal pullup resistor, so if it is left unconnected then it will pull high. … this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP32-C6 Technical Reference Manual v1.2 primary
What it confirms (2)
- ESP32-C6: boot mode SPI Boot “SPI Boot 1 x”
- ESP32-C6: boot mode Joint Download Boot (USB-Serial-JTAG, UART, SDIO) “Download Boot 0 1”
- ESP-IDF v5.5.5 docs (esp32c6): USB Serial/JTAG Controller Console primary
What it confirms (2)
- ESP32-C6: usb_default “13 | D+ (green) | 12 | D- (white)”
- ESP32-C6: Lost the USB port? Use GPIO9 “If the application accidentally reconfigures the USB peripheral pins or disables the USB Serial/JTAG Controller, the device disappears from the system. After fixing the issue in the application, you need to manually put the ESP32-C6 into download mode by pulling low GPIO9 and resetting the chip.”
- ESP-IDF v5.5.5: components/soc/esp32c6/include/soc/uart_pins.h primary
What it confirms (1)
- ESP32-C6: uart0_default “#define U0RXD_GPIO_NUM 17 … #define U0TXD_GPIO_NUM 16”
- ESP32-C61 Series Datasheet v1.1 primary
What it confirms (13)
- ESP32-C61: GPIO3 “Strapping pin: MTDI and MTMS … MTMS Floating … Falling edge sampling, falling edge output 0 0 … Rising edge sampling, falling edge output 1 0 … 9 MTMS MTMS I1 GPIO3”
- ESP32-C61: GPIO4 “MTDI Floating … Falling edge sampling, falling edge output 0 0 … Falling edge sampling, rising edge output 0 1 … 10 MTDI MTDI I1 GPIO4 … MTMS and MTDI are floating by default, so above are not default configurations.”
- ESP32-C61: GPIO7 “GPIO7 Floating … The strapping pin GPIO7 can be used to control the source of JTAG signals during the early boot process.”
- ESP32-C61: GPIO8 “GPIO8 Floating … SPI Boot 1 Any value 1 … Joint Download Boot2 1 0 … LP_AON_STORE4_REG[0], EFUSE_UART_PRINT_CONTROL and GPIO8 control ROM messages printing to UART0 … Always enabled2 0 Ignored Enabled 0 1 Disabled 1 0 Disabled 0 2 Enabled 1 Always disabled 3 Ignored Disabled Ignored Ignored 1”
- ESP32-C61: GPIO9 “GPIO9 Pull-up 1 … SPI Boot 1 Any value 1 … Joint Download Boot2 1 0 … SDIO Slave 2.0 Download Boot”
- ESP32-C61: boot mode SPI Boot “SPI Boot 1 Any value 1”
- ESP32-C61: boot mode Joint Download Boot (USB-Serial-JTAG, UART, SDIO Slave 2.0) “Joint Download Boot2 1 0 … SDIO Slave 2.0 Download Boot”
- ESP32-C61: usb_default “28 USB_D- GPIO12 I/O/T GPIO12 … 29 USB_D+ GPIO13 I/O/T GPIO13 … USB_D+/- – by default, connected to the USB Serial/JTAG Controller. To function as GPIOs, these pins need to be reconfigured.”
- ESP32-C61: jtag_default “9 MTMS MTMS I1 GPIO3 … 10 MTDI MTDI I1 GPIO4 … 11 MTCK MTCK I1 GPIO5 … 12 MTDO MTDO O/T GPIO6”
- ESP32-C61: uart0_default “33 U0RXD U0RXD I1 GPIO10 … 34 U0TXD U0TXD O GPIO11”
- ESP32-C61: no_pullups “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.”
- ESP32-C61: other “When the USB function is disabled, USB pins are used as regular GPIOs and the pin's internal weak pull-up and pull-down resistors are disabled by default”
- ESP32-C61: Hold the levels for 3 ms “pin values after CHIP_PU is already high and before these pins 3”
- ESP-IDF v5.5.5 docs (esp32c61): Configure Other JTAG Interfaces primary
What it confirms (4)
- ESP32-C61: GPIO3 “MTMS / GPIO3”
- ESP32-C61: GPIO4 “MTDI / GPIO4”
- ESP32-C61: GPIO7 “If the strapping pin is low when ESP32-C61 is reset, JTAG interface will use GPIO3-GPIO6. If the strapping pin is high, USB_SERIAL_JTAG will be used as the JTAG interface.”
- ESP32-C61: jtag_default “By default, ESP32-C61 JTAG interface is connected to the built-in USB_SERIAL_JTAG peripheral. … JTAG interface can then be connected to GPIO3-GPIO6.”
- esptool docs (latest), ESP32-C61: Boot Mode Selection primary
What it confirms (4)
- ESP32-C61: GPIO8 “In normal boot mode (GPIO9 high), GPIO8 is ignored.”
- ESP32-C61: boot mode Invalid combination “The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-C61: GPIO8 = 0 with GPIO9 = 0 is not a boot mode “GPIO8 must also be driven High, in order to enter the serial bootloader reliably. … The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-C61: BOOT button needs a strong pull-down “GPIO9 has an internal pullup resistor, so if it is left unconnected then it will pull high. … this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP32-C61 Technical Reference Manual v1.0 primary
What it confirms (5)
- ESP32-C61: GPIO9 “By default, GPIO9 is connected to the chip's internal pull-up resistor.”
- ESP32-C61: boot mode SPI Boot “SPI Boot mode 1 x1”
- ESP32-C61: boot mode Joint Download Boot (USB-Serial-JTAG, UART, SDIO Slave 2.0) “Joint Download Boot mode2 0 1”
- ESP32-C61: boot mode Invalid combination “Only documented patterns should be used. Undocumented patterns may trigger unexpected behaviors.”
- ESP32-C61: no_pullups “pin does not have any internal pull resistors”
- ESP-IDF v5.5.5 docs (esp32c61): USB Serial/JTAG Controller Console primary
What it confirms (1)
- ESP32-C61: usb_default “13 | D+ (green) | 12 | D- (white)”
- ESP-IDF v5.5.5: components/soc/esp32c61/include/soc/uart_pins.h primary
What it confirms (1)
- ESP32-C61: uart0_default “#define U0RXD_GPIO_NUM 10 … #define U0TXD_GPIO_NUM 11”
- ESP32-H2 Series Datasheet v1.3 primary
What it confirms (11)
- ESP32-H2: GPIO8 “GPIO8 Floating … SPI Boot Any value 1 … Joint Download Boot 2 1 0 … EFUSE_UART_PRINT_CONTROL, LP_AON_STORE4_REG[0], and GPIO8 control ROM messages printing to UART0 … GPIO8 0 Ignored Enabled 0 1 0 2 1 1 1 0 2 0 Disabled 3 Ignored 1 Ignored Ignored”
- ESP32-H2: GPIO9 “GPIO9 Weak pull-up 1 … SPI Boot Any value 1 … Joint Download Boot 2 1 0 … USB-Serial-JTAG Download Boot … UART Download Boot”
- ESP32-H2: GPIO25 “GPIO25 Floating … The strapping pin GPIO25 can be used to control the source of JTAG signals during the early boot process. … USB Serial/JTAG Controller 0 Ignored JTAG pins 2 0 0 0 1 USB Serial/JTAG Controller 1 … JTAG pins refer to MTDI, MTCK, MTMS, and MTDO.”
- ESP32-H2: boot mode SPI Boot “SPI Boot Any value 1”
- ESP32-H2: boot mode Joint Download Boot (USB-Serial-JTAG, UART) “Joint Download Boot 2 1 0 … USB-Serial-JTAG Download Boot … UART Download Boot”
- ESP32-H2: usb_default “25 GPIO26 USB_D- … 26 GPIO27 USB_D+ … USB_D+/- – by default, connected to the USB Serial/JTAG Controller. To function as GPIOs, these pins need to be reconfigured.”
- ESP32-H2: jtag_default “5 GPIO2 MTMS I1 … 6 GPIO3 MTDO O/T … 7 GPIO4 MTCK I1 … 8 GPIO5 MTDI I1”
- ESP32-H2: uart0_default “22 GPIO23 U0RXD I1 … 23 GPIO24 U0TXD O”
- ESP32-H2: no_pullups “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.”
- ESP32-H2: other “When the USB function is disabled, USB pins are used as regular GPIOs and the pin's internal weak pull-up and pull-down resistors are disabled by default”
- ESP32-H2: Hold the levels for 3 ms “pin values after CHIP_EN is already high and before these pins 3”
- esptool docs (latest), ESP32-H2: Boot Mode Selection primary
What it confirms (5)
- ESP32-H2: GPIO8 “In normal boot mode (GPIO9 high), GPIO8 is ignored.”
- ESP32-H2: GPIO9 “The ESP32-H2 will enter the serial bootloader when GPIO9 is held low on reset.”
- ESP32-H2: boot mode Invalid combination “The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-H2: GPIO8 = 0 with GPIO9 = 0 is not a boot mode “GPIO8 must also be driven High, in order to enter the serial bootloader reliably. … The strapping combination of GPIO8 = 0 and GPIO9 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-H2: BOOT button needs a strong pull-down “GPIO9 has an internal pullup resistor, so if it is left unconnected then it will pull high. … this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP-IDF v5.5.5 docs (esp32h2): Configure Other JTAG Interfaces primary
What it confirms (2)
- ESP32-H2: GPIO25 “If the strapping pin is low when ESP32-H2 is reset, JTAG interface will use GPIO2-GPIO5. If the strapping pin is high, USB_SERIAL_JTAG will be used as the JTAG interface.”
- ESP32-H2: jtag_default “By default, ESP32-H2 JTAG interface is connected to the built-in USB_SERIAL_JTAG peripheral. … JTAG interface can then be connected to GPIO2-GPIO5.”
- ESP-IDF v5.5.5 docs (esp32h2): USB Serial/JTAG Controller Console primary
What it confirms (1)
- ESP32-H2: usb_default “27 | D+ (green) | 26 | D- (white)”
- ESP-IDF v5.5.5: components/soc/esp32h2/include/soc/uart_pins.h primary
What it confirms (1)
- ESP32-H2: uart0_default “#define U0RXD_GPIO_NUM 23 … #define U0TXD_GPIO_NUM 24”
- ESP32-P4 Series Datasheet v0.7 primary
What it confirms (14)
- ESP32-P4: GPIO34 “GPIO34 Floating … The strapping pin GPIO34 can be used to control the source of JTAG signals during the early boot process. … 0 0 0 Ignored USB Serial/JTAG Controller 0 0 1 1 … 0 0 1 0 JTAG pins 2 … JTAG pins refer to MTDI, MTCK, MTMS, and MTDO.”
- ESP32-P4: GPIO35 “GPIO35 Weak pull-up 1 … SPI boot mode 1 Any value Any value Any value … joint download boot mode 2 0 1 Any value Any value”
- ESP32-P4: GPIO36 “GPIO36 Floating … joint download boot mode 2 0 1 Any value Any value … EFUSE_UART_PRINT_CONTROL and GPIO36 control ROM messages printing to UART0 … GPIO36 0 Ignored Enabled 1 0 2 1 1 1 Disabled 2 0 3 Ignored”
- ESP32-P4: GPIO37 “GPIO37 Floating”
- ESP32-P4: GPIO38 “GPIO38 Floating”
- ESP32-P4: boot mode SPI Boot “SPI boot mode 1 Any value Any value Any value”
- ESP32-P4: boot mode Joint Download Boot (USB-Serial-JTAG, USB 2.0 OTG, UART, SPI Slave) “joint download boot mode 2 0 1 Any value Any value”
- ESP32-P4: boot mode SPI Download Boot “ESP32-P4 also supports SPI Download Boot mode.”
- ESP32-P4: usb_default “GPIO24, GPIO25 : USB Serial/JTAG interface. … 52 GPIO24 USB1P1_N0 … 53 GPIO25 USB1P1_P0 … USB1P1_N0/P0 – by default, connected to the USB Serial/JTAG Controller. To function as GPIOs, these pins need to be reconfigured”
- ESP32-P4: jtag_default “GPIO2, GPIO3, GPIO4, GPIO5 : JTAG interface. … 2 GPIO2 MTCK I1 … 3 GPIO3 MTDI I1 … 4 GPIO4 MTMS I0 … 5 GPIO5 MTDO O/T … 0 0 0 Ignored USB Serial/JTAG Controller”
- ESP32-P4: uart0_default “GPIO37, GPIO38 : UART0 interface. … 69 GPIO37 UART0_TXD_PAD O … 70 GPIO38 UART0_RXD_PAD I1”
- ESP32-P4: no_pullups “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.”
- ESP32-P4: Hold the levels for 3 ms “pin values after CHIP_PU is already high and before these pins 3”
- ESP32-P4: discrepancy (Boot-mode table: datasheet vs TRM) “For details about the functionalities of GPIO37 and GPIO38”
- ESP-IDF v5.5.5 docs (esp32p4): Configure Other JTAG Interfaces primary
What it confirms (2)
- ESP32-P4: GPIO34 “If the strapping pin is low when ESP32-P4 is reset, JTAG interface will use GPIO2-GPIO5. If the strapping pin is high, USB_SERIAL_JTAG will be used as the JTAG interface.”
- ESP32-P4: jtag_default “MTCK / GPIO2 … MTMS / GPIO4 … JTAG interface can then be connected to GPIO2-GPIO5.”
- ESP32-P4 Technical Reference Manual v1.0 primary
What it confirms (12)
- ESP32-P4: GPIO35 “GPIO35 Pull-up … SPI Boot mode (default) 1 x1 x x”
- ESP32-P4: GPIO36 “0 x2 Always enabled 0 Enabled 1 1 Disabled 0 Disabled 2 1 Enabled 3 x Always disabled”
- ESP32-P4: GPIO37 “GPIO37 Floating … SPI Download Boot mode3 0 0 0 1 … 0 0 1 x Invalid Combination4 0 0 0 0 … GPIO37 and GPIO38 need to be reserved only when using SPI Download Boot mode. GPIO37 and GPIO38 are floating by default and are in a high-impedance state at reset.”
- ESP32-P4: GPIO38 “GPIO38 Floating … SPI Download Boot mode3 0 0 0 1 … Invalid Combination4 0 0 0 0 … GPIO37 and GPIO38 are floating by default and are in a high-impedance state at reset.”
- ESP32-P4: boot mode SPI Boot “SPI Boot mode (default) 1 x1 x x”
- ESP32-P4: boot mode Joint Download Boot (USB-Serial-JTAG, USB 2.0 OTG, UART, SPI Slave) “Joint Download Boot mode2 0 1 x x … USB-Serial-JTAG Download Boot … UART Download Boot … SPI Slave Download Boot … USB 2.0 OTG Download Boot”
- ESP32-P4: boot mode SPI Download Boot “SPI Download Boot mode3 0 0 0 1 … In SPI Download Boot mode, users can download binary files into flash using SPI interface.”
- ESP32-P4: boot mode Invalid combination “0 0 1 x Invalid Combination4 … Invalid Combination: This combination can trigger unexpected behavior and should be avoided.”
- ESP32-P4: boot mode Invalid combination “Invalid Combination4 0 0 0 0 … Invalid Combination: This combination can trigger unexpected behavior and should be avoided.”
- ESP32-P4: Four boot-mode pins “Joint Download Boot mode2 0 1 x x … SPI Download Boot mode3 0 0 0 1 … GPIO37 and GPIO38 need to be reserved only when using SPI Download Boot mode.”
- ESP32-P4: Strapping pins on the console UART “SPI Boot mode (default) 1 x1 x x … GPIO37 and GPIO38 are floating by default and are in a high-impedance state at reset.”
- ESP32-P4: discrepancy (Boot-mode table: datasheet vs TRM) “SPI Download Boot mode3 0 0 0 1”
- esptool docs (latest), ESP32-P4: Boot Mode Selection primary
What it confirms (2)
- ESP32-P4: boot mode Invalid combination “The strapping combination of GPIO36 = 0 and GPIO35 = 0 is invalid and will trigger unexpected behavior.”
- ESP32-P4: BOOT button needs a strong pull-down “GPIO35 has an internal pullup resistor, so if it is left unconnected then it will pull high. … this has to be a strong pull-down. For example a 10k resistor to GND.”
- ESP-IDF v5.5.5 docs (esp32p4): USB Serial/JTAG Controller Console primary
What it confirms (1)
- ESP32-P4: usb_default “25/27 | D+ (green) | 24/26 | D- (white)”
- ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/uart_pins.h primary
What it confirms (1)
- ESP32-P4: uart0_default “#define U0RXD_GPIO_NUM 38 … #define U0TXD_GPIO_NUM 37”