Embedded Hardware is my profession. If you want to hire me, hit that contact button. Otherwise, here is a stream o' crap of the stuff that I have done that I don't want to have to refigure out later.

Burn Arduino SAMD21 bootloader onto bare chip using Black Magic Probe.

Valid 2021-07-06

Why would you want to do this? Maybe you're making your own boards or the bootloader on your Nano 33 IoT gave up. Who knows! Not me and probably not you.

$ cd ~ $ find .arduino15 -name arm-none-eabi-gdb .arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gdb $ export PATH=~/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin:$PATH $ find .arduino15 -name samd21_sam_ba_arduino_nano_33_iot.hex .arduino15/packages/arduino/hardware/samd/1.8.4/bootloaders/nano_33_iot/samd21_sam_ba_arduino_nano_33_iot.hex $ cd ~/.arduino15/packages/arduino/hardware/samd/1.8.4/bootloaders/nano_33_iot $ arm-none-eabi-gdb samd21_sam_ba_arduino_nano_33_iot.hex ... (gdb) target extended-remote /dev/ttyACM0 (gdb) monitor swdp_scan Target voltage: 3.30V Available Targets: No. Att Driver 1 Atmel SAMD21G18A (rev D) M0+ (gdb) attach 1 (gdb) load (gdb) run

Copyright ©1997 - 2021, Bulent Yilmaz