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?
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.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
☑ compilation in the "Preferences" dialog.<CODE/> icon on the post composer toolbar.```) to your reply to make sure the error messages are correctly formatted.
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:
This procedure is not intended to solve the problem. The purpose is to gather more information.
Now please reply here on the forum thread with the answer to the following question:
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:
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:
ⓘ 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".
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.
Disconnect the USB cable of the Arduino boards from your computer.
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.
Connect the "programmer board" to your computer with a USB cable.
Select File > Examples > 11.ArduinoISP > ArduinoISP from the Arduino IDE menus.
The "ArduinoISP" sketch will open in Arduino IDE.
Select your "programmer board" from Arduino IDE's Tools > Board menu.
Select the port of your "programmer board" from Arduino IDE's Tools > Port menu.
Select Sketch > Upload from the Arduino IDE menus.
Wait for the upload to finish.
You are now ready to burn the bootloader using your "Arduino as ISP" programmer.
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.
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.