ESP32 won't start or upload when a part is on GPIO 0, 2, 5, 12 or 15
- ESP32
You may see
Why it happens
- GPIO 0, 2, 5, 12 and 15 are checked at start-up.
- GPIO 12 held HIGH at start-up makes the board feed its memory chip 1.8 V instead of 3.3 V, so it can't start.
How to fix it
- Unplug the wires on GPIO 0, 2, 5, 12 and 15 and press EN (reset). If it starts, one of them was the cause.
- Move that part to a safe pin such as 4, 13, 14, 18, 19, 21, 22, 23, 25, 26, 27, 32 or 33, and change the number in the code.
- An LED with a resistor to GND on these pins usually causes no trouble; a pull-up, relay or sensor might.
It worked if: The board starts and uploads with everything connected.
Related errors
Tutorials where it can happen
- Digital Input and Output with the ESP32
- Building a Motion Detection System Using ESP32 and ESP-NOW
- Building an Automated Plant Watering System using ESP32
- ESP32 / ESP8266 - Realtime Database with Firebase
- ESP32 Async Web Server Code
- ESP32 BLE Server and Client with Arduino IDE
16 more
- ESP32 DHT11 Web Server: Show Temperature and Humidity
- ESP32 PIR Motion Sensor with Interrupts and Timers
- ESP32 PWM with Arduino IDE: LED Brightness Control
- ESP32 Web Server: Control LED Brightness with a Slider
- ESP32/ESP8266 Data Logging to Firebase with Login
- How to make an ESP32 Web Server?
- How to Read Analog Signals with the ESP32?
- How to use Bluetooth on the ESP32 ?
- How to use the BLE on the ESP32?
- Interfacing ESP32 with 16x2 LCD Displays
- Log DHT11 Data to Firebase Realtime Database: the Code
- Pulse Width Modulation (PWM) with the ESP32
- Put Your Web Page on a Real ESP32
- Smart Plant Pot with ESP32 (IoT)
- Task Automation with Simple Timer using the ESP32
- What is a Web Socket Server?
From the official documentation. Pins and the GPIO 12 rule from Espressif. Sources: Espressif esptool: boot mode selection, Espressif: ESP32 GPIO notes.
Didn't help? Search another error or ask us.

