Xmega -> Dragon

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

Hi,

I'm completly new to the X world. I just buy the Dragon and the Xplained board, I connect the jtag connector from one board to the other and the communication don't look to go fine, I'm unable to check the fuse bit I got a error, but it's weard I can check the target voltage.

Any help will be welcome
Thanks
Sylvain Bissonnette

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

How long is the ribbon cable? Keep it short 100-150mm max.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

My cable is exactly 15cm, I will make another one more short I will be back tomorow with the answer

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

I just try with a 7cm cable and it's not work, but why I can read target voltage?, I had try in JTAG and PDI mode and the result is the same.

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

I had try with my AVRISP mk2 and I can read and program the fusebit in PDI mode, But with the dragon in PDI mode it dosen't work. Any clue for me?

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

Quote:
But with the dragon in PDI mode it dosen't work
I think the Dragon may only supports a limited number of Xmegas in PDI mode, I could never get it to work.

Others seem to need a pulldown resistor on the data line or something.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

IIRC, an XMEGA document states that the PDI signals (clock, data) have to be symmetric within some limit(s) (w.r.t. rise/fall-time, setup/hold-time); John's pulldown statement could be a hint.
Since the PDI data is bi-directional could try an active pull-up (I assume the Dragon has a passive pull-up) via a bidirectional level translator on the clock and data signals though it may be quicker to reduce the PDI clock frequency and try again (give time for the pull-up to complete).
For JTAG (uni-directional), there's the Dragonhide (line drivers, increased ESD capability) and http://www.aplomb.nl/TechStuff/Dragon/Dragon.html for JTAG and ISP.
AVR Dragon PDI programming on XMEGA32A4 fix

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

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

I still need your help, I forget the PDI mode, I only try in JTAG mode and it's not work, I use a Dragon and a Xplaine both are from Atmel. Normaly there is just a ribon cable to attach?? and I had try to connect the ribon in any configuration.....

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

I guess that board ONLY uses the 'Xmega128A1, which isn't supported for Dragon PDI at all (Read the Studio tools guide ) .

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

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

I have used JTAG with the older Xplain with both the Dragon and JTAG Mk2.

However now I can't access the Xmega with either of them in JTAG mode. I can access it in PDI mode with the JTAG Mk2. No idea what's going on! :roll:

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:
to reduce the PDI clock frequency

I'm not sure how one does that.

I always had very sporatic results with the Dragon and Xmega boards. The AVRISPmkII has always worked fine.

(That doesn't give you JTAG support, however)

JC

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

With my board above I remembered that I turned JTAG off as I needed the extra 4 pins. :oops: Turned it back on with PDI and now it works again with both.

Any pills for dementia doc? :roll:

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

DocJC wrote:
I'm not sure how one does that (reduce PDI clock frequency).
AVRDUDE -B option for some programmers:
http://www.nongnu.org/avrdude/user-manual/avrdude_4.html#Option-Descriptions
The voltage translation method appears to be important for reliable performance;
some have no brief pulls (pulls speed the transitions), some have brief active pull-ups, and some brief active pull-ups and pull-downs.
The Dragon probably has an adequate pull-down for short cables but maybe a too weak pull-up for PDI data.

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

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

Ah, thank you. I'd seen that mentioned before, and did not understand the reference.

I've only used AVR Studio with the STK600, Dragon, and AVR ISP mkII, and none of them has on option to slow down the PDI interface.

Additionally, the only reference to PDI speed I recall is that there is a MINIMUM PDI data rate which must be maintained, or the PDI interface automatically disconnects to the target Xmega.

Learn something new every day...

John, I'll send you a prescription for the dementia pills as soon as I remember where I put my script pad.

JC

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

Good and bad news, my problem is solve, I had order another dragon and it's work... Did you think I can damage the dragon by connecting the ribon cable in revers side?

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

Other news, when I connect my new dragon, I had connect first the Jtag to the dragon, after I connect the usb to the dragon and AVR Studio ask me for a upgrade, I did it and everything work fine I can read all fuse bits. I take the "defect" dragon and connect first the Jtag and after the USB and AVR Studio ask me for a upgrade (Never Studio ask me for a upgrade before when I connect the USB first) I did it and it's now work... I don't understand but now it's work

Yours truly,
Sylvain Bissonnette
www.microsyl.com

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

Bet you're glad that's done (for now ;-)
Could have a Dragon as programmer for automated testing and the other Dragon for development (debugger or programmer).
Consider hardening a/all Dragon(s); it's quicker to replace a known translator/buffer/isolator than try to repair a Dragon.

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

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

First Dragon needed the upgrade so it would work with the xmega128A1, it couldn't w/o it . Who knows why it didn't ask for the upgrade . :? Send the 2nd one back quick and get your money ! :D

1) Studio 4.18 build 716 (SP3)
2) WinAvr 20100110
3) PN, all on Doze XP... For Now
A) Avr Dragon ver. 1
B) Avr MKII ISP, 2009 model
C) MKII JTAGICE ver. 1

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

PDI and dragons do not work. None of the 3 groups here could get PDI and xmega (several different types) working.

Only JTAG programming is working.

Save the effort, buy an MKII

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

Well, my old Dragon is working for me with my 32A4 (which is PDI only). I had some problems with series resistors, but it's working well for me now with 1K ohms on the clock and between 33 and 200 ohms on the data line. 1K was too much for the data line.

Of course, my target Vcc is 1.8v, which may actually be helping me out more than I realize.