ESP32 will not boot with something attached: strapping pins explained

On the classic ESP32, GPIO 0, 2, 5, 12 and 15 are read at reset to choose the boot mode and settings. Things wired to them can stop it booting.

What the message means

The chip samples these pins in the moment of reset. A module that pulls one to the wrong level changes the boot mode or the flash voltage.

Fix it in this order

  1. Avoid these pins for sensors and modules, or make sure the module does not pull them in the wrong direction at start.
  2. GPIO 0 low at reset enters download mode. Do not hold it low in normal use.
  3. GPIO 12 high at reset can set the wrong flash voltage on some modules. See the GPIO 12 page.
  4. Disconnect the attached module and see if the board boots. Then connect it again after boot.
  5. Check the datasheet for your exact chip, since other ESP32 models have different strapping pins.

Why it happens

At reset the ESP32 samples certain GPIO pins to choose its boot mode and internal voltages. If an attached sensor, LED, or relay pulls one of those pins to the wrong level during reset, the chip may enter download mode or pick the wrong flash voltage. The external load can block a normal boot even when the program itself is fine. These pins are read only at reset, so the fault appears at power-up.

The safe approach is to keep strapping pins free of loads that could pull them the wrong way at startup, or to choose a different pin for that device. Once the chip has booted, the pin is free to use, so a device on it may work normally afterwards. Pin behaviour differs between ESP32 variants and some boards add their own pull resistors, so check the datasheet for your exact module.

If you see this, do this

You seeDo this
Boots with the module unplugged onlyStrapping pin conflict.
Stuck in download modeGPIO 0 held low.

Confirm the fix

  1. Unplug the attached module, power the board, and confirm it boots and prints its startup text in the serial monitor.
  2. Reconnect the module, press reset, and note whether the boot fails at that moment or only after a power cycle.
  3. Measure the suspect strapping pin with a multimeter while the module is connected, then compare the level with the datasheet boot requirement.

Common mistake: Assuming any GPIO can take any load safely. A few pins control boot mode, and a load on one of them can stop the board from starting at all.

GPIO 12 boot fail, wrong boot mode, ESP32 pinout.

Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.