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.
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.
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.