Hi,
I am trying to move from ATMega to xMega, and I am working with an 
XMega-A1 Xplained board and a JtagICE MkII (firmware 7.36) . I am using 
it under Win7 64bit (8Gb i5-2520 @ 2.5Ghz).
What works:
debugging with gdb using Jtag.
What does not work:
debugging with gdb using PDI.
programming the flash memory from a hex file (AvrDude work OK for this).

I get a 'Cannot synchronise' message in both cases, I have attached a 
dump of a '-d' run of avarice trying to program the flash memory:
avarice -x -2 -j usb -P atxmega128a1 -e -p -f 
/Projects/XMega/test/Debug/test.hex
I have tried various options, no change in the behavior. Anyone got an 
idea what is going wrong?
Br,
Philip
---------------------------------------------------------------------------------------------------------
Found JTAG ICE, serno: 00B0000024B9
Attempting synchronisation at bitrate 19200

command[0x01, 1]: 01
recv: 0x1b
recv: 0x00
recv: 0x00
recv: 0x1c
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 28 bytes
read:  86 01 ff 24 07 00 ff 24 07 01 00 b0 00 00 24 b9 4a 54 41 47 49 43 
45 6d 6b 49 49 00
recv: 0x9a
recv: 0x30
CRC OK
Got message seqno 0 (command_sequence == 0)
response: 86 01 FF 24 07 00 FF 24 07 01 00 B0 00 00 24 B9 4A 54 41 47 49 
43 45 6D 6B 49 49 00
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
   boot-loader FW version:        255
   firmware version:              7.36
   hardware version:              0
S_MCU:
   boot-loader FW version:        255
   firmware version:              7.36
   hardware version:              1

command[0x02, 1]: 02 03 05
recv: 0x1b
recv: 0x01
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  80
recv: 0xcd
recv: 0x83
CRC OK
Got message seqno 1 (command_sequence == 1)
response: 80

command[0x0a, 1]: 0A 01
recv: 0x1b
recv: 0x02
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  80
recv: 0x1d
recv: 0x09
CRC OK
Got message seqno 2 (command_sequence == 2)
response: 80
recv: 0x1b
recv: 0xff
recv: 0xff
recv: 0x08
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 8 bytes
read:  e0 00 00 01 00 40 00 00
recv: 0x25
recv: 0x1b
CRC OKAutomatic device detection:
command[0x03, 1]: 03 0E
recv: 0x1b
recv: 0x03
recv: 0x00
recv: 0x05
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 5 bytes
read:  81 3f c0 74 79
recv: 0xce
recv: 0x67
CRC OK
Got message seqno 3 (command_sequence == 3)
response: 81 3F C0 74 79
JTAG id = 0x7974C03F : Ver = 0x7 : Device = 0x974c : Manuf = 0x1f
Looking for device: atxmega128a1

command[0x36, 1]: 36 02 00 2F 00 00 80 00 00 00 82 00 00 00 8C 00 20 00 
8F 00 27 00 8F 00 00 04 8E 00 00 02 8E 00 00 00 00 01 00 00 02 00 00 20 
00 02 00 08 20 C0 01 90 00
recv: 0x1b
recv: 0x04
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  80
recv: 0xac
recv: 0x14
CRC OK
Got message seqno 4 (command_sequence == 4)
response: 80

command[0x14, 1]: 14
recv: 0x1b
recv: 0x05
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  80
recv: 0x13
recv: 0x95
CRC OK
Got message seqno 5 (command_sequence == 5)
response: 80

command[0x13, 1]: 13
recv: 0x1b
recv: 0x06
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x9b
recv: 0x91
CRC OK
Got message seqno 6 (command_sequence == 6)
response: AA

command[0x13, 2]: 13
recv: 0x1b
recv: 0x07
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x24
recv: 0x10
CRC OK
Got message seqno 7 (command_sequence == 7)
response: AA

command[0x13, 3]: 13
recv: 0x1b
recv: 0x08
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x96
recv: 0xa1
CRC OK
Got message seqno 8 (command_sequence == 8)
response: AA

command[0x13, 4]: 13
recv: 0x1b
recv: 0x09
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x29
recv: 0x20
CRC OK
Got message seqno 9 (command_sequence == 9)
response: AA

command[0x13, 5]: 13
recv: 0x1b
recv: 0x0a
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0xf9
recv: 0xaa
CRC OK
Got message seqno 10 (command_sequence == 10)
response: AA

command[0x13, 6]: 13
recv: 0x1b
recv: 0x0b
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x46
recv: 0x2b
CRC OK
Got message seqno 11 (command_sequence == 11)
response: AA

command[0x13, 7]: 13
recv: 0x1b
recv: 0x0c
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x48
recv: 0xb7
CRC OK
Got message seqno 12 (command_sequence == 12)
response: AA

command[0x13, 8]: 13
recv: 0x1b
recv: 0x0d
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0xf7
recv: 0x36
CRC OK
Got message seqno 13 (command_sequence == 13)
response: AA

command[0x13, 9]: 13
recv: 0x1b
recv: 0x0e
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x27
recv: 0xbc
CRC OK
Got message seqno 14 (command_sequence == 14)
response: AA

command[0x13, 10]: 13
recv: 0x1b
recv: 0x0f
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read:  aa
recv: 0x98
recv: 0x3d
CRC OK
Got message seqno 15 (command_sequence == 15)
response: AA
AVaRICE version 2.12, Dec 12 2011 15:48:09

Defaulting JTAG bitrate to 250 kHz.

JTAG config starting.
Found a device: JTAGICEmkII
Serial number:  00:b0:00:00:24:b9
Reported JTAG device ID: 0x974C
Configured for device ID: 0x974C atxmega128a1 -- Matched with atxmega128a1
JTAG config complete.
Erasing program memory.
JTAG ICE: Cannot synchronise
AVaRICE version 2.12, Dec 12 2011 15:48:09

Defaulting JTAG bitrate to 250 kHz.

---------------------------------------------------------------------------------------------------------

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to