Can't Upload Simple Sketch to Uno

Hi all!

I was trying to switch Unos because I have multiple projects. Everything was working fine until I switched to an Uno I had lying around. It compiles fine, but I get this error message when I try to upload. The correct board and port are selected. I also tried switching my Serial.begin() from 9600 to 115200 with no change.

Arduino: 1.8.15 (Windows 10), TD: 1.54, Board: "Arduino Uno"

Sketch uses 1480 bytes (4%) of program storage space. Maximum is 32256 bytes.

Global variables use 194 bytes (9%) of dynamic memory, leaving 1854 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\ABIGAI~1\AppData\Local\Temp\arduino_build_347694/sketch_jul26a.ino.hex:i 

An error occurred while uploading the sketch



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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM8

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200



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

It compiled, so the code should not be the issue.
Different Unos have different drivers, you probably need a 340 driver.
Open your device manager and see if you have an unknown device, if so update the driver.

It shows the Uno and I even checked for driver updates. Still getting the same error.

New lines got added to the error once I manually changed the COM port of the Uno.

Arduino: 1.8.15 (Windows 10), TD: 1.54, Board: "Arduino Uno"

Sketch uses 1480 bytes (4%) of program storage space. Maximum is 32256 bytes.

Global variables use 194 bytes (9%) of dynamic memory, leaving 1854 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM13 -b115200 -D -Uflash:w:C:\Users\ABIGAI~1\AppData\Local\Temp\arduino_build_615733/sketch_jul26a.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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM13

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

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






avrdude done.  Thank you.



Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.



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

Can you show me your device manager window please?

Ok, that says com8 and your error says com13. There is an issue there.

The original COM was 8. I switched the Uno to 13 on the device manager to see if that may fix it. Then switched it back to 8 after it didn't work.

There are a few other possibilities:

  • Check the USB cable against another one, even if you know it's good
  • Try a different Uno
  • Try the same Uno on a different computer

Probably good to start with those and see what happens.

I have tried two different cables with three different Unos. I don't have another computer to try on. The other two Unos worked perfectly fine with both cables. This one gets stuck on this screen without finishing trying to upload.

I hit upload again and it finishes with this error.

Arduino: 1.8.15 (Windows 10), TD: 1.54, Board: "Arduino Uno"

Sketch uses 1480 bytes (4%) of program storage space. Maximum is 32256 bytes.

Global variables use 194 bytes (9%) of dynamic memory, leaving 1854 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\ABIGAI~1\AppData\Local\Temp\arduino_build_891132/sketch_jul26a.ino.hex:i 

An error occurred while uploading the sketch



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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



         Using Port                    : COM8

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200



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

Then the problem is the Uno.
The USB chip could be tanked. You can use another Uno to program the broken one through the ICSP port:

If that doesn't work it might be a brick, but let a better user than I tell you that first.

I thought it might be busted...thanks for your help. I will just use the other ones that I have and try that if I end up needing this one.

Cool, At least it's less than $10. Is that the first one that's died on you?

Yup. I haven't used them much until the last few months. Mainly had them lying around from old school projects.

Store them in anti-static bags.

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