LOGBOOK

HELP

Quiz Entry - updated: 2026.12.01

What do you give up on the ESP32 by using GPIO12-15 for JTAG, and which of those pins can stop the board from booting?

The four pins are no longer available to the application, and two of them are strapping pins that the chip reads at reset. If the adapter pulls GPIO12 (MTDI) high during a reset, the ESP32 switches its flash supply to 1.8 V and a module with 3.3 V flash fails to boot.

While an adapter is connected, GPIO12, 13, 14 and 15 belong to JTAG. The firmware must not configure them for an LED, a button or a sensor, or the two uses fight over the pin. Plan the pin assignment around them from the start.

Two of the pins have a second job at power-up. Strapping pins are sampled once, at reset, to configure the chip before any code runs:

Pin JTAG name Strapping meaning
GPIO12 MTDI Selects the voltage of the internal regulator that powers the SPI flash: low (the default, with an internal pull-down) means 3.3 V, high means 1.8 V.
GPIO15 MTDO When pulled low, it silences the ROM bootloader's log messages on the serial port.

GPIO12 is the dangerous one. The ESP32-WROOM-32D module carries 3.3 V flash. If GPIO12 is high at reset, the chip feeds that flash only 1.8 V, cannot read it, and the board seems dead or keeps resetting with flash read errors. The program itself has no bug.

Espressif's OpenOCD guards against this during a debug session: the board file sets ESP32_FLASH_VOLTAGE 3.3, and OpenOCD forces that flash voltage when it resets the chip. The strap still bites on a plain power-up with the adapter attached. The permanent fix is an eFuse: espefuse set-flash-voltage 3.3V (older releases spell it espefuse.py set_flash_voltage) makes the chip ignore the GPIO12 strap. Like every eFuse it cannot be undone, so it is only done when needed.

Go deeper:

From Quiz: SIOT / JTAG Debugging with OpenOCD and GDB | Updated: Dec 01, 2026