6.3 Programming the SAMC21J18A on the ATSAMC21-XPRO Board

To program the SAMC21J18A on the ATSAMC21-XPRO board, ensure that the USB connection from the computer to the ATSAMC21-XPRO board is in place. The following steps use the embedded debugger (EDBG) on the board for programming:

  1. In Atmel Studio 7, navigate to Tools > Device Programming.
  2. Select the Tool, Device and Interface, as shown in the following figure, then click Apply.
    Figure 6-15. SAMC21J18A Device Selection
  3. Click the Read button to ensure that the signature matches the selected device.
    Figure 6-16. SAMC21J18A Signature Verification
  4. Select the Fuses tab, then verify the proper fuse settings. The default fuse values are used except for the User Word 0.NVMCTRL EEPROM SIZE, which must be set to 4096 bytes. Click the Program button.
    Figure 6-17. SAMC21J18A Fuse Settings
  5. Select the Memories tab, then click the Erase now button.
    Figure 6-18. SAMC21J18A Memory Settings
  6. Browse to locate the ATAK51005-V1.hex file for the flash memory image.
  7. Click the Program button, then wait for completion.