How to write programs for a custom SAMD21 board using Arduino IDE

@MartinL , yes, the bootloader upload was successful.
The BOOTPROT fuse is set to zero bytes. The double reset gives the same "Device not recognized" error.