an error occured while uploading sketch

Arduino: 1.8.9 (Windows 10), Board: "Arduino Uno"

Sketch uses 3618 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 367 bytes (17%) of dynamic memory, leaving 1681 bytes for local variables. Maximum is 2048 bytes.
C:\Users\dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\dell\AppData\Local\Temp\arduino_build_205283/prog.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\dell\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

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

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Does COM3 disappear from the IDE when you disconnect the board? What does Windows device manager think of your board?

Is anything connected to pins 0 and 1?

Have you used the board before without problems?

Please enable verbose output during upload and disable verbose output during compilation, attempt an upload and post the results here on a new reply; please use code tags when posting the result.

1 Like

Thank you for the quick support.
All though I solved the error by installing CH340 Driver.

In which case COM3 in your original post more than likely was not the Uno.