xmega128a3u flash problem

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

Hi,

 

I have some problem to flash the firmware of my custom board.

I can read the Device signature ont time and after that the mc is not more reachable. (over pdi with an atmelice).

 

If someone has an Idee.

 

Regards,

Alex

Project leader

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

Hi,
I'm new on the forum. I made a custom board with a xmega128a3u. I tried since some days to flash the firmware over PDI with an atmelice. But with avrdude under linux, I can read the signature once and after that I just received an error message :

xxx@i3tux ~ $ sudo avrdude -p x128a3u -c atmelice_pdi -v

avrdude: Version 6.3, compiled on May 21 2017 at 13:45:34
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/moi/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : usb
Using Programmer : atmelice_pdi
avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J41800055455
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
AVR Part : ATxmega128A3U
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
prodsig 0 0 0 0 no 50 50 0 0 0 0x00 0x00
fuse1 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse2 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse4 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse5 0 0 0 0 no 1 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00
data 0 0 0 0 no 0 0 0 0 0 0x00 0x00
eeprom 0 0 0 0 no 2048 32 0 0 0 0x00 0x00
application 0 0 0 0 no 131072 512 0 0 0 0x00 0x00
apptable 0 0 0 0 no 8192 512 0 0 0 0x00 0x00
boot 0 0 0 0 no 8192 512 0 0 0 0x00 0x00
flash 0 0 0 0 no 139264 512 0 0 0 0x00 0x00
usersig 0 0 0 0 no 512 512 0 0 0 0x00 0x00
fuse0 0 0 0 0 no 1 0 0 0 0 0x00 0x00

Programmer Type : JTAGICE3_PDI
Description : Atmel-ICE (ARM/AVR) in PDI mode
ICE hardware version: 0
ICE firmware version: 1.38 (rel. 129)
Serial number : J41800055455
Vtarget : 3.63 V
JTAG clock megaAVR/program: 1000 kHz
JTAG clock megaAVR/debug: 1000 kHz
JTAG clock Xmega: 32 kHz
PDI clock Xmega : 4000 kHz

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9742 (probably x128a3u)

avrdude done. Thank you.

 

 

xxx@i3tux ~ $ sudo avrdude -p x128a3u -c atmelice_pdi -v

 

avrdude: Version 6.3, compiled on May 21 2017 at 13:45:34
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/moi/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : usb
Using Programmer : atmelice_pdi
avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J41800055455
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
AVR Part : ATxmega128A3U
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
prodsig 0 0 0 0 no 50 50 0 0 0 0x00 0x00
fuse1 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse2 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse4 0 0 0 0 no 1 0 0 0 0 0x00 0x00
fuse5 0 0 0 0 no 1 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 0 0 0x00 0x00
data 0 0 0 0 no 0 0 0 0 0 0x00 0x00
eeprom 0 0 0 0 no 2048 32 0 0 0 0x00 0x00
application 0 0 0 0 no 131072 512 0 0 0 0x00 0x00
apptable 0 0 0 0 no 8192 512 0 0 0 0x00 0x00
boot 0 0 0 0 no 8192 512 0 0 0 0x00 0x00
flash 0 0 0 0 no 139264 512 0 0 0 0x00 0x00
usersig 0 0 0 0 no 512 512 0 0 0 0x00 0x00
fuse0 0 0 0 0 no 1 0 0 0 0 0x00 0x00

Programmer Type : JTAGICE3_PDI
Description : Atmel-ICE (ARM/AVR) in PDI mode
ICE hardware version: 0
ICE firmware version: 1.38 (rel. 129)
Serial number : J41800055455
Vtarget : 3.62 V
JTAG clock megaAVR/program: 1000 kHz
JTAG clock megaAVR/debug: 1000 kHz
JTAG clock Xmega: 32 kHz
PDI clock Xmega : 4000 kHz

avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

I check and re-checked the connection. I have a Xplained A1 Dev board, and I don't have any problem to flash it with the atmelice and pdi connection.

Has someone any Idee about this problem??

Project leader

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

moiac wrote:
. I made a custom board

 

So show us the board, schematic and picture

Do you have bypass caps on each and every VCC pin? 

 

 

Jim

 

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

Hi,

thanks that you take time look my question. In attachment I put the schematic. It's not 100% ready, I must add some led and relay, but my first prototype has PDI PIN ready. Like I wrote before I can just read once the signature with avrdude but after that nothing. I try to flash some firmware that I make (it's work on the Xplained A1) but I received always the same error.

Regards,
Alex

Attachment(s): 

Project leader

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

Try removing the 10 K resistor on the Reset\ line.

 

The original Xmega documents noted that the PDI Clock and Data lines should not have any resistors or capacitors attached to them, and that they should have matching impedance.

 

Report back if this makes it work or not.

 

JC

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

No cap on avcc. With just the inductor, i'd be expecting some funky results.