IDE only recognizing port with uno, not nano or esp32

to be clear, I am changing the board in the tools menu.

when I upload code to my Arduino uno it works perfectly (using port 9), but I need a smaller board for my project.

I bought some Arduino nanos but when I try to upload to them I get the
avrdude: ser_open(): can't open device "\.\COM9": The system cannot find the file
specified.
error message. I tried closing all my other programs and rebooting my laptop but it didn't fix anything. It also seems to me the port can't be occupied since my Uno works fine. I figured the boards (they were cheap) were broken and bought some esp32 wrooms

Those throw a similar error:
A fatal error occurred: Could not open COM9, the port is busy or doesn't exist.
(could not open port 'COM9': FileNotFoundError(2, 'The system cannot find the file
specified.', None, 2))

             Hint: Check if the port is correct and ESP connected

             the selected serial port 
             does not exist or your board is not connected

I figure it can't be a problem with the boards, but I don't know what else it could be.

Are the Nano and ESP32 using COM9, or different ports? The error ("the selected serial port
does not exist or your board is not connected") seems to indicate that might be the issue.

2 Likes

Different drivers?

1 Like

This was it, thank you. I looked at the ports in use in device manager, the nano kept appearing and disappearing on port 10, and the esp32 didn't show up at all. I replaced my cable to stop the bad on and off connection, changed my port to port 10 for my nano and it worked. for the esp32 I looked up what to do if it isn't showing up, downloaded a driver for it and now that's working too. I really appreciate the help.

2 Likes

So the solution was to install a missing driver? Isn't post #3 the solution then?

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