I had a need to do a small custom SAMD21 board, so I started with a Sparkfun SAMD21 Dev Breakout (https://www.sparkfun.com/products/13672). I immediately plugged in a Segger JLINK and starting writing the code I needed (not using Arduino). That worked out fine. Now I just wanna re-install the bootloader so that the board will properly connect to Arduino, but I have not had any luck with that… Using JLINK I can progam thebootloader-sparkfun-samd21-dev-v3.2.2-1-gdec2fb7-dirty.bin image and everything “seems” to be correct…
“Board Info” (in arduino) shows what I would expect (BN: SparkFun SAMD21 Dev Breakout)
On linux /dev/ttyACM0 comes up and also a new partition shows up (similar for Windows)
both environments are running Arduino 1.8.12.
Despite all this good news, I have not been able to even install “Blink” with this. I have tried the “double tap” procedure…
After the double-tap, arduino apparently finds the port, but there’s an error saying “No such file or directory” even though I can see the /tmp/arduino_build_XXXXXXXX/Blink.ino.bin file is there. Similar thing occurs on Windows. Note in both cases after the double tap I also see a new partition pop up.
One thing that seems odd is to use the “AVR ISP” programmer (in Arduino). The sparkfun setup page seems to use this, but the SAMD21 isn’t AVR. Unfortunately, there doesn’t seem to be a “Programmer” option that fits the SAMD21.
I’ve tried building several different bootloader versions (DFU, SAM-BA, etc…).