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

im getting these error messeges but the same exit status1 thing, can somebody help?

Sketch uses 1176 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 75 bytes (3%) of dynamic memory, leaving 1973 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\cohen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\cohen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM7" -b57600 -D "-Uflash:w:C:\Users\cohen\AppData\Local\Temp\arduino\sketches\B6B17C9A5E06C3DD3DCE9C731CA85B42/stepper-test.ino.hex:i"

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\cohen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "\\.\COM7": The system cannot find the file specified.



avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1**strong text**

@hilow1209

You're using a Nano as far as I can see.

Is COM7 indeed the port that your board is connected to? Does it disappear when you disconnect the board?
Did you close the serial monitor?

yes, COM7 is the intended port, I'm not sure what serial monitor is or what it does so i assume its not on.

In that case I do not know.

@hilow1209 please answer the question @sterretje asked:

In case the question wasn't clear, I'll provide instructions you can follow:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Select Tools > Port from the Arduino IDE menus.
  3. Take note of 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.

Then reply here on this forum thread with the answer to the following questions:

  • Did a new port appear in the menu at the last step?
  • Was that new port COM7?

yes, and yes, and i also have serial monitor turned on now.

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