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.
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.