Error when uploading

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

i cant upload any programs
I think anyone can help me
please
THANK YOU,
MUHAMMED KM

Hi @muhammxdkm786.

This error occurs when the the port you have selected in Arduino IDE no longer exists on your computer.

Please perform this experiment to identify the port of your Arduino board:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Select Tools > Port from the Arduino IDE menus.
  3. Note the ports, if any, listed in the menu.
  4. Close the Tools menu.
    :exclamation: The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  5. Connect the Arduino board to your computer with a USB cable.
  6. Select Tools > Port from the Arduino IDE menus. - If a new port is listed in the menu, that is the port of your Arduino board.

If you are able to identify a port for your board by performing that experiment, simply select that port from the Tools > Port menu and you should then be able to upload successfully.

If no new port appears after you plug the Arduino board into your computer, add a reply here to let us know and we'll help you to investigate the problem.

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