Atmel-ICE Target Connections Cheat Sheet

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

Hello Fellow AVR Freaks,

 

I’m using an Atmel-ICE and designing some hardware where I need to include programming headers and I am also making some special cables for the ICE.

 

The manual for the Atmel-ICE explains all the interface header requirements over several pages, so, I created a one page summary to make it easier for me.

 

Maybe some other users could benefit from this, so, I attached a PDF copy. If you see any errors, let me know.

 

Best regards,

Paul

Attachment(s): 

You never know where life is going to take you; sit back and enjoy the ride!

Last Edited: Fri. Aug 5, 2016 - 11:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nice, I'll make a sticky.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Thanks for the cheat sheet. Very nice!

 

Are the pin numbers on the 10-pin cable funky on the Atmel ICE?  I tried making some breakout boards that have wiring that matches your cheat sheet and they don't work. I get a message that sez the target voltage is low. I don't see anything in the docs that talk about it.

 

--timR

Tim Ressel
Portland, OR
timr@earthling.net

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

Are the pin numbers on the 10-pin cable funky on the Atmel ICE?

Not funky or wonky, what kind of a breakout board did you make and why would you need such a thing?

 

The ice comes already with a breakout board for ISP (6 pin Atmel standard for more than 16 years) and JTAG (10 pin).

 

the target voltage is low

Is your board powered up? If so then you have you wiring incorrect.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

madhun wrote:
I get a message that sez the target voltage is low.

So hav u measure it wiv a meter 2 verify?

 

 

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

Please note: the VCC in the diagrams is the power from the target that is sensed by the ICE. The ICE does not provide power to the target, the target must have its own power.

David (aka frog_jr)

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

My target is fine; I can use an AVRISPII to talk to it. I got the PCB only version of the Atmel ICE to make a test fixture for a product. Maybe that was shortsighted. I made little breakout boards for SPI, 1 wire, etc. I tried the 1 wire adapter on my target and got the low voltage warning.

 

The reason I asked about the funky cable numbering: when looking at the user manual and the board there is some confusing info. The connectors are marked (on the case and board) with pin 1 on the left, but when you plug a standard ribbon cable into it, the red stripe (denoting pin 1) is on the right. Also when they show a pic of the debug cable pinout (Atmel Atmel-ICE [USER GUIDE], page 15), it shows one end of the cable with pin 1 near the red stripe and the other end shows pin 9&10 near the red stripe.

 

I'm just trying to verify the pinout of the AVR connector on the ATMEL ICE.

 

--timbo

 

Tim Ressel
Portland, OR
timr@earthling.net

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

madhun wrote:
I got the PCB only version of the Atmel ICE to make a test fixture for a product. Maybe that was shortsighted.
Atmel Power Debugger can supply power to the target and has an additional AVR connector (100mil pitch in addition to the usual 50mil pitch connector)

The Atmel-ICE production programming C# application might work for Atmel Power Debugger.

 

http://www.avrfreaks.net/forum/microchipdirect-dev-tool-sale-2017-aug

Microchip Technology Inc

Microchip

Using Atmel-ICE for AVR® Programming In Mass Production

http://www.microchip.com//wwwAppNotes/AppNotes.aspx?appnote=en599598

 

"Dare to be naïve." - Buckminster Fuller

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

Atmel Atmel-ICE [USER GUIDE], page 15

Are you referring to this?

 

 

Fortunately for me my 2 JTAG Mk3 and 2 Atmel ICE have arrived with the breakout boards included but if I were to make any such board I would look for pin 1 on the target connector rather that the side that plugs to the ICE, the target end shows, correctly, the Red trace on pin 1.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I cam here looking for help and when I saw this thread I thought "that's exactly what I need".

I am designing a device using a ATMega328P-AN (TQFP-32). I am planning to buy the $133 "ATATMEL-ICE" for programming and debugging, planning to use AVR Studio.

I was trying to figure out how to add the JTAG connector to my device and what all of the pins should connect to.

It is entirely possible that the above pdf contains all of the information I need, but I am just not understanding it...

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

JTAG would be a good good trick with a 328P! It does not have JTAG. The debug interface for a 328P is "debugWire" which uses a subset of the ISP pins so as long as you make provision for the six ISP pins then you will have the debug interface covered too. Note that debugWire cannot stand any other components connected to the _reset pin.

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

Ok, that helps. But I still cannot find where to connect the pins of the 6 pin ISP connector that I want to add to my PCB on my device. I've searched and searched the data sheet and the internet, but can't make sense if it. I want to finish my initial prototype PCB design, but I don't know where to connect the ISP connector.

 

I am on the right track correct? I can add a 6 pin connector ISP to my device board and then program and debug it using Atmel ICE?

 

EDIT - after looking at the pdf again I don't know where my confusion was. Thank you for this!

Last Edited: Wed. Aug 16, 2017 - 07:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

LsD wrote:
But I still cannot find where to connect the pins of the 6 pin ISP connector that I want to add to my PCB on my device. I've searched and searched the data sheet[...]

 

Chapter 31 (Memory Programming), section 8 (Serial Downloading), page 360.

Then map to the pinout of the package you're using - Chapter 5 (Pin Configurations), section 1 (Pin-out), pages 14-17.

 

EDIT: Note that VCC is not intended to supply your board, but should be connected to the VCC of the board so that the programming dongle, e.g. Atmel-ICE can sense the supply voltage.

 

EDIT-EDIT: ...which has already been mentioned by frog_jr in #6 .

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

Last Edited: Wed. Aug 16, 2017 - 09:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So looking at the debug cable 'pinout', see how the 10-pin connectors are backwards from each other? And how the numbering changes? This means you cannot use a straight cable without swapping pins on the target. Since I am making my own adapter boards this is not a problem. I was hoping someone could verify the pinouts.

 

--tr

Tim Ressel
Portland, OR
timr@earthling.net

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

madhun wrote:
So looking at the debug cable 'pinout', see how the 10-pin connectors are backwards from each other? And how the numbering changes?

 

Yes, the connectors on the Atmel-ICE PCB itself are reversed, obviously a screw up. Atmel compensate for that by reversing one connector on the supplied cable. If you make your own, copy it exactly! A standard (1:1) off the shelf cable will not work.

After the reversing, the pin numbering at the target is as expected.

 

 

Bob.