Unable to upload code

I'm unable to upload my code to my board " ARDUINO UNO R3" .
The following error is showing up on my screen :

Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\mugen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\mugen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b115200 -D "-Uflash:w:C:\Users\mugen\AppData\Local\Temp\arduino\sketches\02EA5F6F68FB953198FED3467F2BEB3D/sketch_dec28a.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\mugen\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM3
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: ser_open(): can't set com-state for "\.\COM3"

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

did you forgot to select COM port?

Not sure if it's the latest version of the instructions but this m provide the solution: Can't set com-state on a cheap nano clone - #6 by ptillisch

No. I did select the port.

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