45.7 Programming and Debugging Ports

For programming and/or debugging SAM D21, the device must be connected using the Serial Wire Debug (SWD) interface. Currently the SWD interface is supported by several Microchip and third party programmers and debuggers, such as the JTAGICE3, SAM-ICE, ATMEL_ICE or SAM D21 Xplained Pro (SAM D21 evaluation kit) Embedded Debugger.

Refer to the JTAGICE3, SAM-ICE, ATMEL_ICE or SAM D21 Xplained Pro user guides for additional information on debugging and programming connections and options. For connecting to any other programming or debugging tool, refer to the specific programmer or debugger’s user guide.

The SAM D21 Xplained Pro evaluation board for the SAM D21 supports programming and debugging through the onboard embedded debuggerno, hence no external programmer or debugger is needed.

Note that a pull-up resistor on the SWCLK pin is critical for reliable operations. Refer to related link for more information.

Figure 45-10. SWCLK Circuit Connections
Table 45-8. SWCLK Circuit Connections
Pin NameDescriptionRecommended Pin Connection
SWCLKSerial wire clock pinPull-up resistor 1kΩ