NodeMCU won't start or upload with a part on D3, D4 or D8

  • ESP8266 NodeMCU

Why it happens

  • GPIO 0 (usually D3) and GPIO 2 (usually D4) must be HIGH, and GPIO 15 (usually D8) LOW, when the board starts.

How to fix it

  1. Unplug the parts on D3, D4 and D8 and press RST.
  2. Move them to D1, D2, D5, D6 or D7, and change the pin in the code.
  3. Check the D-number against your board's pin picture.

It worked if: The board starts with everything plugged in.

From the official documentation. Boot levels from the ESP8266 Arduino core documentation. The D-numbers are the usual NodeMCU labels. Sources: ESP8266 Arduino core: boards.

Didn't help? Search another error or ask us.