As Tomek wrote:
> Then I invoked
> $ avarice --edbg --debugwire --ignore-intr :4242
>
>
> AVaRICE version 2.13svn20160229, Mar 3 2016 14:04:24
> JTAG config starting.
> Found a device, serial number: J41800031019
> initJtagBox() failed: JTAG ICE timeout exception
Hmm, so far I tried it on FreeBSD and Linux (Ubuntu 14.04), where it
worked:
% ./src/avarice --edbg --debugwire --ignore-intr :4242
AVaRICE version 2.13svn20160229, Mar 3 2016 21:50:21
JTAG config starting.
Found a device, serial number: ATML2323040200015056
Reported device ID: 0x950F
Configured for device ID: 0x950F atmega328p
JTAG config complete.
Preparing the target device for On Chip Debugging.
Waiting for connection on port 4242.
Here's the trace with --debug:
% ./src/avarice --edbg --debugwire --ignore-intr --debug :4242
AVaRICE version 2.13svn20160229, Mar 3 2016 21:50:21
Found HID PID:VID 0x03eb:0x2145, serno ATML2323040200015056
Probing for HID max. packet size
Setting max. packet size to 64 from DAP_Info
HID thread started
JTAG config starting.
command "sign-on" [0x01, 0x10]
0E 00 00 00 01 10 00
Received 0x81 0x11 0x00 0x06 0x0e 0x00
read: 0e 00 00 01 80 00
Got message seqno 0 (command_sequence == 0)
response: 01 80 00
command "get info (serial number)" [0x00, 0x00]
0E 00 01 00 00 00 00 81
Received 0x81 0x11 0x00 0x1a 0x0e 0x01
read: 0e 01 00 00 81 00 41 54 4d 4c 32 33 32 33 30 34 30 32 30 30 30 31 35 30
35 36
Got message seqno 1 (command_sequence == 1)
response: 00 81 00 41 54 4D 4C 32 33 32 33 30 34 30 32 30 30 30 31 35 30 35 36
Found a device, serial number: ATML2323040200015056
command "get parameter" [0x01, 0x02]
0E 00 02 00 01 02 00 00 00 05
Received 0x81 0x11 0x00 0x0c 0x0e 0x02
read: 0e 02 00 01 84 01 00 01 04 3b 00 00
Got message seqno 2 (command_sequence == 2)
response: 01 84 01 00 01 04 3B 00 00
ICE hardware version: 0
ICE firmware version: 1.04 (rel. 59)
command "set parameter" [0x12, 0x01]
0E 00 03 00 12 01 00 00 00 01 01
Received 0x81 0x11 0x00 0x06 0x0e 0x03
read: 0e 03 00 12 80 00
Got message seqno 3 (command_sequence == 3)
response: 12 80 00
command "set parameter" [0x12, 0x01]
0E 00 04 00 12 01 00 00 01 01 02
Received 0x81 0x11 0x00 0x06 0x0e 0x04
read: 0e 04 00 12 80 00
Got message seqno 4 (command_sequence == 4)
response: 12 80 00
command "set parameter" [0x12, 0x01]
0E 00 05 00 12 01 00 01 00 01 05
Received 0x81 0x11 0x00 0x06 0x0e 0x05
read: 0e 05 00 12 80 00
Got message seqno 5 (command_sequence == 5)
response: 12 80 00
command "AVR sign-on" [0x12, 0x10]
0E 00 06 00 12 10 00 00
Received 0x81 0x11 0x00 0x0b 0x0e 0x06
read: 0e 06 00 12 84 00 0f 95 00 00 00
Got message seqno 6 (command_sequence == 6)
response: 12 84 00 0F 95 00 00 00
AVR sign-on responded with device ID = 0x950F
Reported device ID: 0x950F
Configured for device ID: 0x950F atmega328p
Automatic device detection:
command "set parameter" [0x12, 0x01]
0E 00 07 00 12 01 00 02 00 1F 80 00 00 80 00 00 00 00 00 00 00 3F 00 00 00 01
00 04 04 01 01 00 00 00 00 22 21 1F 20 00 46
Received 0x81 0x11 0x00 0x06 0x0e 0x07
read: 0e 07 00 12 80 00
Got message seqno 7 (command_sequence == 7)
response: 12 80 00
JTAG config complete.
Preparing the target device for On Chip Debugging.
command "set parameter" [0x12, 0x01]
0E 00 08 00 12 01 00 03 00 01 00
Received 0x81 0x11 0x00 0x06 0x0e 0x08
read: 0e 08 00 12 80 00
Got message seqno 8 (command_sequence == 8)
response: 12 80 00
command "start debugging" [0x12, 0x13]
0E 00 09 00 12 13 00 01
Received 0x81 0x11 0x00 0x06 0x0e 0x09
read: 0e 09 00 12 80 00
Got message seqno 9 (command_sequence == 9)
response: 12 80 00
command "reset" [0x12, 0x30]
0E 00 0A 00 12 30 00 01
Received 0x81 0x11 0x00 0x06 0x0e 0x0a
read: 0e 0a 00 12 80 00
Got message seqno 10 (command_sequence == 10)
response: 12 80 00
read: 0e 00 02 00 12 40 c5 01 00 00 01 00 00
Event serial 0x0002
ignoring break event
Waiting for connection on port 4242.
Try finding out where it fails. Maybe it's some kind of timing issue.
73!
--
cheers, Joerg .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)
--
___
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user