plot_stamps.py
Arduino SAM Tutorial
0. Installing
To install the Arduino Core, add the following URL to Additional Boards Manager URLs
:
https://raw.githubusercontent.com/qbolsee/ArduinoCore-fab-sam/master/json/package_Fab_SAM_index.json
You can then install the package by opening up the Boards Manager:

And looking for a package called Fab SAM core for Arduino
. Simply install the latest version:

A new menu appears under board
, letting you select a variety of chips. Some generic names contain an x
, for instance for a SAMD21E17, you would select Generic x21E
:

Then select the right microcontroller in the next menu:

1. With bootloader
Because the SAMD family has native USB support, they can easily talk to the host computer using a CDC serial class. A neat trick is to use this serial port not only to communicate, but also upload your binary when needed.
This can be achieved with a bootloader, that first needs to be installed on the microcontroller using an external programmer. After this, your board will behave like an official Arduino board and can be flashed through the serial port without any programmer plugged in.

1.1 Burn bootloader
Connect a CMSIS-DAP adapter (Atmel ICE is also fine) to your board and make sure both are powered. Here are examples with a D11 and a D21, with various programmer/connector styles:
Select the right board and microcontroller, then CMSIS-DAP
as the programmer, then click on Burn Bootloader
.