xmega32A4, dragon & avrdude

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

I just got my first xmega32a4 chips in a tqfp44 package and would like to play with them. My PCB will take some weeks to get ready so I want to solder a couple of wires to a chip to play and have some questions:

1) Do I have to connect all Gnd/Vcc pins or a single pair will do ?
2) Programming is using PDI, so connecting reset, PDI, Gnd and Vcc is sufficient ?
3) I'm using dragon (original version) and want to use avrdude on Linux. Will that work ? Will I need specific dragon firmware ? If yes, which one ?

Markus

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

After some experimentation I found answers to my own questions:

1) Connecting just one pair (Gnd=pin8, Vcc=pin9) works fine. Of course if you go beyond a breadboard you should connect all supply pins.

2) Connecting power, reset and PDI is fine to interact via PDI with the dragon programmer 5.10 and an original dragons (firmware 6.16)

3) Using avrdude 5.10 and an original dragons (firmware 6.16) works fine for reading the signature. I have not yet attempted to flash something. The working commandline is:
avrdude -P usb -c dragon_pdi -p x32a4

My main problem was that I had to use the 'dragon_pdi' flag, rtfm did help :-).

Markus

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

After upgrading my avr-gcc installation to the latest level, my first LED blinky did work too, confirming that the toolchain and programming works. Thanks to the .deb package on wrightflyer this was a snap, too.

This xmega32A4U looks like a nice chip, a bit small for breadboarding, though.

Here a picture of the small and chaotic wiring:

Now I'm finished talking to myself on this topic :-).

Markus

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

How come you don't learn how to make your own PCB using UV method ? It's easy for that package and you'd have it up in < 2-3 hrs . It's good enough for prototyping .

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 did PCBs at home in the past, I even still have some spare photo-resist covered bare PCBs (>20 years old...). But I found it always a hassle. You need a good UV source to transfer the PCB picture, the chemistry to develop the photo part, the chemistry to edge the board. All these things have expiry dates, should be properly disposed of afterwards, etc. To get good results you need some experience, too. As result you get a bare copper, single-sided PCB.

If I compare this with the prototype service like those from seeed or itead, where I get a perfect 2-sided PCB with plating, vias, silkscreen etc. then for me getting into homegrown PCB building is not worth the effort. The only downside of those PCBs is that it takes 2-3 weeks to get the PCBs. As it takes me weeks to prepare the schematics, BOM, etc these additional 2-3 weeks are not a big deal for me.

Just this time I got surprised by Atmel, as I got a sample a couple of days after requesting it and could not resists to play immediately.

Markus

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

Personally I'd go with something off this page:

http://www.futurlec.com/SMD_Adap...

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

Yes, Cliff, this is the good solution. Unfortunately it was incompatible with my urge to play right now !

The main driver was also to verify that I do have the necessary tools/setup to program the beast. This is my first xmega with PDI and I might have found out that I need a new programmer or something.

Markus