I have been unable to upload anything into my elegoo uno R3 board, i was testing out some ultrasonic coding when it started taking longer to upload the code and after the constant waiting the same error would come up (as seen bellow in the image). i decided to test the board with a simple code and even then same thing.
I have gone through my libraries to find the invalid library and nothing there. i don't know if its just me that doesn't understand or if there is something bigger wrong. any help is appreciated.
The invalid library warning is completely unrelated to the upload failure. If you like, you can just ignore that warning, since a single invalid library does no harm. The warning is annoying though, so if you like you can either delete that folder or if it contains valuable data move it somewhere else.
As for the upload error, we'll need some additional information in order to help you out:
Please do this:
- (In the Arduino IDE) File > Preferences
- Uncheck the checkbox next to "Show verbose output during: compilation"
- Check the checkbox next to "Show verbose output during: upload
- Click "OK"
- Sketch > Upload
- After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
- In a forum reply here, click on the reply field.
- Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
- Press "Ctrl + V". This will paste the upload output between the code tags.
- Move the cursor outside of the code tags before you add any additional text to your reply.
Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs
-logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools
C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files
(x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files
(x86)\Arduino\libraries -libraries C:\Users\Demi\Documents\Arduino\libraries
-fqbn=arduino:avr:uno -vid-pid=0000_0000 -ide-version=10813 -build-path
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264 -warnings=none
-build-cache C:\Users\Demi\AppData\Local\Temp\arduino_cache_447530
-prefs=build.warn_data_percentage=75
-prefs=runtime.tools.arduinoOTA.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr
-prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program
Files (x86)\Arduino\hardware\tools\avr
-prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program
Files (x86)\Arduino\hardware\tools\avr
-prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr -verbose D:\UNIVERSITY\Third
Year\PDE3365(Thu)\FMP\Concept\GaitSpeed\sketch_jan22a\sketch_jan22a.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile
-logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools
C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files
(x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files
(x86)\Arduino\libraries -libraries C:\Users\Demi\Documents\Arduino\libraries
-fqbn=arduino:avr:uno -vid-pid=0000_0000 -ide-version=10813 -build-path
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264 -warnings=none
-build-cache C:\Users\Demi\AppData\Local\Temp\arduino_cache_447530
-prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program
Files (x86)\Arduino\hardware\tools\avr
-prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program
Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program
Files (x86)\Arduino\hardware\tools\avr
-prefs=runtime.tools.avr-gcc.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr
-prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files
(x86)\Arduino\hardware\tools\avr -verbose D:\UNIVERSITY\Third
Year\PDE3365(Thu)\FMP\Concept\GaitSpeed\sketch_jan22a\sketch_jan22a.ino
Using board 'uno' from platform in folder: C:\Program Files
(x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program
Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\\Program Files
(x86)\\Arduino\\hardware\\tools\\avr/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=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files
(x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program
Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\sketch\\sketch_jan22a.ino.cpp"
-o nul -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=10813 -DARDUINO_AVR_UNO
-DARDUINO_ARCH_AVR "-IC:\\Program Files
(x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino"
"-IC:\\Program Files
(x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\sketch\\sketch_jan22a.ino.cpp"
-o
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\preproc\\ctags_target_for_gcc_minus_e.cpp"
-DARDUINO_LIB_DISCOVERY_PHASE
"C:\\Program Files
(x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u
--language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files
(x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w
-std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections
-fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p
-DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR
"-IC:\\Program Files
(x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino"
"-IC:\\Program Files
(x86)\\Arduino\\hardware\\arduino\\avr\\variants\\standard"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\sketch\\sketch_jan22a.ino.cpp"
-o "C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\sketch\\sketch_jan22a.ino.cpp.o"
Compiling libraries...
ive had to break the error message into two sections
Compiling core...
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\wiring_pulse.S.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\hooks.c.o
Using previously compiled file: C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\wiring_analog.c.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\wiring.c.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\WInterrupts.c.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\wiring_digital.c.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\wiring_pulse.c.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\wiring_shift.c.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\CDC.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\HardwareSerial1.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\HardwareSerial2.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\HardwareSerial0.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\HardwareSerial3.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\IPAddress.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\Print.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\PluggableUSB.cpp.o
Using previously compiled file: C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\Tone.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\USBCore.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\Stream.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\WString.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\WMath.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\abi.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\main.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\new.cpp.o
Using previously compiled file:
C:\Users\Demi\AppData\Local\Temp\arduino_build_696264\core\core.a
Archiving built core (caching) in:
C:\Users\Demi\AppData\Local\Temp\arduino_cache_447530\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\\Program Files
(x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto
-fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/sketch_jan22a.ino.elf"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264\\sketch\\sketch_jan22a.ino.cpp.o"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/core\\core.a"
"-LC:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264" -lm
"C:\\Program Files
(x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom
--set-section-flags=.eeprom=alloc,load --no-change-warnings
--change-section-lma .eeprom=0
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/sketch_jan22a.ino.elf"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/sketch_jan22a.ino.eep"
"C:\\Program Files
(x86)\\Arduino\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/sketch_jan22a.ino.elf"
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/sketch_jan22a.ino.hex"
"C:\\Program Files
(x86)\\Arduino\\hardware\\tools\\avr/bin/avr-size" -A
"C:\\Users\\Demi\\AppData\\Local\\Temp\\arduino_build_696264/sketch_jan22a.ino.elf"
Sketch uses 724 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:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude
-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v
-patmega328p -carduino -PCOM7 -b115200 -D
-Uflash:w:C:\Users\Demi\AppData\Local\Temp\arduino_build_696264/sketch_jan22a.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 : COM7
Using
Programmer : arduino
Overriding
Baud Rate : 115200
An error occurred while uploading the sketch
Invalid library found in
C:\Users\Demi\Documents\Arduino\libraries\libraries: no headers files (.h)
found in C:\Users\Demi\Documents\Arduino\libraries\libraries
sorry
demib:
ive had to break the error message into two sections
That's fine. For future reference, if you don't like waiting for the forum to let you make another post you can add the full output all at once as a .txt file attachement. If you click the "Reply" button here, you will see an "Attachments and other settings" link that will allow you to make the attachment.
demib:
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude
-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v
-patmega328p -carduino -PCOM7 -b115200 -D
-Uflash:w:C:\Users\Demi\AppData\Local\Temp\arduino_build_696264/sketch_jan22a.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 : COM7
Using
Programmer : arduino
Overriding
Baud Rate : 115200
An error occurred while uploading the sketch
This is an unfortunate situation because normally AVRDUDE provides some helpful output to explain what went wrong but this is the rare case where it just dies without any explanation. I see this reported here from time to time, but haven't figured out the cause yet.
What I can do is share the collection of links I've been gathering with the intention of reviewing them to see if the cause/solution was reported there. So you might give a quick skim to each of these threads to see if there is any help there:
- Error Programming Arduino Uno under Windows 2004 - IDE 1.x - Arduino Forum
- An error occurred while uploading the sketch. - #97 by unholymealman - IDE 1.x - Arduino Forum
- compile error Mega2560 Many thanks, brand nooby. - #8 by johnmcg - IDE 1.x - Arduino Forum
- Error uploading - Programming Questions - Arduino Forum
- Upload Doesn't Work Without Error? - IDE 1.x - Arduino Forum
- programmer wiring overwrites previous definition ?? - #9 by TKH_1 - IDE 1.x - Arduino Forum
- Cannot find board - #6 by anon8128456 - Avrdude, stk500, Bootloader issues - Arduino Forum
- Upload error! - Programming Questions - Arduino Forum
- WINDOWS 10/ARDUINO UNO/ ERROR - HOW TO SOLVE ? - IDE 1.x - Arduino Forum
- I have a problem. Can anyone help me?Please???? - IDE 1.x - Arduino Forum
- Sketch uploading problems - Avrdude, stk500, Bootloader issues - Arduino Forum
- I can't upload my error msg!! - #3 by Tectonic1900 - Avrdude, stk500, Bootloader issues - Arduino Forum
- Can't Upload The File to Arduino UNO - IDE 1.x - Arduino Forum
Perhaps one of the other forum members will have a better idea.
I shall look into them, thank you
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
