Cannot connect to ESP32 board on Win11 using IDE 2.1.0

Hello,

I recently tried to upload a self-compiled example sketch onto an ESP32 module (Watchy by SQFMI) using Arduino IDE 2.1.0 on Win11 but unfortunately I am getting the following error message:

Sketch uses 1907809 bytes (60%) of program storage space. Maximum is 3145728 bytes.
Global variables use 65176 bytes (19%) of dynamic memory, leaving 262504 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: _https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html_
Failed uploading: uploading error: exit status 2

I followed the manufacturer manual (installing esp library and the [CP2104 USB to Serial drivers] and so on...) but nothing changes. Interestingly I tried the same procedure on a Win10 machine and it worked the first try with the same cable and Arduino IDE configuration. I have read that people had similar problems with ESP32 upload on Win11 but it was mainly related to the COM1 port being selected, which is not the case for me (COM3 and the respective board were selected).

I tried different USB port on my PC, tried to reinstall Arduino IDE (with wiping library files under appdata) but the problem still persists. Windows gives the typical "connected" charm when plugging in the device.

Does anybody have an idea what the solution may be? I am very grateful for your suggestions.

Thank you! :slightly_smiling_face:

I have the exact same problem as kuki_223. Could anyone help?

Hi @gersonlourenco. Sometimes people say "same problem" and then we later find that in fact there were significant differences, so I'll ask you some questions to make sure it is in fact the same:

Are you also using the Watchy board?

Are you also getting this exact error message when uploading:

Have you also found that uploads work on a computer running Windows 10, but not on a computer running Windows 11?

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