Can't Upload a File on Windows 11

I'm trying to run a project on ESP32 DEVKIT V1, and after installing the ESP add-on, I chose the example of Wi-Fi scan. I have COM4 and COM5 ports available on the "tools" menu.
Regardless if the board is connected to any of the ports or not connected at all, when I choose COM5 the message I get is:
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected

And when I choose COM4 the message I get is:
serial.serialutil.SerialTimeoutException: Write timeout
Failed to execute script esptool
An error occurred while uploading the sketch

(however, it is at least showing an attempt to connect.)

What else can I do?
My professor says that the Windows 11 is the problem.
When I used the same version of the IDE (1.8.19) on the same computer, just a month ago, for Arduino Mega2560 board - I had no issues whatsoever.

Did anyone try, right after the upload the code is selected, wait for the little dashes and dots then press the button on the ESP32?

The dashes and dots don't appear. That's why my professor says he thinks it is a Windows 11 issue.
I am aware they need to appear - but they don't.

Did you try to install the USB driver?

How to install the drivers CP21012 for the USB bridge chip for the ESP32 (techexplorations.com)

I'm using Windows 11 and the Arduino thinges work fine.

I did not try that. Let me see if it would help.

Okay, now COM5 is responsive, but I still get an error message:
Serial port COM5
Connecting ........_____ ....._____ ....._____ ....._____ ....._____ ....._____ .....____An error occurred while uploading the sketch

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

Should I connect a capacitor between the GND and EN? Because I press the "boot" button when the dashes start to appear.

I do not have any more advise for you, sorry.

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