Avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xba

I am using a arduino uno and windows 11. when I upload using the ide I get the error

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xba

I also tried using the web editor and get the same problem. help?

Hi @dsfhgjhkjhgfde. Please add a reply here to tell us exactly which model of board you have. I ask because there are multiple boards with "uno" in their name. Despite the similar names, there are very significant differences between the various boards. Attempting to upload to one while the IDE/Web Editor is configured for another is one of the potential causes of this error.

Examples of the boards that have "uno" in their name:

If you aren't sure which model you have, you can provide a link to where you purchased the board.

If you search here on the forum, you will find thousands of topics with users having the same problem as you.
There are several situations that can cause this error.
Search and you will find one topic that solves your difficulty.

I am using the classic uno r3

OK, thanks for the clarification. I'm going to ask you to post the full verbose output from an upload attempt.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compilation in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. 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.
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> 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.
    Code block icon on toolbar
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\owlku\AppData\Local\Temp\arduino\sketches\C25F6C3675CAD0FDABF80CFC3926A97D\sketch\lockbox.ino.cpp -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
  -> candidates: [LiquidCrystal@1.0.7 LiquidCrystal@1.0.7]
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src C:\Users\owlku\AppData\Local\Temp\arduino\sketches\C25F6C3675CAD0FDABF80CFC3926A97D\sketch\lockbox.ino.cpp -o nul
Alternatives for Servo.h: [Servo@1.2.1 Servo@1.2.1]
ResolveLibrary(Servo.h)
  -> candidates: [Servo@1.2.1 Servo@1.2.1]
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\AppData\Local\Temp\arduino\sketches\C25F6C3675CAD0FDABF80CFC3926A97D\sketch\lockbox.ino.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src\LiquidCrystal.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\avr\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\mbed\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\megaavr\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\nrf52\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\renesas\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\sam\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\samd\Servo.cpp -o nul
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src\stm32f4\Servo.cpp -o nul
Generating function prototypes...
C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal\src -IC:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo\src C:\Users\owlku\AppData\Local\Temp\arduino\sketches\C25F6C3675CAD0FDABF80CFC3926A97D\sketch\lockbox.ino.cpp -o C:\Users\owlku\AppData\Local\Temp\746295249\sketch_merged.cpp
C:\Users\owlku\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\owlku\AppData\Local\Temp\746295249\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\sketch\\lockbox.ino.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\sketch\\lockbox.ino.cpp.o"
Compiling libraries...
Compiling library "LiquidCrystal"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src\\LiquidCrystal.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\LiquidCrystal\\LiquidCrystal.cpp.o"
Compiling library "Servo"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\nrf52\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\nrf52\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\mbed\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\mbed\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\samd\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\samd\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\avr\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\avr\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\sam\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\sam\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\megaavr\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\megaavr\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\stm32f4\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\stm32f4\\Servo.cpp.o"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\owlku\\OneDrive\\Documents\\Arduino\\libraries\\Servo\\src\\renesas\\Servo.cpp" -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\renesas\\Servo.cpp.o"
Compiling core...
Using precompiled core: C:\Users\owlku\AppData\Local\Temp\arduino\cores\arduino_avr_uno_a4e7fb4ca648ec6bf52932f5976679e4\core.a
Linking everything together...
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.ino.elf" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\sketch\\lockbox.ino.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\LiquidCrystal\\LiquidCrystal.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\avr\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\mbed\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\megaavr\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\nrf52\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\renesas\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\sam\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\samd\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D\\libraries\\Servo\\stm32f4\\Servo.cpp.o" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/..\\..\\cores\\arduino_avr_uno_a4e7fb4ca648ec6bf52932f5976679e4\\core.a" "-LC:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D" -lm
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.ino.elf" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.ino.eep"
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.ino.elf" "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.ino.hex"
Multiple libraries were found for "LiquidCrystal.h"
  Used: C:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal
  Not used: C:\Users\owlku\AppData\Local\Arduino15\libraries\LiquidCrystal
Multiple libraries were found for "Servo.h"
  Used: C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo
  Not used: C:\Users\owlku\AppData\Local\Arduino15\libraries\Servo
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\owlku\OneDrive\Documents\Arduino\libraries\LiquidCrystal 
Using library Servo at version 1.2.1 in folder: C:\Users\owlku\OneDrive\Documents\Arduino\libraries\Servo 
"C:\\Users\\owlku\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\owlku\\AppData\\Local\\Temp\\arduino\\sketches\\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.ino.elf"
Sketch uses 2756 bytes (8%) of program storage space. Maximum is 32256 bytes.
Global variables use 112 bytes (5%) of dynamic memory, leaving 1936 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\owlku\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\owlku\AppData\Local\Temp\arduino\sketches\C25F6C3675CAD0FDABF80CFC3926A97D/lockbox.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\owlku\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM5
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xcd
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xcd

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

Please try this experiment and then report back with the results:


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


  1. Connect the Arduino board to your computer with a USB cable.
  2. Press and release the button on the Arduino board that is marked "RESET".

Now please reply here on the forum thread with the answer to the following question:

  • Did you see the "L" LED blink multiple times quickly immediately after you released the "RESET" button?

no I did not see the L led blink

There is a program named a "bootloader" that is stored in a special area of the memory in the primary microcontroller of your Arduino board. This program receives the data sent by the computer when you upload a sketch to the board.

The symptoms you describe indicate that the bootloader is not running when it should be activated. This could have either of the following causes:

  • The memory in the microcontroller where the bootloader was stored has somehow been erased or corrupted.
  • There is physical damage to the microcontroller or its support circuitry.

If the cause is a missing bootloader, the board might be recoverable by a "Burn Bootloader" operation.

You will need an "ISP programmer" in order to perform a "Burn Bootloader" operation. An ISP programmer is a piece of hardware that allows your computer to write directly to the flash memory of the primary microcontroller on the Arduino board.

If you don't have an ISP programmer, you can use a spare Arduino board as a DIY programmer (known as an "Arduino as ISP"). I'll provide instructions you can follow to do that:

Burning Bootloader with "Arduino as ISP" Programmer


In the instructions below, the board used as an "Arduino as ISP" is referred to as the "programmer board". The board the bootloader is being burned on is referred to as the "target board".


A. Prepare "Arduino as ISP" programmer

Although the "Arduino as ISP" only works for programming targets of the AVR architecture, you can use some boards of other architectures (e.g., "AVR", "SAMD", "megaAVR") as an "Arduino as ISP" programmer.

  1. Disconnect the USB cable of the Arduino boards from your computer.

  2. Make the following connections between the pins on the "programmer board" and the "target board":

    Programmer Target
    CIPO (AKA "MISO") CIPO
    VCC 5V (VCC on 3.3 V boards)
    SCK SCK
    COPI (AKA "MOSI") COPI
    10 RESET
    GND GND

    The documentation for the boards you are using will identify the location of these pins. If you are using an official Arduino board, check the pinout diagram on the documentation page for the board.

  3. Connect the "programmer board" to your computer with a USB cable.

  4. Select File > Examples > 11.ArduinoISP > ArduinoISP from the Arduino IDE menus.
    The "ArduinoISP" sketch will open in Arduino IDE.

  5. Select your "programmer board" from Arduino IDE's Tools > Board menu.

  6. Select the port of your "programmer board" from Arduino IDE's Tools > Port menu.

  7. Select Sketch > Upload from the Arduino IDE menus.

  8. Wait for the upload to finish.

You are now ready to burn the bootloader using your "Arduino as ISP" programmer.

B. Burn Bootloader

Instructions for burning the bootloader:


It is not possible to do this via "Arduino Web Editor". You will need to use Arduino IDE or Arduino CLI.


  1. Select the "target board" from the Tools > Board menu, and any other custom Tools menus (e.g., Tools > Processor).
  2. Select the appropriate programmer from the Tools > Programmer menu in Arduino IDE.
    This is dependent on which board you are using as the "programmer board":
    • If it is an ATmega32U4-based board (e.g., Leonardo, Micro, Pro Micro): Select "Arduino as ISP (ATmega32U4)" from the menu.
    • If it is not an ATmega32U4-based board: Select "Arduino as ISP" from the menu.
  3. Select Tools > Burn Bootloader from the Arduino IDE menus.
  4. Wait for the process to finish successfully.
  5. Disconnect the USB cable of the "programmer board" from your computer.
  6. Disconnect the "programmer board" from the "target board".

Conclusion

Now connect the "target board" to your computer with a USB cable and try uploading again. Does the upload succeed now?

@ptillisch
yes but the tx and rx lights are not blinking

Those LEDs will only blink if you are receiving or transmitting via the serial port.

I'm confused about why you are making this statement.

Did you perform a "Burn Bootloader" procedure as I described in my previous reply? If so, was it successful? If so, are you now able to upload to your Arduino board?

yes i can upload to the board but if i reset the board the L led will blink but not the tx and rx led.

That is great news!

That is normal and expected. The RX and TX LEDs are not expected to blink when you press the reset button.