Solved: 32A4 works fine but I cannot program 128A4U (AVR DRAGON)

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

I have created a simple devboard for the XMEGA A4 series micros, I program the board using the AVR DRAGON programmer (PDI interface).

First I tried the XMEGA32A4, it worked without a problem, but now I soldered on an XMEGA128A4U and it doesn't work, I can't get it to program. I tried on multiple boards, so i is fairly unlikely that the part got damaged while soldering.

 

The Target Voltage reads 3.2V, but when I try to read the Device signature I get the following message:

Got error setting up PDI mode: Device is not supported in this emulator mode. Debugger command setParameter failed.

Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device.

 

I attached a screenshot for more details and I also attached the schematic for my devboard!

 

The XMEGA parts are from a reliable source (Mouser.com) so that shouldn't be an issue... I read that the many have problem with the AVR Dragon programmer, but it worked fine for me (I'm running Atmel Studio 7.0 in a Windows 7 virtual machine). What should I try next? How can I get the boards working? Should I try to get a hold of a different programmer?

 

 

Thanks!

Attachment(s): 

Last Edited: Sun. Jan 21, 2018 - 10:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I recall numerous Threads about trying to program Xmegas with Dragons.

IIRC there were several different issues and solutions.

 

The first thing I would do is remove the pull-up resistor on the Reset\ line.

There is an internal pull-up resistor, and the original Xmega documentation, (I've not read the data sheet for your particular chip), said don't put resistors or cap on the reset line, and that the PDI Data and PDI Clock lines are supposed to have a matched impedance, (clearly violated when one adds an external resistor to one of the two lines...).

 

I don't have a recent Dragon manual, but you might also verify that the 128A4U is actually supported by the Dragon.

 

JC

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

sukuwc wrote:
... I program the board using the AVR DRAGON programmer (PDI interface).
AVR Dragon are known to be finicky wrt PDI.

Though for XMEGA E, might try the solution in

https://www.avrfreaks.net/forum/dragon-and-xmega32e5-difficulties-solved by DocJC

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

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

sukuwc wrote:
What should I try next?
A4 to A4U migration guide but I couldn't locate it (does exist for A1 to A1U)

So, schematic checklist it is :

Microchip

AVR1012: XMEGA A Schematic Checklist

http://www.microchip.com//wwwAppNotes/AppNotes.aspx?appnote=en591787

via http://www.microchip.com/wwwproducts/en/atxmega128a4u 

  • add more 100nF on VCC; each VCC has 100nF (XMEGA have excellent pin drive therefore 100nF on each port's VCC)
  • as DocJC stated, remove PDI clock's pull-up resistor
  • PD6 and PD7 are not dual purpose; iow it's either USB or no USB
  • recommendation - USB VBUS - can have up to 10uF on it
  • recommendation - U4 LDO Vout - is 1uF the minimum?  reason - XMEGA challenge voltage regulator stability though L1 10uH does greatly reduce the impulse

Might compare your A4U schematic with a third party's A4U :

http://www.mattairtech.com/images/MT-DB-X4/MT-DB-X4.png

via

MattairTech LLC

MattairTech

Development Boards

MT-DB-X4 Atmel AVR XMEGA 44-pin AU/A/C/D USB development board (ie: ATxmega128a4u)

https://www.mattairtech.com/index.php/development-boards/mt-db-x4.html

 

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

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

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

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

The 220R series resistor solved it. I'm also grateful for all the recommendations by gchapman!

 

Thank you everyone for the quick response, great community!

Cheers!

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

sukuwc wrote:
The 220R series resistor solved it.
Good to read!

PDI clock and/or data?

 

I'm thankful for DocJC proving the concept for I'm not an AVR Dragon operator (AVRJTAGICE2, Atmel-ICE)

 

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

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

220R series resistor on both the clock and data lines (with no pull-up)!