Electronic – How to design the PCB in a way I can debug the Atmel microcontroller on board

atmeldebuggingmicrocontrollerpcb-designswd

We are designing a board around Atmel SAM4E microcontroller, and use Atmel-ICE for debugging/programming. To save space, we would like to avoid including the whole ICE connector. Which are the minimum set of required pins so that I can still program and debug over SWD?

Best Answer

Atmel shares JTAG and SWD pins on their ICs. The SAM4E datasheet says it clearly:

SWD & JTAG pins sharing

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