From: Joerg W. <j...@ur...> - 2018-12-07 06:20:00
|
As Vasily Kartashov wrote: > Interestingly, when I try to connect to ATMEL-ICE through hidapi > testgui I consistently get “Unable To Connect to Device”. That probably explains it. In that case, it's out of AVaRICE's scope - if it doesn't see a HID it cannot do anything. Try debugging it using a syscall tracer on your OS (e.g. strace on Linux). I just tested it here on my FreeBSD: % ./src/avarice --edbg --debugwire --ignore-intr :4242 AVaRICE version 2.13svn20160229, Oct 28 2018 22:29:00 JTAG config starting. Found a device, serial number: J41800000136 initJtagBox() failed: No target power present j@uriah 77% ./src/avarice --edbg --debugwire --ignore-intr --debug :4242 AVaRICE version 2.13svn20160229, Oct 28 2018 22:29:00 Found HID PID:VID 0x03eb:0x2141, serno J41800000136 Probing for HID max. packet size Setting max. packet size to 512 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 0x12 0x0e 0x01 read: 0e 01 00 00 81 00 4a 34 31 38 30 30 30 30 30 31 33 36 Got message seqno 1 (command_sequence == 1) response: 00 81 00 4A 34 31 38 30 30 30 30 30 31 33 36 Found a device, serial number: J41800000136 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 16 41 00 00 Got message seqno 2 (command_sequence == 2) response: 01 84 01 00 01 16 41 00 00 ICE hardware version: 0 ICE firmware version: 1.22 (rel. 65) 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 0x07 0x0e 0x06 read: 0e 06 00 12 a0 00 22 Got message seqno 6 (command_sequence == 6) response: 12 A0 00 22 initJtagBox() failed: No target power present 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 I don't have a target handy to really test debugging, so "No target power present" is expected. Still, I think this is going way past what you are seeing. -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-) |