Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

xmega programming

xmega programming

2010-08-31 by Steve Hodge

I am thinking of migrating up from mega series to xmega.  It's not clear to
me, however, if you can still program them in the "traditional" ISP way.
There seems to be something called "PDI" now, but still using a 6-pin
connection.  It's pretty clear you can still do it through JTAG, so that's
not an issue.  I'd appreciate it if someone could explain in a nutshell PDI
vs old ISP.  Thanks, Steve.
 

__________ Information from ESET Smart Security, version of virus signature
database 5413 (20100831) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Re: [AVR-Chat] xmega programming

2010-08-31 by John Samperi

At 07:33 AM 1/09/2010, you wrote:
>I'd appreciate it if someone could explain in a nutshell PDI
>vs old ISP.

PDI uses 1 dedicated pin + reset so there is no "wasted" pins,
ISP uses 3 SPI pins + reset.

PDI can also do debugging if you have the right tool
like a JTAG Mk2 of later types.

Remember the Xmegas do not run at 5V.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

RE: [AVR-Chat] xmega programming

2010-09-01 by Steve Hodge

Thanks, John.  I have both an Atmel STK500 and JTAG Mk2, and both have 2x3
and 2x5 headers on them for programming.    I presume the 2 PDI pins should
map to 2 pins on each of these headers, but the manuals for both of these
don't mention PDI at all.   How does one connect it up?   Is there any way
to use the old ISP with xmega's?   Steve
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of John Samperi
Sent: Tuesday, August 31, 2010 2:43 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] xmega programming

 

  

At 07:33 AM 1/09/2010, you wrote:
>I'd appreciate it if someone could explain in a nutshell PDI
>vs old ISP.

PDI uses 1 dedicated pin + reset so there is no "wasted" pins,
ISP uses 3 SPI pins + reset.

PDI can also do debugging if you have the right tool
like a JTAG Mk2 of later types.

Remember the Xmegas do not run at 5V.

Regards

John Samperi



 



[Non-text portions of this message have been removed]

Re: [AVR-Chat] xmega programming

2010-09-01 by Bob Paddock

On Tue, Aug 31, 2010 at 8:20 PM, Steve Hodge <steve@terrafirma.us> wrote:

>
>
> Thanks, John. I have both an Atmel STK500 and JTAG Mk2, and both have 2x3
> and 2x5 headers on them for programming. I presume the 2 PDI pins should
> map to 2 pins on each of these headers, but the manuals for both of these
> don't mention PDI at all. How does one connect it up? Is there any way
> to use the old ISP with xmega's? Steve
>

The Tool section of the AVRStudio Help section shows the PDI to SPI mapping.
Alas can't run AVRStudio on this Linux box or I'd copy and past that
section.

There is no way to use the old ISP with an XMega.  No way to use the STK500
that I know of, must use the STK600, JTAG MK-II or the AVRISP pod, which
will do PDI if it is not to old.


-- 
http://blog.softwaresafety.net/
http://www.designer-iii.com/
http://www.wearablesmartsensors.com/


[Non-text portions of this message have been removed]

RE: [AVR-Chat] xmega programming

2010-09-01 by Steve Hodge

Thanks.  That's all the help I needed.   At this point, anyway.  Steve
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Bob Paddock
Sent: Tuesday, August 31, 2010 5:36 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] xmega programming

 

  

On Tue, Aug 31, 2010 at 8:20 PM, Steve Hodge <steve@terrafirma.us
<mailto:steve%40terrafirma.us> > wrote:

>
>
> Thanks, John. I have both an Atmel STK500 and JTAG Mk2, and both have 2x3
> and 2x5 headers on them for programming. I presume the 2 PDI pins should
> map to 2 pins on each of these headers, but the manuals for both of these
> don't mention PDI at all. How does one connect it up? Is there any way
> to use the old ISP with xmega's? Steve
>

The Tool section of the AVRStudio Help section shows the PDI to SPI mapping.
Alas can't run AVRStudio on this Linux box or I'd copy and past that
section.

There is no way to use the old ISP with an XMega. No way to use the STK500
that I know of, must use the STK600, JTAG MK-II or the AVRISP pod, which
will do PDI if it is not to old.

-- 
http://blog.softwaresafety.net/
http://www.designer-iii.com/
http://www.wearablesmartsensors.com/






[Non-text portions of this message have been removed]

RE: [AVR-Chat] xmega programming

2010-09-01 by John Samperi

At 10:20 AM 1/09/2010, you wrote:
>How does one connect it up?   Is there any way
>to use the old ISP with xmega's?

The AVRISP Mk2 will do PDI programming for Xmegas.
See AVRISP mkII User Guide in the Tools help of Studio
under 1.5 Supported Devices. Also 2.5.2 PDI Interface
show the wiring for PDI. Please note that PDI seems
to be using 0.050" pitch connector and you can buy an
adaptor for it. Mine came with the JTAG Mk2.

The info for the JTAG Mk2 can also be found in the help
files under "Connecting to a PDI target " and
Figure 4.4. PDI header pinout.












Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

RE: [AVR-Chat] xmega programming

2010-09-01 by Dave McLaughlin

Don't use the STK500 to programme it, even if it could. As I recall, the
STK500 is 5V operation only and will likely damage the XMEGA running on the
lower voltages.
 
Dave.
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Steve Hodge
Sent: 01 September 2010 07:20
To: AVR-Chat@yahoogroups.com
Subject: RE: [AVR-Chat] xmega programming
 
  
Thanks, John. I have both an Atmel STK500 and JTAG Mk2, and both have 2x3
and 2x5 headers on them for programming. I presume the 2 PDI pins should
map to 2 pins on each of these headers, but the manuals for both of these
don't mention PDI at all. How does one connect it up? Is there any way
to use the old ISP with xmega's? Steve




[Non-text portions of this message have been removed]

Re: [AVR-Chat] xmega programming

2010-09-01 by H. Carl Ott

On Tue, Aug 31, 2010 at 11:35 PM, Dave McLaughlin <
dave_mclaughlin@nerdshack.com> wrote:

>  Don't use the STK500 to programme it, even if it could. As I recall, the
> STK500 is 5V operation only and will likely damage the XMEGA running on the
> lower voltages.
>
> Dave.
>

The STK500 has voltage translators and handles low voltage just fine. But it
does not do PDI (AFAIK).

 Yet another PDI option is Dean Camera's open source AVRISP clone.
http://www.fourwalledcubicle.com/AVRISP.php


-carl


[Non-text portions of this message have been removed]

Re: [AVR-Chat] xmega programming

2010-09-01 by Leon Heller

On 01/09/2010 01:20, Steve Hodge wrote:
> Thanks, John.  I have both an Atmel STK500 and JTAG Mk2, and both have 2x3
> and 2x5 headers on them for programming.    I presume the 2 PDI pins should
> map to 2 pins on each of these headers, but the manuals for both of these
> don't mention PDI at all.   How does one connect it up?   Is there any way
> to use the old ISP with xmega's?   Steve


You need the current JTAG Mk2. The original one doesn't support it.

Leon
-- 
Leon Heller
G1HSM

Re: xmega programming

2010-09-02 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Steve Hodge" <steve@...> wrote:
>My JTAG Mk2 has "20071109" on its sticker, presumably
>that means Nov 2007.
That number sounds like an ATAVRISP2 number.  My ATAVRISPISP2 has the number 20071005 and it can do PDI programming (after a firmware update, of course).

My JTAGICE MkII has a serial number beginning with A09.  It, too, can do PDI programming after updating its firmware.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Re: xmega programming

2010-09-02 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "Steve Hodge" <steve@...> wrote:
> Well, it's definitely on a JTAGICE MkII.
>It sounds though that I don't have to be concerned
>about having the correct version on the JTAGICE MkII to
>to PDI, because I can just upgrade the firmware with AVR Studio.
>Is that correct?
If you have a new enough hardware version, yes.  On the Help menu in AVR Studio, select "AVR Tools User Guide".  Then select JTAGICE MkII and a help text viewer will appear.  Search for PDI and then select one of the "Hardware Revisions" entries that is found.  There, you'll find an explanation of which hardware revisions will and won't support PDI programming and how to determine which you have.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

RE: [AVR-Chat] xmega programming

2010-09-02 by Steve Hodge

Leon, do you know just how current current needs to be?  My JTAG Mk2 has
"20071109" on its sticker, presumably that means Nov 2007.   Steve
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Leon Heller
Sent: Wednesday, September 01, 2010 2:33 AM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] xmega programming

 

  

You need the current JTAG Mk2. The original one doesn't support it.

Leon
-- 
Leon Heller
G1HSM



[Non-text portions of this message have been removed]

RE: [AVR-Chat] Re: xmega programming

2010-09-02 by Steve Hodge

Well, it's definitely on a JTAGICE MkII.   It sounds though that I don't
have to be concerned about having the correct version on the JTAGICE MkII to
do PDI, because I can just upgrade the firmware with AVR Studio.  Is that
correct?   Steve.
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Don Kinzer
Sent: Thursday, September 02, 2010 8:35 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: xmega programming

 

  



--- In AVR-Chat@yahoogroups.com <mailto:AVR-Chat%40yahoogroups.com> , "Steve
Hodge" <steve@...> wrote:
>My JTAG Mk2 has "20071109" on its sticker, presumably
>that means Nov 2007.
That number sounds like an ATAVRISP2 number. My ATAVRISPISP2 has the number
20071005 and it can do PDI programming (after a firmware update, of course).

My JTAGICE MkII has a serial number beginning with A09. It, too, can do PDI
programming after updating its firmware.

Don Kinzer
ZBasic Microcontrollers



 



[Non-text portions of this message have been removed]

Re: [AVR-Chat] xmega programming

2010-09-02 by Leon Heller

On 02/09/2010 15:55, Steve Hodge wrote:
> Leon, do you know just how current current needs to be?  My JTAG Mk2 has
> "20071109" on its sticker, presumably that means Nov 2007.   Steve

I'm not sure, I've got one of the old ones. You can tell from the LEDs 
that come on when it is connected, but I can't remember the details. 
It's been discussed on the AVR Freaks forum a couple of times.

Leon
-- 
Leon Heller
G1HSM

Re: [AVR-Chat] Re: xmega programming

2010-09-02 by Leon Heller

On 02/09/2010 16:50, Steve Hodge wrote:
> Well, it's definitely on a JTAGICE MkII.   It sounds though that I don't
> have to be concerned about having the correct version on the JTAGICE MkII to
> do PDI, because I can just upgrade the firmware with AVR Studio.  Is that
> correct?   Steve.

No, you need the current model.

Leon
-- 
Leon Heller
G1HSM

Re: [AVR-Chat] Re: xmega programming

2010-09-02 by Jim Hatley

My AVRISP mk2 says 20080801 and programs xmega chips just fine.

From the command line you must have the -md option specified for PDI programming.

Jim
Show quoted textHide quoted text
  ----- Original Message ----- 
  From: Leon Heller 
  To: AVR-Chat@yahoogroups.com 
  Sent: Thursday, September 02, 2010 9:44 AM
  Subject: Re: [AVR-Chat] Re: xmega programming


    
  On 02/09/2010 16:50, Steve Hodge wrote:
  > Well, it's definitely on a JTAGICE MkII. It sounds though that I don't
  > have to be concerned about having the correct version on the JTAGICE MkII to
  > do PDI, because I can just upgrade the firmware with AVR Studio. Is that
  > correct? Steve.

  No, you need the current model.

  Leon
  -- 
  Leon Heller
  G1HSM


  

[Non-text portions of this message have been removed]

RE: [AVR-Chat] Re: xmega programming

2010-09-02 by Steve Hodge

Thanks, I did that and it looks like I'm good to go for PDI with my JTAGICE
MkII.   Steve
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Don Kinzer
Sent: Thursday, September 02, 2010 9:04 AM
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: xmega programming

 

  

--- In AVR-Chat@yahoogroups.com <mailto:AVR-Chat%40yahoogroups.com> , "Steve
Hodge" <steve@...> wrote:
> Well, it's definitely on a JTAGICE MkII.
>It sounds though that I don't have to be concerned
>about having the correct version on the JTAGICE MkII to
>to PDI, because I can just upgrade the firmware with AVR Studio.
>Is that correct?
If you have a new enough hardware version, yes. On the Help menu in AVR
Studio, select "AVR Tools User Guide". Then select JTAGICE MkII and a help
text viewer will appear. Search for PDI and then select one of the "Hardware
Revisions" entries that is found. There, you'll find an explanation of which
hardware revisions will and won't support PDI programming and how to
determine which you have.

Don Kinzer
ZBasic Microcontrollers





[Non-text portions of this message have been removed]

RE: [AVR-Chat] Re: xmega programming

2010-09-02 by Cat C

What about the Dragon?

Can it program the XMegas, either JTAG or some other mode?

 

Thanks,

 

Cat
 		 	   		  

[Non-text portions of this message have been removed]

RE: [AVR-Chat] Re: xmega programming

2010-09-19 by John Samperi

At 07:07 AM 3/09/2010, you wrote:
>What about the Dragon?
>Can it program the XMegas, either JTAG or some other mode?

It depends on the version of Studio used. But all the info is at
your fingertips in Studio's help files under supported devices.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

RE: [AVR-Chat] Re: xmega programming

2010-09-20 by Cat C

Thank you John.

 

I think it can but never tried.

I was more curious why nobody mentions it...

 

Thanks,

 

Cat
 
> To: AVR-Chat@yahoogroups.com
> From: samperi@ampertronics.com.au
> Date: Mon, 20 Sep 2010 07:28:34 +1000
> Subject: RE: [AVR-Chat] Re: xmega programming
> 
> At 07:07 AM 3/09/2010, you wrote:
> >What about the Dragon?
> >Can it program the XMegas, either JTAG or some other mode?
> 
> It depends on the version of Studio used. But all the info is at
> your fingertips in Studio's help files under supported devices.
> 
> Regards
> 
> John Samperi
> 
> ********************************************************
> Ampertronics Pty. Ltd.
> 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
> Tel. (02) 9674-6495 Fax (02) 9674-8745
> Website http://www.ampertronics.com.au
> *Electronic Design * Custom Products * Contract Assembly
> ********************************************************
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
 		 	   		  

[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.