sven@tracy ~ $ avarice -d -R -2 -j usb -B 200 :4242 AVaRICE version 2.13, Nov 15 2012 23:51:06 Found JTAG ICE, serno: 070000003457 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 1c 07 00 ff 1c 07 01 07 00 00 00 34 57 4a 54 41 47 49 43 45 6d 6b 49 49 00 recv: 0x48 recv: 0x89 CRC OK Got message seqno 0 (command_sequence == 0) response: 86 01 FF 1C 07 00 FF 1C 07 01 07 00 00 00 34 57 4A 54 41 47 49 43 45 6D 6B 49 49 00 Found a device: JTAGICEmkII Serial number: 07:00:00:00:34:57 JTAG ICE mkII sign-on message: Communications protocol version: 1 M_MCU: boot-loader FW version: 255 firmware version: 7.28 hardware version: 0 S_MCU: boot-loader FW version: 255 firmware version: 7.28 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: 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 == 3) got asynchronous event: 0xe0 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 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 OKAutomatic device detection: command[0x03, 1]: 03 0E recv: 0x1b recv: 0x04 recv: 0x00 recv: 0x05 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 5 bytes read: 81 3f 70 58 39 recv: 0x83 recv: 0xa7 CRC OK Got message seqno 4 (command_sequence == 4) response: 81 3F 70 58 39 JTAG id = 0x3958703F : Ver = 0x3 : Device = 0x9587 : Manuf = 0x1f Reported JTAG device ID: 0x9587 Configured for device ID: 0x9587 atmega32u4 command[0x0c, 1]: 0C F8 FF E3 FB FF 3F BD F8 00 00 00 00 00 00 00 00 B0 6D 03 E0 FF 1F BC F8 00 00 00 00 00 00 00 00 F3 CF 07 DF F7 3F F7 3F 00 00 1F FF FF B7 97 07 7F FF 1D 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 00 00 00 00 00 00 00 00 F3 CF 07 D8 F7 3F F7 3F 00 00 1F EF 7F B6 97 05 0F 7F 11 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 00 00 00 00 00 00 00 00 31 57 3B 80 00 04 00 3F 00 00 FF 00 00 80 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 3E 3D 00 01 00 00 00 00 00 01 00 00 01 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 command[0x14, 1]: 14 recv: 0x1b recv: 0x08 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0xce recv: 0x2f CRC OK Got message seqno 8 (command_sequence == 8) response: 80 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 f9 recv: 0xb1 recv: 0x4a CRC OK Got message seqno 9 (command_sequence == 9) response: 82 FF 19 F9 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[0x15, 1]: 15 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 == 11) got asynchronous event: 0xe0 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 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 04 00 00 00 00 recv: 0x5e recv: 0x00 CRC OK Got message seqno 65535 (command_sequence == 12) got asynchronous event: 0xe0 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 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: 0x0d recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0xaf recv: 0xb8 CRC OK Got message seqno 13 (command_sequence == 13) response: 80 Waiting for connection on port 4242. (gdb) file USB-Tastatur.elf Reading symbols from USB-Tastatur.elf...done. (gdb) target remote localhost:4242 Remote debugging using localhost:4242 Remote communication error. Target disconnected.: Connection reset by peer. (gdb) Connection opened by host 127.0.0.1, port 46450. GDB: ->GDB: GDB: ->GDB: GDB: ->GDB: S05 GDB: ->GDB: GDB: ->GDB: GDB: ->GDB: GDB: ->GDB: GDB: GDB: (Registers)Read 32 bytes from 0x800000 jtagRead command[0x05, 1]: 05 20 20 00 00 00 00 00 00 00 recv: timeout command[0x05, 3]: 05 20 20 00 00 00 00 00 00 00 recv: timeout command[0x05, 5]: 05 20 20 00 00 00 00 00 00 00 recv: timeout command[0x05, 7]: 05 20 20 00 00 00 00 00 00 00 recv: timeout Failed to read target memory space: JTAG ICE timeout exception command[0x23, 1]: 23 recv: 0x1b recv: 0x0e recv: 0x00 recv: 0x21 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 33 bytes read: 82 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 01 ff 0a 0a 01 recv: 0xf9 recv: 0xb3 CRC OK Got message seqno 14 (command_sequence == 14) response: 82 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 01 FF 0A 0A 01 command[0x00, 1]: 00 recv: 0x1b recv: 0x0e recv: 0x00 recv: 0x21 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 33 bytes read: 82 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 01 ff 0a 0a 01 recv: 0xf9 recv: 0xb3 CRC OK Got message seqno 14 (command_sequence == 15) got wrong sequence number, 14 != 15 USB bulk read error: No such device or address USB daemon died