JTAG ice MK2 not working with PDI?

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


Just repaired my JTAG ice MK2, the power switch was broken.

 

Trying to program a Xmega32E5 but I get this error:

 

 

The ICE was upgraded to the latest firmware (well unintentionally, wanted to keep it for AS4.18 sad)

 

 

It works OK with DW and ISP.

 

The reason why I wanted to use it is because it DOESN'T lock up the mouse like the JTAG Ice MK3 or the Atmel ice does.

This topic has a solution.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Fri. Oct 9, 2020 - 05:18 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
lock up the mouse like the JTAG Ice MK3 or the Atmel ice does

pardon?

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

js wrote:

The reason why I wanted to use it is because it DOESN'T lock up the mouse like the JTAG Ice MK3 or the Atmel ice does.

Get a cat.

 

I was intrigued.  So I plugged the JTAG-2 ISP/PDI/dW adapter into the Xplained board.   And got the same error messages as you.

 

However,  the X32E5 works fine with SNAP,  PickKit4, ATMEL-ICE, Dragon, ...

 

I suspect that the JTAG-2 has fallen off the Microchip AS7.0 radar.

 

Note that the SNAP requires the hardware mod for PDI.

 

David.

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



pardon?

It's a know fact that some mice do not play well with AS7 and the JTAG Mk3 and the Atmel ICE.

 

I just had to program 1 board and I thought I'd use the MK2 instead as it doesn't suffer from the lock up instead of replacing the mouse just for the exercise, which I ended doing anyway.

 

I suspect that the JTAG-2 has fallen off the Microchip AS7.0 radar

Yet it shows up in the list of debuggers if a new project is started.

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Sure you have the DATA pin wired to the right place?  (Unlike Atmel-ICE I think DATA is on JTAG-TDI and not TDO?)

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


Yes, I have made few thousands of this board. I'm using the standard MK2 interface cables so if it is a different pin then I may need a custom crossover cable??

 

 

Also I note that the clock speed adjustment slider is not available on the Mk2 as it is available on the Mk3.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I plugged the regular JTAGICE-2 JTAG_to_ISP adapter into the X32E5 PDI header.   So I am using the official ISP / PDI / dW 3x2 pinout.

And the Adapter works fine with ISP on a mega328P

 

David.

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

Maybe time to get the "OCTOPUS" cable out..... cheeky after breakfast that is.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


So it's a lot later than breakfast time sad but I could not find the octopus cable, it is probably attached to some board somewhere.

 

I used 4 jumper cables to connect the board to the Mk2 according to the help file and it works.

 

So the solution is to either

 

1) Make a 10 way to 6 way cable similar to the ISP dongle but using the correct pins as hinted in #5.

 

2) Use the squid cable

 

3) Use jumper cables (male to female) from the JTAG connector to the 6 pin PDI connector.

 

OR read the Friendly manual blushblush

 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Fri. Oct 9, 2020 - 05:27 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I soldered a 5x2 and a 3x2 onto a scrap of Protoboard.    Connected the appropriate PDI pins.   And now have a working JTAGICE-2 PDI Adapter.

 

Thanks mraardvark

Thanks Mr Samperi.

 

Mind you,   the SNAP is a lot smaller and faster.   And has a micro USB socket.

 

David.