Atmel-ICE Pin Out

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am designing my first board with a 10 pin connector, intending to connect to the Atmel-Ice, and I am paranoid of flipping the the pins, and making the board a pretty paperweight.

 

The schematic below is intended to be on my board, and connect to the ICE.  Does this look correct?

 

 

Ultimately, I'd like to use a Tag-Connect cable rather than put a connector on my board, but came across a disturbing message on their web site regarding the pinout of the Atmel-ICE (http://www.tag-connect.com/TC2030-CTX-NL):

 

WARNING for ATMEL-ICE users: Astoundingly the new Atmel-ICE has it's SWD header pin numbering reversed. To use our cable with their backwards header you'll either need to cut off the ribbon connector locating lug and plug it in reversed, or connect a new ribbon header onto our cable backwards. If you plug in a standard (correct) Cortex cable you're going to short power and stuff out.

 

Per Tag-Connect, they actually sell a cable called TC2050-IDC-050-LEMTA (do you see what they did there? ;) ) that is not in their official catalog to address this issue.

 

Also discussed here: http://www.avrfreaks.net/forum/atmel-ice-debugger (see second to last post).  I just purchased my Atmel-ICE about a month ago.  Has this issue been resolved, or is it still outstanding?

Science is not consensus. Science is numbers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it me or have you failed to say what CPU you are talking about here? I see the term "SWD" so I assume you are talking about a SAM Cortex ARM rather than some other type of CPU?

 

Anyway the ATmel-ICE manual has pinouts:

 

http://www.atmel.com/webdoc/atme...

http://www.atmel.com/webdoc/atme...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry Cliff -- rookie mistake.  I am in fact trying to connect JTAG to an ATMEGA256RFR2.   I am somewhat confident in my ability to make the connector compatible with the Atmel-ICE stock cable.  I am intrigued by the whole "pin reversed" thing on the connector (i.e., 1 to 10, 2 to 9, etc.)

 

Has anyone here had any experience with that?

Science is not consensus. Science is numbers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But that reversal is only talking about SWD (that is the debug interface for ARM/Cortex). I think the suggestion is that there's an "unofficial standard" way to wire it on ARM chips and Atmel have chosen a different layout. This has no relevance to ATMega. An ATMega256RF2 uses (Atmel) JTAG or ISP.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All,

 

I think I had same problem! my board has SAM4LC2A with 10-pin JTAG connector. I connected ICE with JTAG connector with 10-pin connector assuming red wire is PIN-1. I tried for almost 10-11 hrs and finally I saw this post and reversed the connector. It worked!!!

Note: I have basic version of ICE package and hence, I did not have 10-pin connector. So, I manually prepared a connector with 10-pin wire of ICE.

P D Chauhan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's a fairly common problem when using double-row headers if you want the ribbon cable to play nice.

 

How do you avoid a twist in the ribbon cable in a situation like this...

 

 

 

I've been badly caught out before when designing two boards that needed to be linked by a ribbon and forgetting to swap the pins around on one connector.

'This forum helps those who help themselves.'

 

pragmatic  adjective dealing with things sensibly and realistically in a way that is based on practical rather than theoretical consideration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Also, keep in mind that the physical rows are 1 3 5 7 9   & 2 4 6 8 across from each other.  Occasionally there will be a board where they've physically arranged numbering in a wraparound style (like a dip package).  Then when you make a cable based on the schematic (& assuming to be standard even/odd dual row) &  plug it into the board...nothing...or poof!

When in the dark remember-the future looks brighter than ever.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've used the Tag-Connect cables before.  The no leg (NL) version is a PITA for anything but a quick plug in a program.  You can use a clip on the back to hold the connector on but this won't work if you can't get to the underside of the PCB (like when it's mounted in an enclosure).  The legged version has quite a large footprint so I opted to use a standard surface mount 10 pin 0.05" pitch header instead on my last board.

 

Yes, the Atmel pin numbering is reversed.  This is not something they are likely to change.  It's not a big deal when you know about it but it is annoying.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Annoying is one word to describe it - just got caught by this big time.

 

Either the intern at atmel got the 0.05 10 pin header footprint wrong on the ICE and a special cable was the fix, or they have deliberately reversed it to make sure it only works with their magic and very overpriced cables. Either way, thanks for that...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

anthony_k wrote:

Either the intern at atmel got the 0.05 10 pin header footprint wrong on the ICE and a special cable was the fix, or they have deliberately reversed it to make sure it only works with their magic and very overpriced cables. Either way, thanks for that...

 

Not just the atmel ice -- the jtag-ice3 is the same way.  It is not just an ARM issue.  I was pretty surprised when I found that out.  I buy regular 0.050 ribbon cables and cut the key off of one end.  I put that end in the programmer ( either atmel ice or jtag ice3 ).  The programmed does have a pin one indicator -- it just doesn't line up with the key.  I assume that someone screwed up way back when and they just stuck with it.