Solved: Upload comm failure: New PC & Windows 11 using IDE 2.0.4

Howdy,

I just built a brand new PC with Windows 11 and installed IDE 2.0.4.
After compiling simple Blink sketch and attempting to UPLOAD the sketch to an ESP32
I received the error message:

Sketch uses 252261 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22128 bytes (6%) of dynamic memory, leaving 305552 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: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2

Following the link:

I successfully terminated the process:
arduino-cli.exe

I then had to restart the IDE as there was no longer a port connection with the IDE program.
What I know:

  1. ESP32 is good; same result for two different ones and they have been successfully uploaded
    on another PC
  2. Serial port (COM1) is functional. USB zipdrive works in same port.
  3. Unplugging and reattaching USB cable going to ESP32 generates an audible "connected tone" from Windows 11.
  4. Same symptoms trying two other USB ports. It is interesting that switching USB ports the port designation is still "COM1" in the IDE Tools and Upload error message.
  5. I am pressing the processor "load" button when the upload attempts to connect.
  6. Upload speed set at 115200.

Hopefully you guys can provide some hints at what else to check.

thanks,

Mister Ed

edit 1:
Verified successful Arduino Uno Wifi Rev2 Blink sketch upload & operation (through COM3)

Hi @edthewino. COM1 is usually the internal serial port of your computer, not the Arduino board.

You can check whether it's the ESP32 board by doing this:

  1. Unplug your ESP32 board from the computer.
  2. Select Tools > Port from the Arduino IDE menus.
  3. Note the ports, if any, listed in the menu.
  4. Close the Tools menu.
    The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  5. Plug your Arduino board into the computer.
  6. Select Tools > Port from the Arduino IDE menus. - The new port listed in the menu is the one for your Arduino board.

If you don't see a new port listed when you open the menu after plugging in the board, then you know that any port listed in the menu is not the ESP32 board.

Please let us know what you find.

Does device manager show com1 as well?

Removing USB cable from port does not change port listing.
COM3 is shown for UNO Wifi Rev2 and COM1 remains with a check mark
both before and after removing cable connection.

I would of thought COM1 would have disappeared but it remained. Windows
gives me an audible "ding" each time I remove or attach the cable to the port.

Yep. It lists both COM ports 1 & 3.

Interesting that under Device Manager for COM3 properties it shows the baud rate
at 9600. The upload went fine with the UNO on COM3. For giggles I changed the
COM1 port to 9600 instead of 115200 just to see if it would work. No change;
same error message.

I am unsure if this matters but it is worth mentioning I guess. The USB ports I am using
are the ones installed on the Thermaltake case front. I did try a USB port hardwired to the motherboard but it produced the same result as the case USB ports. And since the UNO is
uploading fine on the case USB ports I would think they are also ok for the ESP32.

Do you have the ESP32 Windows driver installed?

So Windows device manager does not show a port but Windows makes the dingdong sound when you connect the board. Anything (new) with a yellow triangle in Windows device manager when you connect the board?

Device Manager DOES show the port(s).
COM1 for ESP and COM3 for Arduino UNO.

Under Device Manager it shows two different drivers available for installation: serenum.sys & serial.sys. What is the correct device driver for linking to an ESP32?

Hmmm..... that is a very good question!
Are you referring to the Espressif install in the IDE or an installation
in the Windows environment?

I have a Windows 10 Notebook PC with IDE 1.8.19 installed on it and the port COM3 works fine
with the ESP32. I just successfully performed an upload to the ESP32 on it. On that PC the port is labeled as Silicon Labs CP210x USB to UART Bridge (COM3).
Under driver file details it i lists the file at C:\windows\system32\DRIVERS\silabser.sys

Should the Windows 11 Desktop running the IDE 2.0.4 have the same driver assignment?

I need an xpert to tell me why Windows Device Manager is not letting me select the Silicon Labs CP210x driver I just installed using the CP210xVCPInstaller_x64. It keeps telling me after I select the SiLabs \x64 folder using 'Update Driver' (locate and install a driver manually) that "Windows has determined the best driver for this device is already installed." Huh?

Under Driver File Details

It lists C:\Windows\system32\DRIVERS\serenum.sys & \serial.sys

I want \silabser.sys as an option to choose. I read the driver updater might look for
a .inf file but the subfolder only has the silabser.sys file and a couple .dll files:
WdfCoInstaller01009,dll
WdfCoInstaller01011.dll

There is a slabvcp (.inf) file [TYPE Setup Information] in the parent folder; I put it in the /x64 subfolder as well but no change in outcome.

Help!!!

You already proved to yourself that COM1 is not the port of the ESP32 board:


Did you have the Ports (COM & LTP) > Communications Port (COM1) device selected when you attempted to install the driver?

Or did you have the Other devices > CP2102 USB to UART Bridge device selected?

Yes.

CP2102 USB to UART Bridge is not listed under "Other Devices."

There is an unknown device listed at the bottom. I know the SiLabs driver installed as Windows prompted me through the process & FINISHED. But something is still blocking the
Update Driver routine in seeing the new driver.

OK, so the "Windows has determined the best driver for this device is already installed." is expected in that case because COM1 is not the ESP32 board.

Are you certain? I can see it in the screenshot you shared in post #11:

image

Please plug the USB cable of your ESP32 board into your computer and check Device Manager again.

OK.

I am not sure why the CP2102 USB to Bridge listing disappeared under Other Devices.
But YOU WERE CORRECT about the port NOT BEING COM!.

I installed the driver and attempted to update it without having the ESP32 connected!!!
It was still attached to my Notebook PC.
Once I plugged it into the new PC a "COM4" magically appeared. LOL
And the SiLabs driver was there and listed under the Driver File details.
The ESP32 received an upload as well!!!

Sorry 'bout not catching on sooner about the "COM1" bit. I was being obtuse obviously.
Thanks for getting me straightened out!!!!!!
I am a "happy camper" now. Lol.

You are welcome. I'm glad it is working now.

Regards,
Per