Unable to select correct serial port

I am trying to upload a sketch to a Doit ESP32 development board. I can see the board on COM6 in the device manager, and can connect to it on that port using PuTTY. IDE version 2.3.4 insists that the board should be on COM7 and offers no alternative, and no way to change it.

Running under Win11 on an Acer spin3.

What happens when the board is connected and you click on the COM7 port?

If I go to "Select other board and port", I get "No ports discovered" although "Show all ports" is ticked. If I go to Tools, Port shows COM7 and there is no way to change it.

Can you read the number off the boards USB/UART chip? Is that driver installed? The standard ones to google are ch340 cp2102.

CP2102 Device Manager identifies as CP210x.

Sure, if that is the only port then you can't change it. If the Tools menu shows COM7 then you should be hooked up. What do you see bottom right edge of the IDE, it should look something like the pic.
Screenshot 2025-02-10 at 23.17.30

DOIT ESP32 DEVKIT V1 on COM7 (not connected). I checked the driver, it is from Silicon Labs, and, according to Windows, it is the most recent version. How does the IDE determine which COM port the device is supposed to be connected to?

It's NOT the IDE, kill the IDE, open the device manager then plug and unplug the DOIT and you should see COM ports being created. I was doing that a few days ago to debug a specific board that ended up being a very weird cable issue (it was 4 wires and I determined continuity but changing it fixed the problem)

OK, I killed the IDE, unplugged the ESP32, re-plugged the ESP32 and restarted the IDE. When the IDE came up, it saw the ESP32 on COM6. I then plugged an M5 Atom, which came up on COM5, and the IDE found it. So it all appears to be working as advertised now, but I've no idea what caused the original problem
Thanks for your help.

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