Hello there, I have run into a problem with my Leonardo Pro Micro. I uploaded a simple script to write Hello World but I'm unable to upload on it again. It has a green light on it and whenever I try to upload a new sketch I get
" compilation terminated.
exit status 1
Error compiling for board Arduino Leonardo. "
I'm unable to do anything and it auto runs after I plug it into my PC any ideas?
DrAzzy
April 24, 2017, 10:00pm
2
That's a compile error - it's not even getting to where it tries to talk to the board.
For further assistance, you need to post the whole contents of the output, not just the very end of it - the message that tells you why it can't compile is a couple lines above what you posted.
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Andrew\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Andrew\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Andrew\Documents\Arduino\libraries -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10802 -build-path C:\Users\Andrew\AppData\Local\Temp\arduino_build_201845 -warnings=none -build-cache C:\Users\Andrew\AppData\Local\Temp\arduino_cache_198806 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.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.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Andrew\Desktop\sketch_apr24a\sketch_apr24a.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Andrew\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Andrew\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Andrew\Documents\Arduino\libraries -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10802 -build-path C:\Users\Andrew\AppData\Local\Temp\arduino_build_201845 -warnings=none -build-cache C:\Users\Andrew\AppData\Local\Temp\arduino_cache_198806 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.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.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Andrew\Desktop\sketch_apr24a\sketch_apr24a.ino
Using board 'leonardo' 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
Build options changed, rebuilding all
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 -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" "C:\Users\Andrew\AppData\Local\Temp\arduino_build_201845\sketch\sketch_apr24a.ino.cpp" -o "nul"
"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 -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Leonardo"' "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" "C:\Users\Andrew\AppData\Local\Temp\arduino_build_201845\sketch\sketch_apr24a.ino.cpp" -o "C:\Users\Andrew\AppData\Local\Temp\arduino_build_201845\preproc\ctags_target_for_gcc_minus_e.cpp"
C:\Users\Andrew\Desktop\sketch_apr24a\sketch_apr24a.ino:1:25: fatal error: HID-Project.h: No such file or directory
#include <HID-Project.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Leonardo.
DrAzzy
April 24, 2017, 10:05pm
4
Well there you go - your sketch is attempting to include a library called HID-Project.h, but you have not installed that library.