To be able to design a custom board, I am first trying to understand how to use the PICkit 4 in-circuit debugger with SAM and Atmel Studio 7. Before I design the custom board, I would like to try to use the PICkit 4 in-circuit debugger on a SAM E70 XPlained evaluation board using the 20-pin header J403.
From the SAM x70 series datasheet, I see in Fig. 60-1 the following:
First of all, is this the right interface to use for programming and, if possible, even for debugging purposes?
What are the right connections from the PICkit 4 to the SWD?
I am assuming the correct connections are as follows:
(1) nMCLR = nRST
(3) Ground = Ground
(4) PGD = TRACESWO
(5) PGC = SWCLK
(8) <unnamed> = SWDIO
VDD between the board and the programmer need to be independent (I would power the board separately via the USB cable).
I sort of figured the SWDIO from the following table (which I found here):
Has anyone tried this out before? Has anyone used PICkit 4 successfully in combination with Atmel Studio 7?