Xmega PDI problem with ATAtmel-ICE

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

I have an Xmega chip I've been using for a year and had no problems with the PDI interface programming it with the Atmel-ICE debugger/programmer. The problem is I accidentally connected the cable to the "SAM" port instead of the "AVR" Port on the ICE. Now Atmel studio will not program the chip. I keep getting:

 

PDI enable failed. Debugger command Activate physical failed.

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

 

Also, the AVR resets, so I think it is not seeing the PDI clock signal and taking the PDI as a standard reset now...

 

Why would Atmel make the SAM and AVR ports the same connector?? Could this have really blew out the PDI lines of my chip?

 

By the way, the chip still works, it is running the old code just fine, I just can't program it now.

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

zacharoni16 wrote:
Why would Atmel make the SAM and AVR ports the same connector??
STK600

Atmel-ICE

Connecting to an SWD Target

http://www.atmel.com/webdoc/GUID-DDB0017E-84E3-4E77-AAE9-7AC4290E5E8B/index.html?GUID-6A4D7A9A-C350-4FDF-BECA-198D23A19E44

The ARM SWD interface is a subset of the JTAG interface, making use of the TCK and TMS pins, which means that when connecting to an SWD device, the 10-pin JTAG connector can technically be used. The ARM JTAG and AVR JTAG connectors are, however, not pin-compatible, so this depends upon the layout of the target board in use. When using an STK600 or a board making use of the AVR JTAG pinout, the AVR connector port on the Atmel-ICE must be used. When connecting to a board, which makes use of the ARM JTAG pinout, the SAM connector port on the Atmel-ICE must be used.

...

zacharoni16 wrote:
Could this have really blew out the PDI lines of my chip?
Yes if I correctly compared the above with the below then PDI data was shorted to GND.

Atmel-ICE

Connecting to a PDI Target

http://www.atmel.com/webdoc/GUID-DDB0017E-84E3-4E77-AAE9-7AC4290E5E8B/index.html?GUID-10BBA72E-7B0F-4533-9E7C-80FC9668C513

 

P.S.

Ones at Tag-Connect have a warning about the Atmel-ICE SAM connector.

Tag-Connect

10-pin Cortex Ribbon Cable 4" length with 50 mil connectors

http://www.tag-connect.com/CORTEXRIBBON10

...

WARNING for ATMEL-ICE users: The Atmel-ICE has it's header pin numbers reversed (standard pin 1 is Atmel-ICE's pin 10). To use our cable with Atmel's reversed pin-number header you'll either need to cut off one a locating lug from one ribbon connector and plug it in backwards, or select the LEMTA option below to order with one of the 10-pin ribbon connectors fitted backwards. If you plug in a standard (correct) Cortex cable you're going to short power and stuff out.

...

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