I am unable to upload an arduino sketch to my metro_m4_express_revb if I have previously loaded CP 3.0 to it and CP 3.0 is executing
I can upload successfully if I "double-tap" to put the M4 into the boot loader.
After loading an arduino sketch, I can load additional arduino sketches without first entering the boot loader.
I only have to manually enter the boot loader if CP 3.0 is loaded and executing.
Here is the entire build/load log for the blink.ino example - only the last bit is relevant, butI am including it all incase it is useful.
Arduino: 1.8.5 (Linux), Board: "Adafruit Metro M4 (SAMD51)"
/home/jerryneedell/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/jerryneedell/arduino-1.8.5/hardware -hardware /home/jerryneedell/.arduino15/packages -hardware /home/jerryneedell/Arduino/hardware -tools /home/jerryneedell/arduino-1.8.5/tools-builder -tools /home/jerryneedell/arduino-1.8.5/hardware/tools/avr -tools /home/jerryneedell/.arduino15/packages -built-in-libraries /home/jerryneedell/arduino-1.8.5/libraries -libraries /home/jerryneedell/Arduino/libraries -fqbn=Adafruit:samd:adafruit_metro_m4 -ide-version=10805 -build-path /tmp/arduino_build_551525 -warnings=none -build-cache /tmp/arduino_cache_975454 -prefs=build.warn_data_percentage=75 -verbose /home/jerryneedell/arduino-1.8.5/examples/01.Basics/Blink/Blink.ino
/home/jerryneedell/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/jerryneedell/arduino-1.8.5/hardware -hardware /home/jerryneedell/.arduino15/packages -hardware /home/jerryneedell/Arduino/hardware -tools /home/jerryneedell/arduino-1.8.5/tools-builder -tools /home/jerryneedell/arduino-1.8.5/hardware/tools/avr -tools /home/jerryneedell/.arduino15/packages -built-in-libraries /home/jerryneedell/arduino-1.8.5/libraries -libraries /home/jerryneedell/Arduino/libraries -fqbn=Adafruit:samd:adafruit_metro_m4 -ide-version=10805 -build-path /tmp/arduino_build_551525 -warnings=none -build-cache /tmp/arduino_cache_975454 -prefs=build.warn_data_percentage=75 -verbose /home/jerryneedell/arduino-1.8.5/examples/01.Basics/Blink/Blink.ino
Using board 'adafruit_metro_m4' from platform in folder: /home/jerryneedell/Arduino/hardware/Adafruit/samd
Using core 'arduino' from platform in folder: /home/jerryneedell/Arduino/hardware/Adafruit/samd
Detecting libraries used...
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/tmp/arduino_build_551525/sketch/Blink.ino.cpp" -o "/dev/null"
Generating function prototypes...
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/tmp/arduino_build_551525/sketch/Blink.ino.cpp" -o "/tmp/arduino_build_551525/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/jerryneedell/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_551525/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/tmp/arduino_build_551525/sketch/Blink.ino.cpp" -o "/tmp/arduino_build_551525/sketch/Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4/variant.cpp" -o "/tmp/arduino_build_551525/core/variant.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -c -g3 -x assembler-with-cpp -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/pulse_asm.S" -o "/tmp/arduino_build_551525/core/pulse_asm.S.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/WInterrupts.c" -o "/tmp/arduino_build_551525/core/WInterrupts.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/cortex_handlers.c" -o "/tmp/arduino_build_551525/core/cortex_handlers.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/delay.c" -o "/tmp/arduino_build_551525/core/delay.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/hooks.c" -o "/tmp/arduino_build_551525/core/hooks.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/itoa.c" -o "/tmp/arduino_build_551525/core/itoa.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/math_helper.c" -o "/tmp/arduino_build_551525/core/math_helper.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/pulse.c" -o "/tmp/arduino_build_551525/core/pulse.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/startup.c" -o "/tmp/arduino_build_551525/core/startup.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/wiring.c" -o "/tmp/arduino_build_551525/core/wiring.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/wiring_analog.c" -o "/tmp/arduino_build_551525/core/wiring_analog.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/wiring_digital.c" -o "/tmp/arduino_build_551525/core/wiring_digital.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/wiring_private.c" -o "/tmp/arduino_build_551525/core/wiring_private.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/wiring_shift.c" -o "/tmp/arduino_build_551525/core/wiring_shift.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/USB/samd21_host.c" -o "/tmp/arduino_build_551525/core/USB/samd21_host.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/avr/dtostrf.c" -o "/tmp/arduino_build_551525/core/avr/dtostrf.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/IPAddress.cpp" -o "/tmp/arduino_build_551525/core/IPAddress.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/Print.cpp" -o "/tmp/arduino_build_551525/core/Print.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/Reset.cpp" -o "/tmp/arduino_build_551525/core/Reset.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/RingBuffer.cpp" -o "/tmp/arduino_build_551525/core/RingBuffer.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/SERCOM.cpp" -o "/tmp/arduino_build_551525/core/SERCOM.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/Stream.cpp" -o "/tmp/arduino_build_551525/core/Stream.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/Tone.cpp" -o "/tmp/arduino_build_551525/core/Tone.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/Uart.cpp" -o "/tmp/arduino_build_551525/core/Uart.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/WMath.cpp" -o "/tmp/arduino_build_551525/core/WMath.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/WString.cpp" -o "/tmp/arduino_build_551525/core/WString.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/abi.cpp" -o "/tmp/arduino_build_551525/core/abi.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/main.cpp" -o "/tmp/arduino_build_551525/core/main.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/new.cpp" -o "/tmp/arduino_build_551525/core/new.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/USB/CDC.cpp" -o "/tmp/arduino_build_551525/core/USB/CDC.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/USB/PluggableUSB.cpp" -o "/tmp/arduino_build_551525/core/USB/PluggableUSB.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g3 -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=48000000L -DARDUINO=10805 -DARDUINO_METRO_M4 -DARDUINO_ARCH_SAMD -D__SAMD51J19A__ -D__SAMD51__ -DUSB_VID=0x239A -DUSB_PID=0x8020 -DUSBCON '-DUSB_MANUFACTURER="Adafruit LLC"' '-DUSB_PRODUCT="Adafruit Metro M4"' -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS/4.5.0/CMSIS/Include/" "-I/home/jerryneedell/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.1.0/CMSIS/Device/ATMEL/" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino" "-I/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" "/home/jerryneedell/Arduino/hardware/Adafruit/samd/cores/arduino/USB/USBCore.cpp" -o "/tmp/arduino_build_551525/core/USB/USBCore.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/pulse_asm.S.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/WInterrupts.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/cortex_handlers.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/delay.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/hooks.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/itoa.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/math_helper.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/pulse.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/startup.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/wiring.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/wiring_analog.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/wiring_digital.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/wiring_private.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/wiring_shift.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/USB/samd21_host.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/avr/dtostrf.c.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/IPAddress.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/Print.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/Reset.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/RingBuffer.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/SERCOM.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/Stream.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/Tone.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/Uart.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/WMath.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/WString.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/abi.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/main.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/new.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/USB/CDC.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/USB/PluggableUSB.cpp.o"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar" rcs "/tmp/arduino_build_551525/core/core.a" "/tmp/arduino_build_551525/core/USB/USBCore.cpp.o"
Archiving built core (caching) in: /tmp/arduino_cache_975454/core/core_Adafruit_samd_adafruit_metro_m4_3bfca461129fc7de9a20e70dcd324580.a
Linking everything together...
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" "-L/tmp/arduino_build_551525" -Os -Wl,--gc-sections -save-temps "-T/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,/tmp/arduino_build_551525/Blink.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m4 -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "/tmp/arduino_build_551525/Blink.ino.elf" "/tmp/arduino_build_551525/sketch/Blink.ino.cpp.o" "/tmp/arduino_build_551525/core/variant.cpp.o" -Wl,--start-group "-L/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" -larm_cortexM4lf_math -mfloat-abi=hard -mfpu=fpv4-sp-d16 "-L/home/jerryneedell/Arduino/hardware/Adafruit/samd/variants/metro_m4" -lm "/tmp/arduino_build_551525/core/core.a" -Wl,--end-group
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary "/tmp/arduino_build_551525/Blink.ino.elf" "/tmp/arduino_build_551525/Blink.ino.bin"
"/home/jerryneedell/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "/tmp/arduino_build_551525/Blink.ino.elf" "/tmp/arduino_build_551525/Blink.ino.hex"
Sketch uses 9752 bytes (1%) of program storage space. Maximum is 507904 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
PORTS {/dev/ttyACM0, } / {} => {}
PORTS {} / {} => {}
PORTS {} / {/dev/ttyACM0, } => {/dev/ttyACM0, }
Found upload port: /dev/ttyACM0
/home/jerryneedell/.arduino15/packages/arduino/tools/bossac/1.7.0/bossac -i -d --port=ttyACM0 -U true -i -e -w -v /tmp/arduino_build_551525/Blink.ino.bin -R
Set binary mode
No device found on ttyACM0
An error occurred while uploading the sketch
readWord(addr=0)=0x66616441
readWord(addr=0xe000ed00)=0x74697572
readWord(addr=0x400e0740)=0x72694320
version()=cuitPython 3.0.0-alpha.1-301-g568c04e on 2018-02-27; Metro M4 Express Rev B (Black) with samd51j19
chipId=0x72694320
Unsupported processor
Send auto-baud
Set binary mode
readWord(addr=0)=0x30303077
readWord(addr=0xe000ed00)=0x30303030
readWord(addr=0x400e0740)=0x23342c30
version()=wE000ED00,4#w400E0740,4#V#
chipId=0x23342c30
Unsupported processor
I am unable to upload an arduino sketch to my metro_m4_express_revb if I have previously loaded CP 3.0 to it and CP 3.0 is executing
I can upload successfully if I "double-tap" to put the M4 into the boot loader.
After loading an arduino sketch, I can load additional arduino sketches without first entering the boot loader.
I only have to manually enter the boot loader if CP 3.0 is loaded and executing.
Here is the entire build/load log for the blink.ino example - only the last bit is relevant, butI am including it all incase it is useful.