Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flashing on Arduino Nano 33 BLE? #94

Open
rpavlik opened this issue Jan 3, 2020 · 8 comments
Open

Flashing on Arduino Nano 33 BLE? #94

rpavlik opened this issue Jan 3, 2020 · 8 comments

Comments

@rpavlik
Copy link
Contributor

@rpavlik rpavlik commented Jan 3, 2020

I see it's listed, and it builds, but adafruit-nrfutil doesn't work, and my simple bossac command didn't work either. (have used the reset button to get into bootloader, but still no dice) Do I need to find the swd pins? or is there a way to flash it e.g. like the .ino update-bootloaders for the samdx1 boards?

My command line was:

~/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino1/bossac -d --port=ttyACM0 -b1 -U -i -e -w  _build-arduino_nano_33_ble/arduino_nano_33_ble_bootloader-0.2.13-19-ge25b63a_s140_6.1.1.hex -R

Didn't matter which hex I picked (with or without sd) neither of them appeared to actually have an effect, despite seeming to complete a flash process, I'd still get no MSC device and bossac showed the same ID.

@ladyada

This comment has been minimized.

Copy link
Member

@ladyada ladyada commented Jan 3, 2020

did you install the bootloader with a jlink as per
https://learn.adafruit.com/circuitpython-on-the-nrf52/nrf52840-bootloader

@rpavlik

This comment has been minimized.

Copy link
Contributor Author

@rpavlik rpavlik commented Jan 3, 2020

No, I was hoping to not need a j-link, just have the bossac/sam-ba Arduino bootloader that it came with on it right now. I've only got stlinkv2, atmel-ice, and black magic probe, so looks like I've got the start of a new Adafruit order already with a j-link mini edu 😉

@ladyada

This comment has been minimized.

Copy link
Member

@ladyada ladyada commented Jan 3, 2020

black magic might be able to do it - but we have not tried it ourselves so we dont know the exact command to run

@rpavlik

This comment has been minimized.

Copy link
Contributor Author

@rpavlik rpavlik commented Jan 3, 2020

Ok thanks! I'll poke around and let you know if I figure it out with the bmp.

@rpavlik

This comment has been minimized.

Copy link
Contributor Author

@rpavlik rpavlik commented Jan 6, 2020

OK, so the BMP can do it too!

Pinout of bottom port is:

  • Reset -- GND
  • no pad -- SWCLK/TCLK
  • SWDIO/TMS -- VCC (for target voltage detect)

(see https://www.hackster.io/visualmicro/arduino-nano-33-iot-debugging-633ad8 - couldn't find a license ref for the arduino store's photo)

Assuming you've done the /etc/udev/rules.d/99-blackmagic.rules file to get a /dev/ttyBmpGdb symlink, the following flashes it: (I've put the commands into a single "one-liner" though I ran them separate. I could presumably put this in the makefile if you're interested):

gdb -nx --batch \
  -ex 'target extended-remote /dev/ttyBmpGdb' \
  -ex 'monitor swdp_scan' \
  -ex 'attach 1' \
  -ex 'load arduino_nano_33_ble_bootloader-0.2.13-19-ge25b63a_s140_6.1.1.hex' \
  -ex 'compare-sections' \
  -ex 'kill'

You'll get some warnings and stuff but they don't appear to affect it (too much, anyway) - it at least installs well enough to reboot and expose the nano33boot MSC device. Further flashes of the bootloader can be done as usual with make SERIAL=/dev/ttyACM1 BOARD=arduino_nano_33_ble all combinehex dfu-flash

However, it does disconnect/reconnect regularly - here's my dmesg with a 5.2 kernel

 [62476.400525] usb 3-1.2.2: New USB device found, idVendor=239a, idProduct=0063, bcdDevice= 1.00
[62476.400526] usb 3-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[62476.400528] usb 3-1.2.2: Product: Nano 33 BLE
[62476.400528] usb 3-1.2.2: Manufacturer: Arduino
[62476.400529] usb 3-1.2.2: SerialNumber: E3D4B66F87C02642
[62476.457501] cdc_acm 3-1.2.2:1.0: ttyACM0: USB ACM device
[62476.457923] usb-storage 3-1.2.2:1.2: USB Mass Storage device detected
[62476.458014] scsi host9: usb-storage 3-1.2.2:1.2
[62477.467545] scsi host9: scsi scan: INQUIRY result too short (5), using 36
[62477.467548] scsi 9:0:0:0: Direct-Access     Adafruit nRF UF2          1.0  PQ: 0 ANSI: 2
[62477.467760] sd 9:0:0:0: Attached scsi generic sg1 type 0
[62477.468072] sd 9:0:0:0: [sdb] 8000 512-byte logical blocks: (4.10 MB/3.91 MiB)
[62477.468283] sd 9:0:0:0: [sdb] Write Protect is off
[62477.468284] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[62477.468480] sd 9:0:0:0: [sdb] No Caching mode page found
[62477.468482] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[62477.477314]  sdb:
[62477.478675] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[62664.137348] usb 3-1.2.2: USB disconnect, device number 87
[62664.146033] FAT-fs (sdb): unable to read boot sector to mark fs as dirty
[62668.202655] usb 3-1.2.3: new full-speed USB device number 88 using xhci_hcd
[62668.304452] usb 3-1.2.3: New USB device found, idVendor=239a, idProduct=0063, bcdDevice= 1.00
[62668.304454] usb 3-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[62668.304455] usb 3-1.2.3: Product: Nano 33 BLE
[62668.304456] usb 3-1.2.3: Manufacturer: Arduino
[62668.304457] usb 3-1.2.3: SerialNumber: E3D4B66F87C02642
[62668.361597] cdc_acm 3-1.2.3:1.0: ttyACM0: USB ACM device
[62668.362636] usb-storage 3-1.2.3:1.2: USB Mass Storage device detected
[62668.362807] scsi host9: usb-storage 3-1.2.3:1.2
[62669.371968] scsi host9: scsi scan: INQUIRY result too short (5), using 36
[62669.371972] scsi 9:0:0:0: Direct-Access     Adafruit nRF UF2          1.0  PQ: 0 ANSI: 2
[62669.372237] sd 9:0:0:0: Attached scsi generic sg1 type 0
[62669.372508] sd 9:0:0:0: [sdb] 8000 512-byte logical blocks: (4.10 MB/3.91 MiB)
[62669.372722] sd 9:0:0:0: [sdb] Write Protect is off
[62669.372723] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[62669.372933] sd 9:0:0:0: [sdb] No Caching mode page found
[62669.372937] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[62669.382049]  sdb:
[62669.383378] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[62968.521849] usb 3-1.2.3: USB disconnect, device number 88
[62968.531270] FAT-fs (sdb): unable to read boot sector to mark fs as dirty
[62968.837989] usb 3-1.2.3: new full-speed USB device number 89 using xhci_hcd
[62968.943450] usb 3-1.2.3: New USB device found, idVendor=239a, idProduct=0063, bcdDevice= 1.00
[62968.943452] usb 3-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[62968.943453] usb 3-1.2.3: Product: Nano 33 BLE
[62968.943454] usb 3-1.2.3: Manufacturer: Arduino
[62968.943454] usb 3-1.2.3: SerialNumber: E3D4B66F87C02642
[62969.001715] cdc_acm 3-1.2.3:1.0: ttyACM0: USB ACM device
[62969.002177] usb-storage 3-1.2.3:1.2: USB Mass Storage device detected
[62969.002289] scsi host9: usb-storage 3-1.2.3:1.2
[62970.014595] scsi host9: scsi scan: INQUIRY result too short (5), using 36
[62970.014598] scsi 9:0:0:0: Direct-Access     Adafruit nRF UF2          1.0  PQ: 0 ANSI: 2
[62970.014847] sd 9:0:0:0: Attached scsi generic sg1 type 0
[62970.015182] sd 9:0:0:0: [sdb] 8000 512-byte logical blocks: (4.10 MB/3.91 MiB)
[62970.015372] sd 9:0:0:0: [sdb] Write Protect is off
[62970.015373] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[62970.015563] sd 9:0:0:0: [sdb] No Caching mode page found
[62970.015565] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[62970.024412]  sdb:
[62970.025803] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[63269.033246] usb 3-1.2.3: reset full-speed USB device number 89 using xhci_hcd
[63269.193480] cdc_acm 3-1.2.3:1.0: ttyACM0: USB ACM device
[63569.097715] usb 3-1.2.3: USB disconnect, device number 89
[63569.106867] FAT-fs (sdb): unable to read boot sector to mark fs as dirty
[63569.416404] usb 3-1.2.3: new full-speed USB device number 90 using xhci_hcd
[63569.521817] usb 3-1.2.3: New USB device found, idVendor=239a, idProduct=0063, bcdDevice= 1.00
[63569.521819] usb 3-1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[63569.521820] usb 3-1.2.3: Product: Nano 33 BLE
[63569.521820] usb 3-1.2.3: Manufacturer: Arduino
[63569.521821] usb 3-1.2.3: SerialNumber: E3D4B66F87C02642
[63569.577974] cdc_acm 3-1.2.3:1.0: ttyACM0: USB ACM device
[63569.578367] usb-storage 3-1.2.3:1.2: USB Mass Storage device detected
[63569.578493] scsi host9: usb-storage 3-1.2.3:1.2
[63570.585292] scsi host9: scsi scan: INQUIRY result too short (5), using 36
[63570.585295] scsi 9:0:0:0: Direct-Access     Adafruit nRF UF2          1.0  PQ: 0 ANSI: 2
[63570.585527] sd 9:0:0:0: Attached scsi generic sg1 type 0
[63570.585852] sd 9:0:0:0: [sdb] 8000 512-byte logical blocks: (4.10 MB/3.91 MiB)
[63570.586046] sd 9:0:0:0: [sdb] Write Protect is off
[63570.586048] sd 9:0:0:0: [sdb] Mode Sense: 03 00 00 00
[63570.586241] sd 9:0:0:0: [sdb] No Caching mode page found
[63570.586244] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[63570.595108]  sdb:
[63570.596423] sd 9:0:0:0: [sdb] Attached SCSI removable disk

Also doesn't appear to be able to flash circuitpython - it takes it, takes a while to copy, activity light looks as expected (patterned blinking during copy, then shifts to a more frantic blinking), but it never resets on its own. When I reset it, I get the same bootloader MSC instead of the circuitpy one - not sure if that's expected for a qspiflash-less device.

Arduino's bossac also doesn't succeed - is this to be expected since it's not a samd chip?:

Arduino: 1.8.10 (Linux), Board: "Arduino Nano 33 BLE"

/home/ryan/apps/arduino-1.8.10/arduino-builder -dump-prefs -logger=machine -hardware /home/ryan/apps/arduino-1.8.10/hardware -hardware /home/ryan/.arduino15/packages -tools /home/ryan/apps/arduino-1.8.10/tools-builder -tools /home/ryan/apps/arduino-1.8.10/hardware/tools/avr -tools /home/ryan/.arduino15/packages -built-in-libraries /home/ryan/apps/arduino-1.8.10/libraries -libraries /home/ryan/Arduino/libraries -fqbn=arduino:mbed:nano33ble -vid-pid=239A_0063 -ide-version=10810 -build-path /tmp/arduino_build_949974 -warnings=more -build-cache /tmp/arduino_cache_595353 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=/home/ryan/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino1 -prefs=runtime.tools.bossac-1.9.1-arduino1.path=/home/ryan/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino1 -prefs=runtime.tools.openocd.path=/home/ryan/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino9 -prefs=runtime.tools.openocd-0.10.0-arduino9.path=/home/ryan/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino9 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -verbose /home/ryan/apps/arduino-1.8.10/examples/01.Basics/Blink/Blink.ino
/home/ryan/apps/arduino-1.8.10/arduino-builder -compile -logger=machine -hardware /home/ryan/apps/arduino-1.8.10/hardware -hardware /home/ryan/.arduino15/packages -tools /home/ryan/apps/arduino-1.8.10/tools-builder -tools /home/ryan/apps/arduino-1.8.10/hardware/tools/avr -tools /home/ryan/.arduino15/packages -built-in-libraries /home/ryan/apps/arduino-1.8.10/libraries -libraries /home/ryan/Arduino/libraries -fqbn=arduino:mbed:nano33ble -vid-pid=239A_0063 -ide-version=10810 -build-path /tmp/arduino_build_949974 -warnings=more -build-cache /tmp/arduino_cache_595353 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=/home/ryan/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino1 -prefs=runtime.tools.bossac-1.9.1-arduino1.path=/home/ryan/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino1 -prefs=runtime.tools.openocd.path=/home/ryan/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino9 -prefs=runtime.tools.openocd-0.10.0-arduino9.path=/home/ryan/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino9 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -verbose /home/ryan/apps/arduino-1.8.10/examples/01.Basics/Blink/Blink.ino
Using board 'nano33ble' from platform in folder: /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3
Using core 'arduino' from platform in folder: /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3
Detecting libraries used...
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -w -x c++ -E -CC -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /tmp/arduino_build_949974/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -w -x c++ -E -CC -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /tmp/arduino_build_949974/sketch/Blink.ino.cpp -o /tmp/arduino_build_949974/preproc/ctags_target_for_gcc_minus_e.cpp
/home/ryan/apps/arduino-1.8.10/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_949974/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /tmp/arduino_build_949974/sketch/Blink.ino.cpp -o /tmp/arduino_build_949974/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/variant.cpp -o /tmp/arduino_build_949974/core/variant.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gcc -c -Wall -Os -g -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt -o /tmp/arduino_build_949974/core/itoa.c.o /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/itoa.c
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/Interrupts.cpp -o /tmp/arduino_build_949974/core/Interrupts.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/USB/USBSerial.cpp -o /tmp/arduino_build_949974/core/USB/USBSerial.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/PluggableUSB.cpp -o /tmp/arduino_build_949974/core/api/PluggableUSB.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/Common.cpp -o /tmp/arduino_build_949974/core/api/Common.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/USB/PluggableUSBDevice.cpp -o /tmp/arduino_build_949974/core/USB/PluggableUSBDevice.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/Tone.cpp -o /tmp/arduino_build_949974/core/Tone.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/Serial.cpp -o /tmp/arduino_build_949974/core/Serial.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/wiring_shift.cpp -o /tmp/arduino_build_949974/core/wiring_shift.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/main.cpp -o /tmp/arduino_build_949974/core/main.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/USB/USBCDC.cpp -o /tmp/arduino_build_949974/core/USB/USBCDC.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/WMath.cpp -o /tmp/arduino_build_949974/core/WMath.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/IPAddress.cpp -o /tmp/arduino_build_949974/core/api/IPAddress.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/wiring_digital.cpp -o /tmp/arduino_build_949974/core/wiring_digital.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/wiring_analog.cpp -o /tmp/arduino_build_949974/core/wiring_analog.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/abi.cpp -o /tmp/arduino_build_949974/core/abi.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/wiring.cpp -o /tmp/arduino_build_949974/core/wiring.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/Print.cpp -o /tmp/arduino_build_949974/core/api/Print.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/Stream.cpp -o /tmp/arduino_build_949974/core/api/Stream.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/String.cpp -o /tmp/arduino_build_949974/core/api/String.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -Wall -g -Os -nostdlib @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/defines.txt @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/cxxflags.txt -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10810 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE -I/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/api/deprecated -iprefix/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/includes.txt /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/cores/arduino/mbed/platform/cxxsupport/mstd_mutex.cpp -o /tmp/arduino_build_949974/core/mbed/platform/cxxsupport/mstd_mutex.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/itoa.c.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/Interrupts.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/Serial.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/Tone.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/USB/PluggableUSBDevice.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/USB/USBCDC.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/USB/USBSerial.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/WMath.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/abi.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/api/Common.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/api/IPAddress.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/api/PluggableUSB.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/api/Print.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/api/Stream.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/api/String.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/main.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/mbed/platform/cxxsupport/mstd_mutex.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/wiring.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/wiring_analog.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/wiring_digital.cpp.o
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-ar rcs /tmp/arduino_build_949974/core/core.a /tmp/arduino_build_949974/core/wiring_shift.cpp.o
Archiving built core (caching) in: /tmp/arduino_cache_595353/core/core_arduino_mbed_nano33ble_1bf7e20957ca55ec988e85ec7f0e7f8f.a
Linking everything together...
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -L/tmp/arduino_build_949974 -Wl,--gc-sections -Wall -Wl,--as-needed @/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/ldflags.txt -T/home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/linker_script.ld -Wl,-Map,/tmp/arduino_build_949974/Blink.ino.map --specs=nano.specs --specs=nosys.specs -o /tmp/arduino_build_949974/Blink.ino.elf /tmp/arduino_build_949974/sketch/Blink.ino.cpp.o /tmp/arduino_build_949974/core/variant.cpp.o -Wl,--whole-archive /tmp/arduino_build_949974/core/core.a /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/libs/libmbed.a /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/libs/libcc_310_core.a /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/libs/libcc_310_ext.a /home/ryan/.arduino15/packages/arduino/hardware/mbed/1.1.3/variants/ARDUINO_NANO33BLE/libs/libcc_310_trng.a -Wl,--no-whole-archive -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O binary /tmp/arduino_build_949974/Blink.ino.elf /tmp/arduino_build_949974/Blink.ino.bin
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-objcopy -O ihex -R .eeprom /tmp/arduino_build_949974/Blink.ino.elf /tmp/arduino_build_949974/Blink.ino.hex
/home/ryan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /tmp/arduino_build_949974/Blink.ino.elf
Sketch uses 75876 bytes (7%) of program storage space. Maximum is 983040 bytes.
Global variables use 42152 bytes (16%) of dynamic memory, leaving 219992 bytes for local variables. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
PORTS {/dev/ttyACM0, } / {/dev/ttyACM0, } => {}
Uploading using selected port: /dev/ttyACM0
/home/ryan/.arduino15/packages/arduino/tools/bossac/1.9.1-arduino1/bossac -d --port=ttyACM0 -U -i -e -w /tmp/arduino_build_949974/Blink.ino.bin -R 
No device found on ttyACM0
Set binary mode
An error occurred while uploading the sketch
Send auto-baud
Set binary mode

I don't have any other uf2's built for nrf52840 to test, unfortunately.

@rpavlik

This comment has been minimized.

Copy link
Contributor Author

@rpavlik rpavlik commented Jan 6, 2020

Oh, but if I call it an ItsyBitsy nrf52840, flashing "Blink" to it will blink the blue part of the RGB LED, which is something. Of course, your board defs use adafruit-nrfutil instead of bossac. The double-click of the reset button properly enters the bootloader instead of the sketch, which is also great.

@rpavlik

This comment has been minimized.

Copy link
Contributor Author

@rpavlik rpavlik commented Jan 6, 2020

OK, some of my small tweaks are up on #97 . Since I can't find the original bootloader's source code (see arduino/ArduinoCore-nRF528x-mbedos#23 ), and adding SAM-BA/bossac support would probably increase code size a bit, I think my next approach will be to make a modified board definition for Arduino to use nrfutil instead of bossac.

@rpavlik

This comment has been minimized.

Copy link
Contributor Author

@rpavlik rpavlik commented Jan 7, 2020

OK, I see part of the issue with the UF2 part: The current.uf2 file is listed as only 512bytes (so 1 uf2 block) in size, compared to 598KB for my CPB. I get most of the same dmesg warnings on the CPB, so they're not related to my issues. The capacity of the "drive" is shown as the same (8000 512-byte logical blocks: (4.10 MB/3.91 MiB)), but for some reason the user portion of the flash isn't showing up right. Not sure why - comparing with the itsybitsy '840 (similar pin count) and feather '832 (same lack of qspi flash), the board config files look similar.

On the plus side, the nrfutil-used DFU stuff works fine, so I've been able to try a handful of bluefruit sketches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.