My coworkers and I use Arduino IDE to teach introduction-level coding classes in the evenings. With the 2.0.4 update to Arduino, we can no longer upload our codes to our hardware. We're using Windows 10 mostly ( though a few computers have been updated to Windows 11) and using Arduino UNO R3s. When attempting to upload the code to our hardware, we receive the same upload error each time:
"Upload Error: Failed uploading: uploading error: exit status 1"
Hi @j_ssceducator. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
Select File > Preferences from the Arduino IDE menus.
Uncheck the box next to Show verbose output during: ☑ compilation
Check the box next to Show verbose output during: ☐ upload.
Click the OK button.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
type or paste code hSketch uses 944 bytes (2%) 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\sscgo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\sscgo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM40" -b115200 -D "-Uflash:w:C:\Users\sscgo\AppData\Local\Temp\arduino\sketches\913776617234F71E1D82E3AE70336B61/sketch_mar9a.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\sscgo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM40
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1ere
OK, this tells us that the primary ATmega328P microcontroller on the board is running and that the bootloader is present on the microcontroller.
Make sure you have selected the correct port for your Arduino board from the Tools > Port menu in Arduino IDE.
Sometimes the port will be labeled with the board name in the menu (e.g., "COM40 (Arduino Uno)". Other times it will not. If you don't know which port is your Arduino board, you can find it by doing this:
Unplug your Arduino board from the computer.
Select Tools > Port from the Arduino IDE menus.
Note the ports, if any, listed in the menu.
Close the Tools menu.
The ports list is only updated when the Tools menu is re-opened, so this step is essential.
Plug your Arduino board into the computer.
Select Tools > Port from the Arduino IDE menus. - The new port listed in the menu is the one for your Arduino board.