JTAG breakout for ATMEL-ICE and STK500

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

Hi all!

 

I bought an ATMEL-ICE to debug my ATMEGA16 (and other targets) running in the STK500. However, I learn that the STK500 does not support JTAG interfacing :(

So there used to be a ATJTAGPROBE or other adapters, but, seemingly, these are all discontinued. I don't want to try to make my own adapter, since I have lots of challenges with my exisiting project as it is (hence, the debugger).

Does anyone know where to get a hold of such an adapter? Maybe someone here has made one/some, and might have one spare?

 

 

Joakim

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

It should be pretty easy to make your own adapter.   Just take some header strip and a scrap of Protoboard.

The ATJTAGPROBE plugs into the EXPAND0 header on the STK500.    Your home made adapter can do the same.

 

This is fine for the regular 2.54mm 5x2 JTAG.

 

However the ATMEL-ICE comes with a 1.27mm 5x2 JTAG which is not amenable to home wiring.

You need the weird ATMEL universal adapter that costs an arm and a leg.

 

I am sure that my STK500 came with mega16, mega8515, ATJTAGPROBE, RS232 cable, barrel connector power lead, ribbon cables and jumper leads.

It had a green printed manual.   And it probably had a CD too.

 

Farnell UK have the STK500 in stock.   Their product page does not show the JTAG adapter.   And it says "AT90S8515".   So it does not seem very accurate.

Farnell UK have all bits of ATMEL-ICE in stock.   If you have the "full kit" you have already got the universal adapter and squid leads.

 

From curiosity:  when did you buy the STK500?  What came with it?

 

Unless you have a mega162 your home made adapter only needs to connect the SCKT3100A3 pins on EXPAND0

 

David.

Last Edited: Wed. Aug 25, 2021 - 08:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I bought the STK in 2006, and it included (as I remember) a RS232 cable, one 6-pin cable, two 10-pin cables, four 2-pin jumpers, and the manual + CD. That's it. I think maybe it came with one AT90S8515 chip as well.

No debug-related stuff; headers or squid leads.

 

That was back when Atmel were in charge. Now, the ATMEL-ICE! What a minimalistic setup :( The fresh red box contains the ATMEL-ICE, USB cable, and one 10 pin cable (the one with the 6pin and the 10pin connectors on it).

As you point out, the 10-pin connectors are very "thin", so as to discourage any DIY adventures, I guess.

 

 

Last Edited: Wed. Aug 25, 2021 - 08:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I checked Farnell, Mouser, DigiKey, and they all seem to say " No Longer Manufactured " on the JTAG adapters...

Edit: Checking farnell.co.uk now, and they have different stock -- as you said :D Thanks!

Last Edited: Wed. Aug 25, 2021 - 08:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

joakimk wrote:
the 10-pin connectors are very "thin", so as to discourage any DIY adventures

but they are common - so ready-made cables are widely available ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hehe... 43 pounds

https://uk.farnell.com/microchip...

 

Fun to think that I recently paid around 85 pounds for the ATMEL-ICE :)

 

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


If someone can confirm this is indeed the right part for me to use the ATMEL-ICE with the STK500, that would be highly appreciated :)

I have this unit:

Last Edited: Wed. Aug 25, 2021 - 08:32 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I bought my STK500 in 2007.   Obviously it was a "good deal" i.e. mega16, mega8515 and JTAG adapter.   But no AT45 Flash Memory.

 

I suppose that JTAG had not been invented for AVRs until the mega16.   The 90S8515 and mega8515 do not have JTAG.   So the pre-2007 STK500 would not have had a JTAG adapter.

 

David.

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

Yeah... Guess I should have got the non-basic ICE pack tho :)

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

Ah-ha.  At least you bought the ATMEL-ICE BASIC kit.   Which gives you a ribbon cable.

 

Anyone who buys the PCBA version is helpless.    There is no way for regular human beings to connect it to an AVR.

 

David.

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

Ha! Should say that on the box :)

So the connector kit is the right one for me? Then, to actually debug the ATMEGA16, I understand I'll enable the OCDEN and JTAGEN fuses and just... hit "Debug and break" from Atmel Studio?

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


joakimk wrote:
Hehe... 43 pounds

https://uk.farnell.com/microchip...

I meant that generic cables are available; eg

 

https://uk.farnell.com/harwin/m5... - both ends terminated

 

https://uk.farnell.com/samtec/ff... - one end terminated.

 

I found it quite easy to adapt to 0.1" pitch by mounting a header on one of these kind of things:

 

 

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What country are you in?

You need a 10pin 1.27mm to 10pin 2.54mm adapter.   Preferably with an extra 10-way ribbon.

 

Then it is straightforward to connect to your STK500 board.   i.e. from the ATMEL-ICE ribbon to human manageable jumper wires.

 

Shops that sell debuggers, prototyping components, ... should have these in stock.   Or you have to buy from China.

 

Once you have the STK500 JTAG connected everything is ok.

 

David.

 

 

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


This is what we are talking about, very easy to make with break out board, I'm pretty sure it came with my STK500.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly