Dragon PDI Connection Reference

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

I believe the Dragon could be connected to an Atmel XPlain board using a 10-Pin JTAG cable, (JTAG Header to JTAG Header). (This is not what I want to do right now...).

I would like to try using the Dragon's PDI capabilities to program either an XPlain board, or my own XMega PCB.

I am looking for a reference showing how one connects a programming cable to the Dragon for PDI programming.

The AVR On-Line Studio Help to Dragon manual shows the Dragon's JTAG and ISP headers, but does not state the PDI Clock and Data connections for PDI usage.

The XPlain User's manual shows the JTAG and PDI headers, but does not show a PDI type connection to a Dragon.

I've found lots of interesting threads and documents, but I am having difficulty locating a true Atmel reference for the PDI DRAGON connections.

If anyone could point me in the right direction I would appreciate it.

JC

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

Quote:

Dragon's PDI capabilities

Take a look at the Dragon manual (Device Support table). The ONLY Xmega models it can do PDI (programming or debugging) with are:

ATXmega16A4
ATXmega32A4

and that's all. (and for those two it has to be PDI - I'm sort of guessing they simply don't do JTAG?)

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

Hi Cliff,

I did see that table, and I guess I was hoping it was an out-of-date reference...

Wishful thinking I guess, but the Dragon manual doesn't even mention PDI programming in the "Connecting the AVR Dragon" Section where it does discuss ISP, JTAG, and Parallel modes, even though it can do PDI on at least the models you've mentioned above.

Even if one had an X-16 or X-32, (I don't, I've got 64's and 128's..., Murphy's Law), it still doesn't show how one would connect it...

Guess its back to the STK600 :)

JC

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

I'd be very surprised if the PDI mapping was not the same used in the AVRISPmkII so maybe consult its manual about the pinout?

EDIT: added picture

Attachment(s): 

Last Edited: Wed. Oct 20, 2010 - 03:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah, don't have one of those, so did not consider looking there.

Thanks for the suggestion!

JC

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

Thanks Cliff!

Perhaps the same diagram and comment will eventually make it into the Dragon's manual.

JC

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

By searching for PDI I was able to find this:

AVR Dragon User's Guide
+Debugging with AVR Dragon
++PDI Physical:

Quote:

PDI Physical

The Program and Debug Interface (PDI) is an Atmel proprietary interface for external programming and on-chip debugging of a device. PDI Physical is a 2-pin interface providing a bi-directional half-duplex synchronous communication with the target device.

When designing an application PCB which includes an AVR with the PDI interface, the pinout shown in Figure 8, “PDI header pinout” should be used. One of the 6-pin adapters provided with the AVR Dragon kit can then be used to connect the AVR Dragon probe to the application PCB.

Figure 8. PDI header pinout

I think this discription is flawed though, and instead of "one of the 6 pin adapters" should be "the 6 pin adapter labeled ISP"

But I also was unable to program an ATXmega256A3 while
a 32A4 worked fine.

- Jay

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

Quote:

But I also was unable to program an ATXmega256A3 while
a 32A4 worked fine.

Why are you surprised - that's exactly what the Dragon user manual says you should expect. - that is the only Xmegas that work with PDI are the ones that ONLY have PDI - the 16A4 and the 32A4. All other Xmegas can only be used with JTAG.

So you are seeing exactly what you'd expect.

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

I erased my answer, as Cliff's is better! (As per usual!).

That said, Welcome to the Forum, Jay.

Perhaps this thread could get moved to the Xmega forum, now that it exists.

JC

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

Thanks, I posted because I thought I found that PDI reference in an unexpected place... and I have not mastered the AS5 help in that I cannot find a Device Support table for Dragon in the AS5 help yet. My search for Device Support turns up JTAGICE3, STK500, STK600, AVR Studio User's Guide, AVR ISP MkII, but no Dragon.

Oh hey, I see there is a COLUMN for Dragon in the table in the AVR Studio User's Guide, and the ATxmega256A3 is marked with "X=Supported"! Doesn't say PDI, though.

My AVR Studio sez:

Quote:
Atmel AVR Studio 5 (Version: 5.0.1163)
© 2011 Atmel Corp.
All rights reserved.

OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
Platform: Win32NT

My Dragon updated with AS5 and now says

Quote:
AVR Dragon
Debug host 127.0.0.1
Debug port 54099
Serial number 00A200007474
Connection com.atmel.avrdbg.connection.jungousb
Master Firmware Version 7.14
Slave Firmware Version 7.14
Hardware Version 17

I wonder if this is the latest?

When I now try AS4 connect dialog, I get the "too new" warning for the Dragon saying "only major version 6 is supported" and offers to downgrade my Dragon.

Is there a Dragon manual separate from the Dragon User's Guide?

Thanks!

- Jay

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

Quote:
Is there a Dragon manual separate from the Dragon User's Guide?

That's it, as far as I know.

JC

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

Quote:

Is there a Dragon manual separate from the Dragon User's Guide?


The "manual" I use is the section of the AVR Studio 4 online help that is dedicated to Dragon. Atmel have always been in the habit of distributing latest "manuals" as part of AS4 help. I guess this continues with AS5 (I installed it once but couldn't get help to work at all as it seemed to be trying to make an online access for it?)

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

Quote:
it seemed to be trying to make an online access for it?
Visual Studio Help system is user configurable, to search various locations to access 'up to date' help files. The internet is just one such source. The other, is locally installed files. The order that these locations are searched can be changed by you (the M$ tester).

--greg
Still learning, don't shout at me, educate me.
Starting the fire is easy; the hardest part is learning how to keep the flame!

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

So, please anybody already know the Avrdragon's PDI pinout??

it's like cliff has recommended?...
the same for AVRisp MkII PDI?, in the ISP Port?

Thanks.

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

I have received a definitive answer from Atmel on PDI programming with the AVR Dragon:

Quote:

Please note that for PDI programming with AVR Dragon you need not use the JTAG squid connector and connect it to the JTAG header of AVR Dragon.

The 6-pin ISP header on the AVR Dragon serves also as the PDI connector which has the pinout as shown in the attached snapshot.

NOTE: When PDI programming with AVR Dragon is considered XMEGA A3/D3 devices with Rev F and Rev G work in PDI mode with AVR Dragon, in Atmel Studio6. But XMEGA PDI mode on AVR Dragon does not work for the XMEGA A3/D3 devices with revisions B, C and E.

Typically the last letter in the second row of the bottom marking of the chip represents the revision of the chip. Alternatively you may connect your device in JTAG mode with JTAGICEmkII and view the chip revision in the ‘Device Information’ tab in the ‘Device Programming’ window of the Atmel Studio 6.


The "attached image" showed the standard 6-pin PDI connector Atmel is promoting. So the Dragon ISP connector is now called the ISP/PDI connector and you wire it straight across to the PDI connector of the target.

In my case I don't have a PDI connector and need to use the squid, which connects to the 10-pin JTAG connector. All the pins of the ISP/PDI connector on the Dragon are wired directly to pins of the JTAG connector, as follows, with PDI names:

ISP - JTAG
1 - 3 Data(ISP only)
2 - 4 VTG
3 - 1 N/A
4 - 7 N/A(Data on JTAGICE PDI)
5 - 6 Clock(reset)
6 - 2 GND

So if I wire the 10-pin squid for PDI on the JTAGICE MkII, the data is on pin 7. But if I move the squid over to the Dragon, the data line moves to pin 3 of the JTAG connector.

I had tried this and couldn't get it to work because my prototype has an old Rev B device. Rev F or later is needed to get PDI to work on the Dragon with the A3 device I'm using. PDI does work on the JTAGICE MkII with the old device.