I was experimenting with using the Arduino IDE (and a Microchip/Atmel) ICE to [re]program a SparkFun SAMD21 mini breakout board’s bootloader.
I set the board type to “SparkFun SAMD21 mini breakout”, selected “Atmel SAM-ICE” as the programmer, and then selected “Burn Bootloader” in the Arduino IDE Tools menu.
The Arduino IDE successfully started the Open On-Chip Debugger, configured the Atmel SAM-ICE programmer, and attempted to program the SAMD21 mini breakout with the bootloader binary… and then immediately returned the following error:
Error: couldn’t open {/Users/kxxxxx/Library/Arduino15/packages/SparkFun/hardware/samd/1.8.6/bootloaders/zero/SparkFun_SAMD21_Dev.bin}
embedded:startup.tcl:477: Error: ** Programming Failed **
in procedure ‘program’
in procedure ‘program_error’ called at file “embedded:startup.tcl”, line 536
Given that a file named “SparkFun_SAMD21_Dev.bin}” is in the samd/1.8.6/bootloaders/zero/ directory, I thought that the problem wasn’t specific to the “SparkFun SAMD21 mini breakout”. I attempted to confirm this by programming the SAMD21 mini breakout board using the Arduino Zero bootloader. I followed the exact same steps as above, except that I selected “Arduino Zero (Native USB Port)” as the board type.
Good news! I was able to program the SAMD21 mini breakout with the Arduino Zero bootloader.
Bad news! I’m still not able to program the SparkFun SAMD21 mini breakout board with the SparkFun_SAMD21_Dev.bin bootloader; I continue to get the unable to open error:
Error: couldn’t open {/Users/kxxxxx/Library/Arduino15/packages/SparkFun/hardware/samd/1.8.6/bootloaders/zero/SparkFun_SAMD21_Dev.bin}
Any thoughts on why the Arduino IDE is getting an unable to open error with the SparkFun_SAMD21_Dev.bin file when (a) said file does exist and (b) I am able to successfully program the Arduino Zero bootloader (into the SparkFun SAMD21 mini breakout board)?
As I say, the SparkFun_SAMD21_Dev.bin file does exist:
ls -la /Users/kxxxxx/Library/Arduino15/packages/SparkFun/hardware/samd/1.8.6/bootloaders/zero/SparkFun_SAMD21_Dev.bin
-rw-r–r-- 1 kxxxxx staff 6604 Jun 17 2021 /Users/kxxxxx/Library/Arduino15/packages/SparkFun/hardware/samd/1.8.6/bootloaders/zero/SparkFun_SAMD21_Dev.bin
Thanks,
K.