ESP32 Troubleshooting Guide
ESP32 Troubleshooting Guide
ESP32 Troubleshooting Guide
The ESP32 has a few common problems, specially when you are trying to upload new
sketches or install the ESP32 add-on for the Arduino IDE.
This guide is dedicated to the ESP32 when programmed with Arduino IDE. Here’s a
compilation with some of the most common problems with the ESP32 and how to fix
them.
IMPORTANT: MAKE SURE YOU HAVE THE LATEST ARDUINO IDE INSTALLED. USING A
DIFFERENT ARDUINO IDE VERSION MIGHT CAUSE OTHER UNEXPECTED PROBLEMS AND
ERRORS.
Note: Windows PCs often have multiple Arduino IDE versions installed (portable and local
installations). Make sure you are running the Arduino IDE where you installed the ESP32
add-on.
Having the right board name and COM por selected, follow these steps:
• Press the “Upload” button in the Arduino IDE to upload a new sketch:
That’s it. Your ESP32 should have the new sketch running. With those boards/with that
setup, after uploading a new sketch, press the “ENABLE” button to restart the ESP32 and
run the new uploaded sketch.
You’ll also have to repeat that button sequence every time you want to upload a new
sketch.
To be honest we’re not sure why that happens with the newer boards. We don’t have any
ESP32 board with that behavior. We think it’s something different with in your specific
board or the Arduino IDE fails to send the right command sequence to put the ESP32
automatically in flashing/uploading mode.
It looks like your Arduino IDE is compiling the WiFi library for the Arduino board (instead
of using the ESP32 WiFi library).
Note: you’ll probably never use any WiFi shield with your Arduino board, right? If you don’t
use it, you need to remove that folder/those folders from your Arduino IDE (move it to
your desktop, for example).
C:\Users\ruisantos\Downloads\arduino-1.8.7-windows\arduino-1.8.7\libraries\WiFi
And/or at:
C:\Users\ruisantos\Documents\Arduino\libraries\libraries\WiFi
After removing the entire WiFi library folder from one location or both locations, restart
your Arduino IDE and try to compile the code again.
1. If you don’t see your ESP’s COM port available, this often means you don’t have the USB
drivers installed. Take a closer look at the chip next to the voltage regulator on board and
check its name.
Go to Google and search for your particular chip to find the drivers and install them in
your operating system.
You can download the CP2102 drivers on the Silicon Labs website.
2. If you have the drivers installed, but you can’t see your device, double-check that you’re
using a USB cable with data wires.
USB cables from powerbanks often don’t have data wires (they are charge only). So, your
computer will never establish a serial communication with your ESP32. Using a a proper
USB cable should solve your problem.
Solution: try a different shorter USB cable (with data wires), try a different computer USB
port or use a USB hub with an external power supply.