Avrdude can't open device- solutions didn't work

I was working with my Arduino Uno with no problem. after weeks I tried to upload a sketch, but it can't be connected. with this error:

avrdude: ser_open(): can't open device "\\.\COM6": The system cannot find the file specified.


Failed uploading: uploading error: exit status 1

On the board, I have the green light and an orange light on. and the TX light is blinking.
on the IDE, It doesn't detect my board and can't change the port. it's on COMP6 and grayed out.
This screenshot shows my IDE with serial port open:


I restart PC, board and IDE. checked with two different cables.
I'm on Windows 11. nothing else connected but mouse, keyboard, hard drive and the arduino.
and This is a screenshot of Device manager:

Load the Blink sketch, that empty sketch won't use the serial port.

I actually had this problem with my sketch.
however this it the error with the blink project:

That looks like a Windows device manager problem. I drive a Mac so can't help. You might try (cold)re-booting the Win box.

1 Like

I see many topics like this with many solutions. but none of them worked for me.
what do you think? is it possible that my arduino is broken?

The error looks to me to be a device manager problem. I drive a Mac now to avoid this problem, but doing a cold reboot may help. Cold means power off and power on the PC.

I saw your answer and thank you for that. but the problem still remains.

Do you have a buddy with a PC? Try it on his/hers.

We can see from this that the board isn't even being recognized by Windows. So the problem is nothing to do with Arduino IDE, but instead at a lower level.

Make sure the USB cable is completely plugged into both the Arduino board and the PC.

If that doesn't help, you may have a damaged/defective or charge-only USB cable. Try a different cable.

Either of the above can result in the power connections being made (and thus LEDs lit on the board), but no data connections (and thus no port for the board).

2 Likes

It doesn't appear in device manager on other devices with two different cables.
Is there any information I can provide to figure out the problem?

It is possible for a short or external circuitry connected to the Arduino board to cause it to no longer produce a port.

Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.

If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. Connect the Arduino board to your computer with a USB cable.

Now check to see whether a port is shown for the board in Arduino IDE's Tools > Port menu. If it does, you know the problem was caused by the external circuitry. You can then focus your attention on identifying the specific problem with the circuit and resolving it.

1 Like

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