I want to use avarice in version 2.9 with the JTAGICE mkII from Atmel in
conjunction with an Atmel 1281. Unfortunately the synchronization fails after a
few seconds. What can be the reason for this. Maybe a program bug?
Please have a look at the output of the command line:
~$ avarice --mkII --jtag usb -d -R --jtag-bitrate 125 :4243
AVaRICE version 2.9, Sep 19 2009 01:29:51
Found JTAG ICE, serno: 07000000560E
JTAG config starting.
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 26 04 00 ff 26 04 01 07 00 00 00 56 0e 4a 54 41 47 49 43 45 6d
6b 49 49 00
recv: 0x6d
recv: 0x8a
CRC OK
Got message seqno 0 (command_sequence == 0)
response: 86 01 FF 26 04 00 FF 26 04 01 07 00 00 00 56 0E 4A 54 41 47 49 43 45
6D 6B 49 49 00
Found a device: JTAGICEmkII
Serial number: 07:00:00:00:56:0e
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
boot-loader FW version: 255
firmware version: 4.38
hardware version: 0
S_MCU:
boot-loader FW version: 255
firmware version: 4.38
hardware version: 1
command[0x02, 1]: 02 13 01
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[0x02, 1]: 02 03 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
command[0x0a, 1]: 0A 01
recv: 0x1b
recv: 0x03
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read: 80
recv: 0xa2
recv: 0x88
CRC OK
Got message seqno 3 (command_sequence == 3)
response: 80
Automatic device detection:
command[0x03, 1]: 03 0E
recv: 0x1b
recv: 0xff
recv: 0xff
recv: 0x06
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 6 bytes
read: e0 45 3d 00 00 00
recv: 0x45
recv: 0x0d
CRC OK
Got message seqno 65535 (command_sequence == 4)
got asynchronous event: 0xe0
recv: 0x1b
recv: 0x04
recv: 0x00
recv: 0x05
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 5 bytes
read: 81 3f 40 70 09
recv: 0x5d
recv: 0xfd
CRC OK
Got message seqno 4 (command_sequence == 4)
response: 81 3F 40 70 09
JTAG id = 0x970403F : Ver = 0x0 : Device = 0x9704 : Manuf = 0x1f
Reported JTAG device ID: 0x9704
Configured for device ID: 0x9704 atmega1281
command[0x0c, 1]: 0C FF FF FF F9 FF 3D B9 F8 00 00 00 00 00 00 00 00 FF FF 1F
E0 FF 1D A9 F8 00 00 00 00 00 00 00 00 73 FF 3F FF F7 3F F7 3F F7 3F 5F 3F 37
37 36 00 00 00 00 00 FF 0F 00 00 F7 3F 36 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 73 FF 3F F8 F7 3F F7 3F F7 3F 5F 2F 36
36 36 00 00 00 00 00 FF 0F 00 00 F7 3F 36 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 31 57 3B 00 01 08 00 FE 00 00 36 01 00
00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3E 3D 00 02 00 00 00 00 00 01 00 00 02 00 00 00 3C 1F 00
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
JTAG config complete.
Preparing the target device for On Chip Debugging.
command[0x02, 1]: 02 07 FF
recv: 0x1b
recv: 0x06
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read: 80
recv: 0xc3
recv: 0x1f
CRC OK
Got message seqno 6 (command_sequence == 6)
response: 80
command[0x14, 1]: 14
recv: 0x1b
recv: 0x07
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read: 80
recv: 0x7c
recv: 0x9e
CRC OK
Got message seqno 7 (command_sequence == 7)
response: 80
jtagRead
command[0x05, 1]: 05 B3 01 00 00 00 00 00 00 00
recv: 0x1b
recv: 0x08
recv: 0x00
recv: 0x02
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 2 bytes
read: 82 ff
recv: 0xfb
recv: 0xbb
CRC OK
Got message seqno 8 (command_sequence == 8)
response: 82 FF
Disabling lock bits:
LockBits -> 0xff
Enabling on-chip debugging:
jtagRead
command[0x05, 1]: 05 B2 03 00 00 00 00 00 00 00
recv: 0x1b
recv: 0x09
recv: 0x00
recv: 0x04
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 4 bytes
read: 82 ff 19 ff
recv: 0x87
recv: 0x2f
CRC OK
Got message seqno 9 (command_sequence == 9)
response: 82 FF 19 FF
Extended Fuse byte -> 0xff
High Fuse byte -> 0x19
Low Fuse byte -> 0xff
command[0x15, 1]: 15
recv: 0x1b
recv: 0x0a
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read: 80
recv: 0xa1
recv: 0x24
CRC OK
Got message seqno 10 (command_sequence == 10)
response: 80
command[0x0b, 1]: 0B 01
recv: 0x1b
recv: 0x0b
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read: 80
recv: 0x1e
recv: 0xa5
CRC OK
Got message seqno 11 (command_sequence == 11)
response: 80
Waiting for input.
recv: 0x1b
recv: 0xff
recv: 0xff
recv: 0x06
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 6 bytes
read: e0 00 00 00 00 00
recv: 0x4e
recv: 0x2d
CRC OK
command[0x02, 1]: 02 09 00
recv: 0x1b
recv: 0x0c
recv: 0x00
recv: 0x01
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 1 bytes
read: 80
recv: 0x10
recv: 0x39
CRC OK
Got message seqno 12 (command_sequence == 12)
response: 80
command[0x0b, 1]: 0B 01
recv: 0x1b
recv: 0xff
recv: 0xff
recv: 0x06
recv: 0x00
recv: 0x00
recv: 0x00
recv: 0x0e
sDATA: reading 6 bytes
read: e0 00 00 00 00 00
recv: 0x4e
recv: 0x2d
CRC OK
Got message seqno 65535 (command_sequence == 13)
got asynchronous event: 0xe0
recv: timeout
command[0x0b, 2]: 0B 01
recv: timeout
command[0x0b, 3]: 0B 01
recv: timeout
command[0x0b, 4]: 0B 01
recv: timeout
Resetting EPs...
command[0x0b, 5]: 0B 01
recv: timeout
Resetting EPs...
command[0x0b, 6]: 0B 01
recv: timeout
Resetting EPs...
command[0x0b, 7]: 0B 01
recv: timeout
Resetting EPs...
command[0x0b, 8]: 0B 01
recv: timeout
Resetting EPs...
command[0x0b, 9]: 0B 01
recv: timeout
Resetting EPs...
command[0x0b, 10]: 0B 01
recv: timeout
Resetting EPs...
JTAG ICE: Cannot synchronise
Thanks in advance
Konrad
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
avarice-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avarice-user