In jtag2usb.cc I changed all hid_read_timeout() calls (I assume this is 
what you meant), increasing the timeout parameter by a factor of 10. The 
output (-d) looked identical, same error. I also tried with a Sam D20 
xplained pro, and it fails also, but it fails more or less immediately.  
This is the output of -d (for the Sam d20):
> D:\Dropbox\avarice>avarice.exe -d -4 :4242
> AVaRICE version 2.13svn20160229, Mar  6 2016 00:46:22
>
> Defaulting JTAG bitrate to 250 kHz.
>
> Found HID PID:VID 0x03eb:0x2111, serno ATML1873040200010208
> Probing for HID max. packet size
> Setting max. packet size to 512 from DAP_Info
> JTAG config starting.HID thread started
>
>
> 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 31 38 37 33 30 34 30 32 30 30 30 
> 31 30 32 30 38
>
> Got message seqno 1 (command_sequence == 1)
> response: 00 81 00 41 54 4D 4C 31 38 37 33 30 34 30 32 30 30 30 31 30 
> 32 30 38
> Found a device, serial number: ATML1873040200010208
>
> 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 f0 01 21 1d 01 00
>
> Got message seqno 2 (command_sequence == 2)
> response: 01 84 01 F0 01 21 1D 01 00
> ICE hardware version: 240
> ICE firmware version: 1.33 (rel. 285)
>
> command "set parameter" [0x12, 0x01]
> 0E 00 03 00 12 01 00 00 00 01 02
> 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 04
> 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 0x07 0x0e 0x06
> read:  0e 06 00 12 a0 00 20
>
> Got message seqno 6 (command_sequence == 6)
> response: 12 A0 00 20
> initJtagBox() failed: no answer from target
>
> command "sign-off" [0x01, 0x11]
> 0E 00 07 00 01 11 00
> Received 0x81 0x11 0x00 0x06 0x0e 0x07
> read:  0e 07 00 01 80 00
>
> Got message seqno 7 (command_sequence == 7)
> response: 01 80 00
>
> D:\Dropbox\avarice>

On 06.03.2016 10:06, Joerg Wunsch wrote:
> As Philip Mulrane wrote:
>
>>> command "AVR sign-on" [0x12, 0x10]
>>> 0E 00 06 00 12 10 00 00
>>> Querying for response: hid_read() failed (0)
> Try increasing the timeout parameter in hid_read().
>
> Actually, when getting a 0 reply, we could probably also
> loop, but then, we could as well increase the timeout, and
> have libhidapi loop instead.


-- 
Bittrace14 UG
Immanuel-Kant Str.59b
31812 Bad Pyrmont

Fax: +49 32223945096

HRB 209338 Amtsger. Hannover

Geschäftsführer
Pauline Atkinson


------------------------------------------------------------------------------
_______________________________________________
avarice-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avarice-user

Reply via email to