Poll / Advice (PDI, JTAG or both)

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

Greets out to all Freaks!

I am adding the final touches on an XMega board that has an XMega384 with all pins broken out to breadboard pins. I intend to make 100 units and possibly break even selling them.

I have a shrouded PDI port installed, a clock oscillator module, and a jumper that allows selection of a user added xtal as well.

My question / poll is this...

What other programming methods are XMega owners using? I read about JTAG here and there but never seen anyone use it. So my open poll will be...

What methods / programmer do you use to program an XMega?

I will add my answer : I use only the AVRISP-II with PDI. Don't ever plan to use JTAG.

Cheers,
Brad

I Like to Build Stuff : http://www.AtomicZombie.com

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

Hi Brad,

I also use the AVR ISP mkII.

I also use a little "no-name" PDI board.

I've never used JTAG.

JC

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

I plan to use STK600 or Dragon for PDI. But I need to upgrade both (firmware-wise) when I use AS6. And I am still using AS4. Can't handle so many new versions / improvements at once ;)
(typing this on a new laptop, Win7, and that's already hard enough. It's like with old jeans: the new one looks nice, but the old and ragged feels much better ...)

A GIF is worth a thousend words   They are called Rosa, Sylvia, Tessa and Tina, You can find them https://www.linuxmint.com/

Dragon broken ? http://aplomb.nl/TechStuff/Dragon/Dragon.html for how-to-fix tips

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

I only use JTAG for programming and debugging. Mostly use the JTAGICE 3 module, but also have the JTAGICE MK II unit as well. You should include the JTAG interface connector for completeness.
Just my thoughts.

Jerry

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

JTAG and PDI, including "a little "no-name" PDI board" .....

Of course for smaller Xmegas you don't have a choice as they are PDI only.

You should be able to turn this thread into a REAL poll.

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 responses.

Since I am breaking out all pins (except for PR0,PR1) to breadboard pins, would it be easy enough for JTAG users to jack in that way? I am not familiar with JTAG, but there seems to be several header types. Maybe it is not necessary to add headers if all pins are heading to the breadboad? Not sure on this one.

Brad

I Like to Build Stuff : http://www.AtomicZombie.com

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

Quote:
there seems to be several header types
There is only one Atmel JTAG header type, it is otherwise EXTREMELY painful and error prone to use the "squid cable" for JTAG.

Attachment(s): 

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Thanks, I have seen that one before. I guess it is nothing more than a connection to certain IO pins, so it won't affect my breadboard connector when JTAG is disabled. I have all 48 IO running to an inline pin header.

Makes sense to add it, since the cost of a 2x5 header is only pennies.

Thanks for the advices.

Brad

I Like to Build Stuff : http://www.AtomicZombie.com

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

Quote:
the cost of a 2x5 header is only pennies
Even cheaper if you just provide the holes for it and the user puts the connector in if required. :wink:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
the cost of a 2x5 header is only pennies
Even cheaper if you just provide the holes for it and the user puts the connector in if required. :wink:

Yes, the perfect solution, thanks.

Brad

I Like to Build Stuff : http://www.AtomicZombie.com

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

I can't see the point of JTAG on XMEGA because you can do everything over PDI. The only reason to use JTAG is if you have an older programmer that doesn't support debugging over PDI.

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

But why do you want the pins broken

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

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

I wonder what percentage of XMega users do not have PDI programming ability? If it was less than 10% then I would not sacrifice board space for the header. Is the PDI interface going to be the dominant AVR programming method over the next few years?

I Like to Build Stuff : http://www.AtomicZombie.com

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

Quote:

I wonder what percentage of XMega users do not have PDI programming ability?

Me. I have a JTAGICEmkII but it's a revision A so cannot do PDI for some reason. I suppose I could use the Dragon if push came to shove though.

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

Quote:
Is the PDI interface going to be the dominant AVR programming method over the next few years?

The only ones who can answer that with any degree of certainty are those who work for Atmel, and although several of them post on AVRFreaks occassionally, I doubt any of them will touch this topic.

Clearly, however, the PDI interface is "the" interface for the Xmega line-up, and all of the Xmega chips include this interface.

One might reasonably expect future Xmega development to be focused on silicon bug eradication and further product line expansion, (Xtiny's, Custom Xmegas for large volume purchasers, and further development of new modules, (such as the USB module in the more recent releases)), rather than changing the programming interface, and making everyone's current programmers obsolete for future chips.

I'd certainly include the PDI interface.

JC

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

I would compare PDI with DW but possibly a lot faster/better.

JTAG has provision for 2 way comms and maybe a lot faster? Don't know, I'm not a speed freak anyway.
Also chaining and other JTAG features which I have never used.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Well, with DipTrace, adding the JTAG took all of 60 seconds, and the auto-router had no issues with the extra header. Problem solved.

Now I have to get a few made and see if they work!

Cheers,
Brad

I Like to Build Stuff : http://www.AtomicZombie.com

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

Nice looking board!

Two thoughts, (neither of which you asked for):

You might want to consider a separate ground plane under the crystal, see Atmel Ap Note 042.

Additionally, you might want to consider adding an inductor, (LC), for the AVcc feedline from Vcc. This helps decrease the noise on the Analog power bus, and improves the ADC performance, (and Comparator, and DAC, etc.). Again, the same Ap Note applies.

BTW, this is a classic case of do as I say, not as I do. But I think it is good to "violate" the rules knowning, rather than blindly.

JC

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

Quote:
Nice looking board!
Huh? I can't see anything but a broken link.

edit as soon as I complained the PCB appeared, it pays to complain.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly