Upload to ESP32 fails: "No serial data received."

Continuing the discussion from Upload Error: exit status 2:

Hi,

I have the same issue during a long time. Update has not helped. What to do?

Sketch uses 266109 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22560 bytes (6%) of dynamic memory, leaving 305120 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM1
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - β€” esptool.py latest documentation
Failed uploading: uploading error: exit status 2

Hi @stormblast. Try this:

  1. Select Sketch > Upload from the Arduino IDE menus.
  2. Watch the black output panel at the bottom of the Arduino IDE window until you see this text printed:
    Connecting...
    
  3. Press and hold the button on your ESP32 board.
    β“˜ if your board has multiple buttons, you might have to do some trial and error to determine which is the one you need to press.
  4. Wait about one second.
  5. Release the button.

The upload should now finish successfully.

There is a hard way I used....Keep pressing IO0 push button continiously till upload is started

This is something that has the highest probability of working because of ESP32 board mechanics

I have the same issue as @stormblast and have tried the steps that you've suggested, but it is still giving me this error. Do you have any alternative fixes?
Thank you!

I have the same issue, i already put capacitor 1 mikrofarad 16 V, and doesn't make any different, pls help me

WARNING: library LiquidCrystal I2C claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
Sketch uses 748093 bytes (57%) of program storage space. Maximum is 1310720 bytes.
Global variables use 44256 bytes (13%) of dynamic memory, leaving 283424 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port COM3
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - β€” esptool.py latest documentation
Failed uploading: uploading error: exit status 2

Hello everyone,
I am struggling with the same issue, tried everything and the solution above still doesn’t work for me.
Anyhelp PLEASE !!!!

1 Like

Hi @israa_ham. Please try this:

  1. Select Sketch > Upload from the Arduino IDE menus.
  2. Watch the black output panel at the bottom of the Arduino IDE window until you see this text printed:
    Connecting...
    
  3. Press and hold the button on your ESP32 board.
    β“˜ if your board has multiple buttons, you might have to do some trial and error to determine which is the one you need to press.
  4. Wait about one second.
  5. Release the button.

The upload should now finish successfully.

Sketch uses 1118085 bytes (85%) of program storage space. Maximum is 1310720 bytes.
Global variables use 39616 bytes (12%) of dynamic memory, leaving 288064 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port COM6
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - β€” esptool.py latest documentation
Failed uploading: uploading error: exit status 2
could u plz tell me how 2 solvse this problem?

hello,i meet the same problem ,but i cant deal with it by trying ur suggetions,could u plz tell why?==

Hi @hooxizz. Please add a reply here on this forum thread to tell us which Arduino development tool you are using:

I ask because I would like to give you the appropriate instructions.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.