mharjac / bad_ducky

Rubber Ducky compatible clone based on CJMCU BadUSB HW.
MIT License
276 stars 79 forks source link

Problem with programing bad_ducky.ino to BadUSB CJMCU device #23

Open chhaas opened 5 years ago

chhaas commented 5 years ago

Hello,

I'm stuck programming the device into a "bad usb" :-( Steps I've taken so far:

Step 0. i've ordered a ZucZug TF MicroSD Micro SD Card Slot Badusb USB Virtual Keyboard ATMEGA32U4 Module For Arduino Leonardo R3 Bad Usb CJMCU (https://www.aliexpress.com/item/32942081965.html?spm=2114.search0104.3.23.6b30256aapAze0&ws_ab_test=searchweb0_0%2Csearchweb201602_8_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_537_10302_536_10843_10059_10884_10887_321_322_10103%2Csearchweb201603_52%2CppcSwitch_0&algo_expid=1e112525-653a-49eb-ac25-73060989215b-3&algo_pvid=1e112525-653a-49eb-ac25-73060989215b&transAbTest=ae803_5)

... and a TF Card with 32 GB

Step 1. in a Linux terminal: $ ls -l /dev/ttyACM* crw-rw---- 1 root dialout 166, 0 Jul 6 13:29 /dev/ttyACM0

$ sudo usermod -a -G dialout haasc

Step 2. I've logged out and in again for this change to take effect

Step 3. I've formatted the TF-/SD-card to FAT32 (vfat)

Step 4. I've downloaded an installed Arduino IDE v1.8.9 for Linux

Step 5. I've plugged in my device.

Step 6. I've checked downloaded file: haasc@linux:~/Downloads/bad_ducky$ file -i bad_ducky.ino bad_ducky.ino: text/x-c; charset=us-ascii

==> file seems to be OK, not converted to DOS, file has US-ASCII encoding.

Step 7. in Arduino IDE: I've selected "Tools -> Port -> /dev/ttyACM0 (Arduino Leonardo)"

Step 8. I've checked "Tools -> Get Board Info" BN: Arduino Leonardo VID: 0x2341 PID: 0x8036 SN: Upload any sketch to obtain it

==> It was recognized as Arduino Leonardo in the Arduino IDE

Step 9. I've selected "Tools -> Board -> Arduino Leonardo"

Step 10. I've opend the bad_ducky-file "File -> Open ... -> bad_ducky.ino"

Step 11. I've tried to upload bad_ducky.ino to device "Sketch -> Upload" in the window where "bad_ducky.ino" is opened with no luck

Here is the verbose output during compilation and upload: --- snip -- /home/haasc/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /home/haasc/arduino-1.8.9/hardware -tools /home/haasc/arduino-1.8.9/tools-builder -tools /home/haasc/arduino-1.8.9/hardware/tools/avr -built-in-libraries /home/haasc/arduino-1.8.9/libraries -libraries /home/haasc/Arduino/libraries -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10809 -build-path /tmp/arduino_build_553560 -warnings=none -build-cache /tmp/arduino_cache_745645 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -verbose /home/haasc/bad_ducky/bad_ducky.ino /home/haasc/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /home/haasc/arduino-1.8.9/hardware -tools /home/haasc/arduino-1.8.9/tools-builder -tools /home/haasc/arduino-1.8.9/hardware/tools/avr -built-in-libraries /home/haasc/arduino-1.8.9/libraries -libraries /home/haasc/Arduino/libraries -fqbn=arduino:avr:leonardo -vid-pid=0X2341_0X8036 -ide-version=10809 -build-path /tmp/arduino_build_553560 -warnings=none -build-cache /tmp/arduino_cache_745645 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/haasc/arduino-1.8.9/hardware/tools/avr -verbose /home/haasc/bad_ducky/bad_ducky.ino Using board 'leonardo' from platform in folder: /home/haasc/arduino-1.8.9/hardware/arduino/avr Using core 'arduino' from platform in folder: /home/haasc/arduino-1.8.9/hardware/arduino/avr Detecting libraries used... /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/Keyboard/src/Keyboard.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src/HID.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src/SPI.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/File.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/SD.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/utility/Sd2Card.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/utility/SdFile.cpp -o /dev/null /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/utility/SdVolume.cpp -o /dev/null Generating function prototypes... /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /tmp/arduino_build_553560/preproc/ctags_target_for_gcc_minus_e.cpp /home/haasc/arduino-1.8.9/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_553560/preproc/ctags_target_for_gcc_minus_e.cpp Compiling sketch... /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp -o /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp.o Compiling libraries... Compiling library "Keyboard" /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/Keyboard/src/Keyboard.cpp -o /tmp/arduino_build_553560/libraries/Keyboard/Keyboard.cpp.o Compiling library "HID" /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src/HID.cpp -o /tmp/arduino_build_553560/libraries/HID/HID.cpp.o Compiling library "SPI" /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src/SPI.cpp -o /tmp/arduino_build_553560/libraries/SPI/SPI.cpp.o Compiling library "SD" /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/File.cpp -o /tmp/arduino_build_553560/libraries/SD/File.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/SD.cpp -o /tmp/arduino_build_553560/libraries/SD/SD.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/utility/Sd2Card.cpp -o /tmp/arduino_build_553560/libraries/SD/utility/Sd2Card.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/utility/SdFile.cpp -o /tmp/arduino_build_553560/libraries/SD/utility/SdFile.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo -I/home/haasc/arduino-1.8.9/libraries/Keyboard/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID/src -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI/src -I/home/haasc/arduino-1.8.9/libraries/SD/src /home/haasc/arduino-1.8.9/libraries/SD/src/utility/SdVolume.cpp -o /tmp/arduino_build_553560/libraries/SD/utility/SdVolume.cpp.o Compiling core... /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_pulse.S -o /tmp/arduino_build_553560/core/wiring_pulse.S.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WInterrupts.c -o /tmp/arduino_build_553560/core/WInterrupts.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring.c -o /tmp/arduino_build_553560/core/wiring.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_analog.c -o /tmp/arduino_build_553560/core/wiring_analog.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_digital.c -o /tmp/arduino_build_553560/core/wiring_digital.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/hooks.c -o /tmp/arduino_build_553560/core/hooks.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_pulse.c -o /tmp/arduino_build_553560/core/wiring_pulse.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_shift.c -o /tmp/arduino_build_553560/core/wiring_shift.c.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp -o /tmp/arduino_build_553560/core/PluggableUSB.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Print.cpp -o /tmp/arduino_build_553560/core/Print.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp -o /tmp/arduino_build_553560/core/HardwareSerial1.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Tone.cpp -o /tmp/arduino_build_553560/core/Tone.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o /tmp/arduino_build_553560/core/IPAddress.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/CDC.cpp -o /tmp/arduino_build_553560/core/CDC.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/USBCore.cpp -o /tmp/arduino_build_553560/core/USBCore.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WString.cpp -o /tmp/arduino_build_553560/core/WString.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp -o /tmp/arduino_build_553560/core/HardwareSerial0.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/abi.cpp -o /tmp/arduino_build_553560/core/abi.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp -o /tmp/arduino_build_553560/core/HardwareSerial2.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WMath.cpp -o /tmp/arduino_build_553560/core/WMath.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o /tmp/arduino_build_553560/core/HardwareSerial3.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/main.cpp -o /tmp/arduino_build_553560/core/main.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/new.cpp -o /tmp/arduino_build_553560/core/new.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Stream.cpp -o /tmp/arduino_build_553560/core/Stream.cpp.o /home/haasc/arduino-1.8.9/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=atmega32u4 -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"Arduino Leonardo\"" -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/haasc/arduino-1.8.9/hardware/arduino/avr/variants/leonardo /home/haasc/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp -o /tmp/arduino_build_553560/core/HardwareSerial.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/CDC.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/HardwareSerial.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/HardwareSerial0.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/HardwareSerial1.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/HardwareSerial2.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/HardwareSerial3.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/IPAddress.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/PluggableUSB.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/Print.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/Stream.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/Tone.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/USBCore.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/WInterrupts.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/WMath.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/WString.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/abi.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/hooks.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/main.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/new.cpp.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/wiring.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/wiring_analog.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/wiring_digital.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/wiring_pulse.S.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/wiring_pulse.c.o /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_553560/core/core.a /tmp/arduino_build_553560/core/wiring_shift.c.o Archiving built core (caching) in: /tmp/arduino_cache_745645/core/core_arduino_avr_leonardo_b14dc7671ed9e53830a81b6fafc548e8.a Linking everything together... /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega32u4 -o /tmp/arduino_build_553560/bad_ducky.ino.elf /tmp/arduino_build_553560/sketch/bad_ducky.ino.cpp.o /tmp/arduino_build_553560/libraries/Keyboard/Keyboard.cpp.o /tmp/arduino_build_553560/libraries/HID/HID.cpp.o /tmp/arduino_build_553560/libraries/SPI/SPI.cpp.o /tmp/arduino_build_553560/libraries/SD/File.cpp.o /tmp/arduino_build_553560/libraries/SD/SD.cpp.o /tmp/arduino_build_553560/libraries/SD/utility/Sd2Card.cpp.o /tmp/arduino_build_553560/libraries/SD/utility/SdFile.cpp.o /tmp/arduino_build_553560/libraries/SD/utility/SdVolume.cpp.o /tmp/arduino_build_553560/core/core.a -L/tmp/arduino_build_553560 -lm /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_553560/bad_ducky.ino.elf /tmp/arduino_build_553560/bad_ducky.ino.eep /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_553560/bad_ducky.ino.elf /tmp/arduino_build_553560/bad_ducky.ino.hex Using library Keyboard at version 1.0.2 in folder: /home/haasc/arduino-1.8.9/libraries/Keyboard Using library HID at version 1.0 in folder: /home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/HID Using library SPI at version 1.0 in folder: /home/haasc/arduino-1.8.9/hardware/arduino/avr/libraries/SPI Using library SD at version 1.2.3 in folder: /home/haasc/arduino-1.8.9/libraries/SD /home/haasc/arduino-1.8.9/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_553560/bad_ducky.ino.elf Sketch uses 24672 bytes (86%) of program storage space. Maximum is 28672 bytes. Global variables use 1868 bytes (72%) of dynamic memory, leaving 692 bytes for local variables. Maximum is 2560 bytes. Forcing reset using 1200bps open/close on port /dev/ttyACM0 PORTS {/dev/ttyACM0, } / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} PORTS {} / {} => {} Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload. --- snap -- ==> now the LED is fast flashing and the /dev/ttyACM0 isn't responding anymore. Removing the device from the USB-port seems to reset this situation ...

I can't find where the problem is, nor how to resolve this issue. Can you give me some help?

Also I don't know how the device can be resetted as mentioned in the "getting started". Do I have to connect +5V with RST? - Sadly I could not find any docu about these devices.

Many thanks! Christoph

Dnllns commented 5 years ago

i know... try sudo systemctl stop ModemManager.service

lsusb for check

chhaas commented 5 years ago

Hello Dnllns,

thank you for your reply! I stopped ModemManager.service, checked the status of ModemManager, checked the presence of my little device. All seems good so far: $ sudo systemctl status ModemManager.service ● ModemManager.service - Modem Manager Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled) Active: inactive (dead) since Mon 2019-07-08 19:10:37 CEST; 12s ago Process: 926 ExecStart=/usr/sbin/ModemManager --filter-policy=strict (code=exited, status=0/SUCCESS) Main PID: 926 (code=exited, status=0/SUCCESS)

Jul 08 19:06:27 linux systemd[1]: Starting Modem Manager... Jul 08 19:06:28 linux ModemManager[926]: ModemManager (version 1.10.0) starting in system bus... Jul 08 19:06:28 linux systemd[1]: Started Modem Manager. Jul 08 19:06:31 linux ModemManager[926]: Couldn't check support for device '/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.1': not supported by any plugin Jul 08 19:06:31 linux ModemManager[926]: Couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0': not supported by any plugin Jul 08 19:06:31 linux ModemManager[926]: Couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.3/0000:08:00.0': not supported by any plugin Jul 08 19:10:37 linux ModemManager[926]: Caught signal, shutting down... Jul 08 19:10:37 linux systemd[1]: Stopping Modem Manager... Jul 08 19:10:37 linux ModemManager[926]: ModemManager is shut down Jul 08 19:10:37 linux systemd[1]: Stopped Modem Manager.

haasc@linux:~/Downloads/_IT-Sec_Hacking$ sudo lsusb | grep Arduino Bus 001 Device 010: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)

... But when uploading bad_ducky.ino, it did't change anything :-( I've been stuck with the same error.

Any more hints how to solve this issue? - Many thanks! Christoph.

Dnllns commented 5 years ago

You can try the web ide and the desktop. You can try press the button before upload. I don't know more bro