ESP32 Uploading error Com Error

Suddenly I have a problem communication with my ESP32 development board Using IDE 1.1.19
My sketch complies correctly.
Com port opens on Com 4 but displays nothing.
On uploading, the upload stops with "Connecting..." and moves no further
( I do hold the boot button down)

Is this an ESP32 hardware issue or a PC error?

Here is an extract from the messages:
esptool.py v3.0-dev
Serial port COM4
Connecting...
Traceback (most recent call last):
File "esptool.py", line 3682, in
File "esptool.py", line 3675, in _main
File "esptool.py", line 3330, in main
File "esptool.py", line 512, in connect
File "esptool.py", line 492, in _connect_attempt
File "esptool.py", line 431, in sync
File "esptool.py", line 369, in command
File "esptool.py", line 332, in write
File "site-packages\serial\serialwin32.py", line 323, in write
serial.serialutil.SerialTimeoutException: Write timeout
Failed to execute script esptool
An error occurred while uploading the sketch

Looks like a PC or USB-Serial adapter issue, or wrong COM port selected.

Do a Google search on the above error message for some more information.

Kindly follow the points here: [SOLVED] Failed to connect to ESP32: Timed out waiting for packet header | Random Nerd Tutorials
If nothing works, probably the board is gone.

Thank you.
Going through the events of the day I remembered that I tried to install Spaces by Wix. It was unsuccessful and I uninstalled it.
Later I used the Arduino IDE. The uninstall must has removed the specific com port driver.
srnet's comment got me searching for "site-packages\serial\serialwin32.py" on Google where there was a suggestion to load the CP2102 chip driver.
Com 5 popped up and the problem solved

That is what to do if you get a different error, the "Timed out waiting for packet header" error which you get when the USB-Serial adapter and COM port is working.

Bonjour, vous pouvez aussi voir le lien suivant :

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