ATxmega8E5 - Problem enter programming mode

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

Hi,
I made a pcb with an ATxmega8E5 but now I'm getting some problems enter in programming mode.

My schematic:

And the error:

I already tried without R1 but can't program it. I double checked the connections. The solder is ok. There is not short between these pins and neither GND and VCC.

What should I check now?

Thank you

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

I've never had good luck using a Dragon and PDI.
There used to be a fair number of Threads about this, but I haven't seen one lately.
Perhaps Atmel made a software change that improved things, perhaps not.
What's odd is that a fair number of people had problems, yet some others had no difficulty; makes it tough to track down.

That said, do you have an alternative PDI programmer? If so, it makes it easy to verify that the PCB works, and the problem is the Dragon.

Likewise, do you have any other known good Xmega PCB's? Once again, if so easy to "verify" that the Dragon is working, at least for that version of Xmega.

Your schematic looks fine.

If you added your location to your Profile then others would know where in the world you are located, and perhaps another Freak could test your PCB with an AVR ISP mkII, and STK600, AVR-One, etc.

JC

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

I had no problems using AVR Dragon with the xmega E5 xplained kit. Could I damage the chip during the solder process? I'll measure the voltage across PDI pins on the E5 Xplained kit and compare against my board.

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

It is good to know that your Dragon worked with the E5 Xplained. That rules out that 1/2 of the problem.

It is unlikely you damaged the chip soldering it.

It is much more likely that you have a bad solder joint somewhere. Perhaps a small solder bridge between a couple of pins, or a pin that is lifted up and isn't really soldered down to the pad.

Check connectivity from the PDI Header to the pins on the micro.

JC

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

Check the AVR Dragon with the E5 Xplained again and the same error :s Tried with a board that has a atmega328p and it worked fine.

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

:) Then your PCB is probably fine!

Figure out how much your time is worth, and then consider buying an Atmel AVR ISP mkII programmer.

It just works, well, with Studio, and about all of the 8-bit uC's. It has a plastic case, and the package includes the USB cable.

There are other PDI programmers, but it sure is nice to have at least one super reliable, known good, programmer.

I think some of the USBasp's programmers on eBay, which cost only a couple of dollars, might also support PDI these days. But I've not used them, or the programming software they use.

There is software to turn an Arduino into an ISP programmer. I'm not an Arduino user and don't know if the PDI interface is now supported or not. Perhaps an Arduino user will chime in.

There are several Threads about modifying a Dragon to get it to work with an Xmega, but I don't think it is worth the time and trouble and hassle to track them down, and try them, for a "might work" solution.

JC

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

The AVR Dragon is working again with the xplained e5 but not with my board. Measuring with the multimeter I have 3v on the data and clock line on my pcb but on xplained e5 data has 0v and only reset has 3v.

Another thing, measuring the voltage with the multimeter it appear to be good but using the multimeter with the continuity it give me a value of 7ohms (that I confirm measuring the resistance) between +3.3v and GND. Is that normal?

PDI signals are routing using vias but they are really close, could it be the problem?

Double check the connections, there is no short, and the connections between PDI pins and connector are ok.

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

I hope that you are looking at the PDI connector from the TOP of the board.

Quote:
Is that normal?
Try reversing the meter pins, but yes you will get some resistance reading between the supply pins.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly