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:
- In Atmel Studio 7, navigate to Tools > Device Programming.
- Select the Tool, Device
and Interface, as shown in the following figure, then click
Apply.
Figure 6-15. SAMC21J18A Device Selection - Click the Read
button to ensure that the signature matches the selected device.
Figure 6-16. SAMC21J18A Signature Verification - 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 - Select the
Memories tab, then click the Erase now
button.
Figure 6-18. SAMC21J18A Memory Settings - Browse to locate the
ATAK51005-V1.hex
file for the flash memory image. - Click the Program button, then wait for completion.