How can I design my PCB in a way I can debug the Atmel microcontroller on board?
Atmel shares JTAG and SWD pins on their ICs. The SAM4E datasheet says it clearly:



SWD is (in most cases) a two-wire interface, so the only program/debug connection is TMS/SWDIO and TCK/SWDCLK.