0

feather M0 basic proto upload experience on windows
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

feather M0 basic proto upload experience on windows

by bob_belleville on Mon Jun 14, 2021 2:02 pm

In 2019 I bought a pair of Feather M0 Basic Proto boards. I found the upload almost impossible and all attempts to use the boards failed. I moved on the teensy 3.2 - works like a charm.

I tried again this month on a new Windows 10 machine with a high speed Intel I9-10850K CPU @ 3.60GHz processor and the latest Arduino IDE version 1.8.15.

From power on I just uploaded the blink example code using the 'upload' button (next to the checkmark):

1st click - compiles and locks up for more than 2 minutes - case 1
2nd click - compiles and get the upload error message - case 2
3rd click - compiles and shows the 'disk' contents in windows explorer then the machine beeps a few times and the upload goes through - case 3 (ok result) These beeps are the sound of Windows closing and opening virtual com port from USB devices.
4th click - works - twice in a row this time
5th click - locks
6th click - error in upload
7th click - works
8th click - locks
9th click - error in upload
10th click - works
...
as Bob Newhart would have said 'that is really going to cut our time to the coast' (Phone call to the Wright brothers. circa mid 1960s https://www.youtube.com/watch?v=7Azg6ohQlV0 3 minutes audio only as funny today as it was then)

also Windows opens a Com4 port then closes it and use the original Com3 port

to get rid of unused com ports on windows open the device manager and in the view menu select show hidden devices - right click the grey device and uninstall it

Double click (with just the right touch) of the reset button does open the 'disk' and shows the 'current.uf2' file and two others one of which is a url to adafruit

both boards do the same thing

If there is a fix for this let me know. But at least someone with my same problem can use this as a workaround. Even on this machine the compiler isn't that swift and compiling the code 3 times per upload is a real bummer.

best you you in NYC from California -Bob

bob_belleville
 
Posts: 6
Joined: Fri Jul 13, 2012 11:31 am

Re: feather M0 basic proto upload experience on windows

by adafruit_support_carter on Tue Jun 15, 2021 1:49 pm

Trying doing this first:
Double click (with just the right touch) of the reset button does open the 'disk' and shows the 'current.uf2' file and two others one of which is a url to adafruit

That puts the board in bootloader mode. The folder should be something with BOOT in the name. But you can ignore the folder for Arduino use. There should also be a COM port that shows up. So you can select that COM port in the Arduino IDE and upload as normal. The board will accept the sketch upload in bootloader mode.

Does it seem to behave better that way?

adafruit_support_carter
 
Posts: 20625
Joined: Tue Nov 29, 2016 2:45 pm

Re: feather M0 basic proto upload experience on windows

by bob_belleville on Tue Jun 15, 2021 5:50 pm

thanks for your note

this solution is a 'well sort of'

double click reset and get the boot loader and a new com port - in my case com 3 goes to com 4

enter tools menu and switch the port from com 3 to com 4

upload button - works

the Arduino app has switched back to com 3

use the upload button again and it locks up as before - twice more to get the upload complete

my applications usually involves moving the board to a box that cannot be opened with out disturbing the experiment in progress - so I can't double click in general

in another experiment:
clicking the upload button once stops the running program and the red led is on - press upload button and the three clicks and you are in works as before - so no win

these feathers are going back in the bag to wait for some application that can tolerate this behavior

bob_belleville
 
Posts: 6
Joined: Fri Jul 13, 2012 11:31 am

Re: feather M0 basic proto upload experience on windows

by adafruit_support_carter on Wed Jun 16, 2021 12:56 pm

The COM port switching is a feature of Windows, unfortunately.

It sounds like putting the board into bootloader mode, and making sure COM port matches, results in reliable upload?

And just to be sure - if you don't put the board in bootloader mode, but do double check the COM port before upload, that still results in the mixed success behavior?

adafruit_support_carter
 
Posts: 20625
Joined: Tue Nov 29, 2016 2:45 pm

Re: feather M0 basic proto upload experience on windows

by bob_belleville on Wed Jun 16, 2021 5:31 pm

yes

bob_belleville
 
Posts: 6
Joined: Fri Jul 13, 2012 11:31 am

Re: feather M0 basic proto upload experience on windows

by adafruit2 on Wed Jun 16, 2021 6:01 pm

turn on verbose upload and compile in arduino prefs
try and 'fail' to upload
then paste the output here *USING THE CODE BLOCK BUTTON ABOVE* so we can read it :)

adafruit2
Site Admin
 
Posts: 20104
Joined: Fri Mar 11, 2005 7:36 pm

Re: feather M0 basic proto upload experience on windows

by bob_belleville on Wed Jun 16, 2021 7:10 pm

The lockup case: (the lines 'PORTS {COM6, } / {COM6, } => {}' come rather slowely say 4 per second)

Code: Select all | TOGGLE FULL SIZE
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bob\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bob\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bob\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_feather_m0:opt=small,usbstack=arduino,debug=off -vid-pid=239A_800B -ide-version=10815 -build-path C:\Users\Bob\AppData\Local\Temp\arduino_build_110908 -warnings=none -build-cache C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.CMSIS-Atmel-1.2.2.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.CMSIS.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.openocd.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bob\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bob\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bob\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_feather_m0:opt=small,usbstack=arduino,debug=off -vid-pid=239A_800B -ide-version=10815 -build-path C:\Users\Bob\AppData\Local\Temp\arduino_build_110908 -warnings=none -build-cache C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.CMSIS-Atmel-1.2.2.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.CMSIS.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.openocd.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'adafruit_feather_m0' from platform in folder: C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.2
Using core 'arduino' from platform in folder: C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.2
Detecting libraries used...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\Bob\AppData\Local\Temp\arduino_build_110908\core\variant.cpp.o
Using precompiled core: C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971\core\core_bdaa7a8713c67cec116347dfd48b750f.a
Linking everything together...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" "-LC:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math "-LC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" -lm "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/..\\arduino_cache_218971\\core\\core_bdaa7a8713c67cec116347dfd48b750f.a" -Wl,--end-group
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.bin"
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.hex"
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-size" -A "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf"
Sketch uses 10664 bytes (4%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM6
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
PORTS {COM6, } / {COM6, } => {}
Uploading using selected port: COM6
C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM6 -U true -i -e -w -v C:\Users\Bob\AppData\Local\Temp\arduino_build_110908/Blink.ino.bin -R


after sereral minutes the line 'An error occurred while uploading the sketch' show up after the stuff above

------------------------------------ the error case --------------------------------------------------------------------------

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.15 (Windows 10), TD: 1.54-beta9, Board: "Adafruit Feather M0, Small (-Os) (standard), Arduino, Off"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bob\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bob\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bob\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_feather_m0:opt=small,usbstack=arduino,debug=off -vid-pid=239A_800B -ide-version=10815 -build-path C:\Users\Bob\AppData\Local\Temp\arduino_build_110908 -warnings=none -build-cache C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.CMSIS-Atmel-1.2.2.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.CMSIS.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.openocd.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bob\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bob\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bob\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_feather_m0:opt=small,usbstack=arduino,debug=off -vid-pid=239A_800B -ide-version=10815 -build-path C:\Users\Bob\AppData\Local\Temp\arduino_build_110908 -warnings=none -build-cache C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.CMSIS-Atmel-1.2.2.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.CMSIS.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.openocd.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino

Using board 'adafruit_feather_m0' from platform in folder: C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.2

Using core 'arduino' from platform in folder: C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.2

Detecting libraries used...

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o nul

Generating function prototypes...

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\preproc\\ctags_target_for_gcc_minus_e.cpp"

"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\preproc\\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp.o"

Compiling libraries...

Compiling core...

Using previously compiled file: C:\Users\Bob\AppData\Local\Temp\arduino_build_110908\core\variant.cpp.o

Using precompiled core: C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971\core\core_bdaa7a8713c67cec116347dfd48b750f.a

Linking everything together...

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" "-LC:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math "-LC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" -lm "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/..\\arduino_cache_218971\\core\\core_bdaa7a8713c67cec116347dfd48b750f.a" -Wl,--end-group

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.bin"

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.hex"

"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-size" -A "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf"

Sketch uses 10664 bytes (4%) of program storage space. Maximum is 262144 bytes.

Forcing reset using 1200bps open/close on port COM6

processing.app.debug.RunnerException

   at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:152)

   at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)

   at processing.app.SketchController.upload(SketchController.java:732)

   at processing.app.SketchController.exportApplet(SketchController.java:703)

   at processing.app.Editor$UploadHandler.run(Editor.java:2071)

   at java.lang.Thread.run(Thread.java:748)

Caused by: processing.app.SerialException: Error touching serial port 'COM6'.

   at processing.app.Serial.touchForCDCReset(Serial.java:107)

   at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:136)

   ... 5 more

Caused by: jssc.SerialPortException: Port name - COM6; Method name - openPort(); Exception type - Port busy.

   at jssc.SerialPort.openPort(SerialPort.java:164)

   at processing.app.Serial.touchForCDCReset(Serial.java:101)

   ... 6 more

An error occurred while uploading the sketch

Exception in thread "Thread-24" java.util.ConcurrentModificationException

   at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)

   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)

   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)

   at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)

   at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)

   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

   at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)

   at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:169)

   at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:719)

   at processing.app.Base.onBoardOrPortChange(Base.java:1345)

   at processing.app.Editor$UploadHandler.run(Editor.java:2107)

   at java.lang.Thread.run(Thread.java:748)



----------------------------------------------------- the correct upload case -----------------------------------------------------

Code: Select all | TOGGLE FULL SIZE
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bob\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bob\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bob\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_feather_m0:opt=small,usbstack=arduino,debug=off -vid-pid=239A_800B -ide-version=10815 -build-path C:\Users\Bob\AppData\Local\Temp\arduino_build_110908 -warnings=none -build-cache C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.CMSIS-Atmel-1.2.2.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.CMSIS.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.openocd.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bob\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bob\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bob\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_feather_m0:opt=small,usbstack=arduino,debug=off -vid-pid=239A_800B -ide-version=10815 -build-path C:\Users\Bob\AppData\Local\Temp\arduino_build_110908 -warnings=none -build-cache C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.CMSIS-Atmel-1.2.2.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS-Atmel\1.2.2 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.2.1 -prefs=runtime.tools.bossac.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.bossac-1.7.0-arduino3.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.arm-none-eabi-gcc-9-2019q4.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4 -prefs=runtime.tools.CMSIS.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.CMSIS-5.4.0.path=C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\tools\CMSIS\5.4.0 -prefs=runtime.tools.openocd.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.openocd-0.10.0-arduino7.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'adafruit_feather_m0' from platform in folder: C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.2
Using core 'arduino' from platform in folder: C:\Users\Bob\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.7.2
Detecting libraries used...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD "-D__SKETCH_NAME__=\"\"\"Blink.ino\"\"\"" -DF_CPU=48000000L -DARDUINO=10815 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" -Os -DARDUINO_SAMD_ZERO -DARM_MATH_CM0PLUS -DADAFRUIT_FEATHER_M0 -D__SAMD21G18A__ -DUSB_VID=0x239A -DUSB_PID=0x800B -DUSBCON -DUSB_CONFIG_POWER=100 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Feather M0\"" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2/libraries/Adafruit_TinyUSB_Arduino/src/arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Core/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/DSP/Include/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS-Atmel\\1.2.2/CMSIS/Device/ATMEL/" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\cores\\arduino" "-IC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp" -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\Bob\AppData\Local\Temp\arduino_build_110908\core\variant.cpp.o
Using precompiled core: C:\Users\Bob\AppData\Local\Temp\arduino_cache_218971\core\core_bdaa7a8713c67cec116347dfd48b750f.a
Linking everything together...
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-g++" "-LC:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908" -Os -Wl,--gc-sections -save-temps "-TC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0/linker_scripts/gcc/flash_with_bootloader.ld" "-Wl,-Map,C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.map" --specs=nano.specs --specs=nosys.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\sketch\\Blink.ino.cpp.o" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908\\core\\variant.cpp.o" -Wl,--start-group "-LC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\CMSIS\\5.4.0/CMSIS/Lib/GCC/" -larm_cortexM0l_math "-LC:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\samd\\1.7.2\\variants\\feather_m0" -lm "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/..\\arduino_cache_218971\\core\\core_bdaa7a8713c67cec116347dfd48b750f.a" -Wl,--end-group
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-objcopy" -O binary "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.bin"
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf" "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.hex"
"C:\\Users\\Bob\\AppData\\Local\\Arduino15\\packages\\adafruit\\tools\\arm-none-eabi-gcc\\9-2019q4/bin/arm-none-eabi-size" -A "C:\\Users\\Bob\\AppData\\Local\\Temp\\arduino_build_110908/Blink.ino.elf"
Sketch uses 10664 bytes (4%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM6
PORTS {COM6, } / {} => {}
PORTS {} / {COM7, } => {COM7, }
Found upload port: COM7
C:\Users\Bob\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe -i -d --port=COM7 -U true -i -e -w -v C:\Users\Bob\AppData\Local\Temp\arduino_build_110908/Blink.ino.bin -R
Set binary mode
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v1.1 [Arduino:XYZ] May 12 2018 18:17:10
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v1.1 [Arduino:XYZ] May 12 2018 18:17:10
Version      : v1.1 [Arduino:XYZ] May 12 2018 18:17:10
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0x7000a
BOD          : true
readWord(addr=0x40000834)=0x7000a
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.801 seconds

Write 10920 bytes to flash (171 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)
[===========                   ] 37% (64/171 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)
[======================        ] 74% (128/171 pages)write(addr=0x20005000,size=0xac0)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0xac0)
[==============================] 100% (171/171 pages)
done in 0.170 seconds

Verify 10920 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = df3
checksumBuffer(start_addr=0x3000, size=0x1000) = d7e1
checksumBuffer(start_addr=0x4000, size=0xaa8) = 554
Verify successful
done in 0.012 seconds
CPU reset.
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

bob_belleville
 
Posts: 6
Joined: Fri Jul 13, 2012 11:31 am

Please be positive and constructive with your questions and comments.