atmel ICE 6 pin connector use for programming over SWD interface ?? - Page 1
Forum section: electronics / general

author: snarkysparky
author_rank: Frequent Contributor
timestamp: October 25, 2016, 11:11:21 pm
content: I have really really really really... looked but I can't find my missing info on the six pin connector on the Atmel ICE kit.Now i know on the board you usepin 1 - MISOpin 2 - VCCpin 3 - Clockpin 4 - MOSIpin 5 - resetpin 6 - groundHowever SamD20 datasheet only has pin 31 as SWDIO for the SWD interface.Which pin to I connect on the 6 pin connector to program with the ICE

author: ataradov
author_rank: Super Contributor
timestamp: October 26, 2016, 02:44:52 am
content: SWD normally uses 0.05" 10-pin connector (Cortex Debug) and that't 1:1 relation with "ARM" connector on the Atmel-ICE.So you will have to clarify how you are connecting Atmel-ICE to that 6-pin connector.Just in case, here are pinouts of all possible connectorshttp://www.atmel.com/webdoc/atmelice/atmelice.using_ocd_physical.html

author: snarkysparky
author_rank: Frequent Contributor
timestamp: October 26, 2016, 11:25:00 am
content: Yeah the recommended SWD connector costs more than the CPU itself in single quantities !!!!So I want to put a 6 pin 0.1 pitch and use this plug that comes already on the ICE cable.My issue is I don't know what the pins are on the 6 pin connector. May have to get out the meter and reverse engineer it.At this point I am laying out a PCB so it is the pin assignment I can change.Thanks

author: ajb
author_rank: Super Contributor
timestamp: October 26, 2016, 11:56:11 am
content: Table 4-11 in the Atmel ICE manual tells you how the 10-pin AVR port maps to the 6-pin SPI pinout, so translate that pin mapping to the SAM port and that will tell you how the SWD pins would land on the 6-pin header if you use the AVR 10->6 pin adapter on the SAM port. The bottom line is that the nSRST is pin 10 on the SAM connector, which doesn't map to anything on the 6-pin cable, so you can't use the standard adapter on the SAM port. The SAM and AVR ports on the Atmel ICE are shared, so you can connect a SAM to the AVR port if you rearrange the pins, but even on the SAM port you can't use the standard 10->6 pin adapter cable because you'd be missing TMS/SWDIO. Attached is a little chart I made and stuck to the bottom of my Atmel ICE a while ago for reference; it's nothing that isn't in the Atmel ICE manual, just consolidated for quick reference.Of course you could make your own adapter, and map the pins however you wanted. But while 1.27mm headers aren't as cheap as their larger cousins, they can be had much cheaper than the MCU. Here's aDigikey linkwith parts sorted by price at qty=10. Once you actually see how little board space the 50mil 10-pin header takes up compared to even a 6-pin 100mil connector you won't want to go back. If the price of the headers is still too much, you could go with a tag-connect cable, which doesn't require any connector on the board at all, but you have to spend $30-60 up front on the cable.

author: ebclr
author_rank: Super Contributor
timestamp: October 27, 2016, 01:57:04 am
content: This cheap board solved my problem with the pricey cablehttps://world.taobao.com/item/536473612667.htm?spm=a312a.7700714.0.0.lI16xK#detail