# ESP8266 does not boot with something wired to it: GPIO 0, 2 and 15

> Fix an ESP8266 that fails to start: keep GPIO 0 and GPIO 2 high and GPIO 15 low at reset, and do not hang modules on those pins.

Canonical: https://roboticsengineering.in/fix/esp8266-wont-boot-gpio0-gpio2-gpio15-strapping/ | Published: 2026-11-03 | Updated: 2026-11-04

**At reset, GPIO 0 and GPIO 2 must be high and GPIO 15 must be low for a normal start.**

## What the message means

The chip reads these pins to choose the boot mode. A relay, a button or a sensor that pulls one of them the wrong way stops the sketch from running.

## Fix it in this order

1. Disconnect everything from GPIO 0, 2 and 15 and see if the board boots.
2. Do not pull GPIO 0 low in normal use, since that is the upload mode.
3. Make sure GPIO 15 has a pull-down to ground, as most boards already have.
4. Add a pull-up resistor on GPIO 2 if a module pulls it low.
5. Connect modules to pins that do not affect boot, then check the pin map of your board.
6. Use a good supply, since low voltage also stops the boot.

## Why it happens

The ESP8266 reads GPIO 0, GPIO 2 and GPIO 15 at reset to decide how to start. For a normal start GPIO 15 must be low, GPIO 0 high and GPIO 2 high. A wire, sensor or pull-up that changes one of these levels stops the board from booting.

Disconnect whatever is on those pins while resetting, and use other pins for sensors and outputs where possible.

## If you see this, do this

| You see | Do this |
| --- | --- |
| Boots with the module unplugged | Strapping pin conflict. |
| Boots but prints garbage at 74880 baud | Normal boot message. Set the monitor to 74880 to read it. |

## Related

[NodeMCU D pins and GPIO](https://roboticsengineering.in/fix/nodemcu-d-pin-numbers-vs-gpio/), [ESP32 strapping pins](https://roboticsengineering.in/fix/esp32-strapping-pins-boot-problems/).

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.

## Why this happens

On reset, the ESP8266 reads the levels of GPIO 15, GPIO 0 and GPIO 2 and uses them to choose how to start. For a normal start from flash, GPIO 15 must be low, and GPIO 0 and GPIO 2 must be high. If GPIO 0 is low at reset, the chip enters its serial download mode and waits for a new program instead of running yours.

The pins are read only at reset. A relay board, a button or a sensor that holds one pin the wrong way at that moment stops the sketch from starting. Once the program is running, the pins behave as normal I/O, so the fault seems to vanish when you pull the wire out.

## How to confirm the cause

- Disconnect everything from GPIO 0, 2 and 15 and reset the board. If it now runs, one of those parts was holding a strapping level.
- Open the serial monitor at 74880 baud and read the boot line. The text boot mode:(3,x) typically means a normal start from flash, while (1,x) means download mode.
- Measure the three pins to ground just before reset if you can. GPIO 15 should be near 0 V, and GPIO 0 and 2 should be high.
- Check the board’s pin map for which D-label each GPIO has, and which are used by on-board parts such as the LED.
- Check the 3.3 V supply when the board resets. A dip can mimic a boot fault.

## Worked example

A typical boot line printed at 74880 baud shows the reset reason and the boot mode. After this line, set the monitor to your own baud rate to read your messages.

```
ets Jan  8 2013,rst cause:2, boot mode:(3,6)

(3,x)  GPIO15=0, GPIO0=1, GPIO2=1   normal boot from flash
(1,x)  GPIO15=0, GPIO0=0, GPIO2=1   UART download mode

If you see (1,x) after a reset, something is holding GPIO 0 low.
```

## Common mistakes

- Wiring a relay input or a button to GPIO 0 and leaving it on during start-up.
- Pulling GPIO 15 high, since it needs a pull-down.
- Reading the boot message at 115200 baud and thinking it is corrupt.
- Powering the board from a weak USB port.

## If this did not fix it

- The supply voltage and the 3.3 V regulator under load.
- A bad wire or contact on the reset or enable pin.
- A program that crashes at start-up. Read the reset cause in the boot line.
