Hi Knut, > please retest the problem and add the switch "-d" to avarice command > line. That will print additional debug information into the avarice > window. Please send this output to the list.
it seems to go in an endless loop after issuing `(gdb) i io': GDB: <qRavr.io_reg> GDB: (io registers) Read 64 bytes from 0x20 ->GDB: 62 [...] <- loops forever tl;dr Here is the whole session: $ avarice -d -2 -j usb :4242 AVaRICE version 2.13, Jan 19 2014 13:32:42 Defaulting JTAG bitrate to 250 kHz. Found JTAG ICE, serno: 00B000005543 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 24 07 00 ff 24 07 01 00 b0 00 00 55 43 4a 54 41 47 49 43 45 6d 6b 49 49 00 recv: 0xc6 recv: 0x12 CRC OK Got message seqno 0 (command_sequence == 0) response: 86 01 FF 24 07 00 FF 24 07 01 00 B0 00 00 55 43 4A 54 41 47 49 43 45 6D 6B 49 49 00 Found a device: JTAGICEmkII Serial number: xx:xx:xx:xx:xx:xx JTAG ICE mkII sign-on message: Communications protocol version: 1 M_MCU: boot-loader FW version: 255 firmware version: 7.36 hardware version: 0 S_MCU: boot-loader FW version: 255 firmware version: 7.36 hardware version: 1 command[0x02, 1]: 02 03 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[0x0a, 1]: 0A 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 recv: 0x1b recv: 0xff recv: 0xff recv: 0x06 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 6 bytes read: e0 a4 00 00 00 00 recv: 0x9a recv: 0xea CRC OKAutomatic device detection: command[0x03, 1]: 03 0E recv: 0x1b recv: 0x03 recv: 0x00 recv: 0x05 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 5 bytes read: 81 3f a0 40 09 recv: 0xc6 recv: 0xc0 CRC OK Got message seqno 3 (command_sequence == 3) response: 81 3F A0 40 09 JTAG id = 0x940A03F : Ver = 0x0 : Device = 0x940a : Manuf = 0x1f Reported JTAG device ID: 0x940A Configured for device ID: 0x940A atmega164p command[0x0c, 1]: 0C FF 0F E0 F8 FF 3D B9 E8 00 00 00 00 01 00 00 00 B6 0D 00 E0 FF 1D B8 E8 00 00 00 00 01 00 00 00 53 FB 09 DF F3 0F 00 00 00 00 5F 3F 37 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 00 00 00 00 00 00 51 FB 09 D8 F3 0F 00 00 00 00 5F 2F 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 00 00 00 00 00 00 00 00 00 00 00 00 00 00 31 57 3B 80 00 04 80 1F 00 00 C6 00 00 40 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 80 00 00 00 00 00 00 01 00 00 01 00 00 00 00 1F 00 recv: 0x1b recv: 0x04 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0xac recv: 0x14 CRC OK Got message seqno 4 (command_sequence == 4) response: 80 JTAG config complete. Preparing the target device for On Chip Debugging. command[0x02, 1]: 02 07 15 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 command[0x14, 1]: 14 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 B2 03 00 00 00 00 00 00 00 recv: 0x1b recv: 0x08 recv: 0x00 recv: 0x04 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 4 bytes read: 82 62 19 ff recv: 0x10 recv: 0x0c CRC OK Got message seqno 8 (command_sequence == 8) response: 82 62 19 FF command[0x15, 1]: 15 recv: 0x1b recv: 0x09 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0x71 recv: 0xae CRC OK Got message seqno 9 (command_sequence == 9) 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 == 10) got asynchronous event: 0xe0 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: 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 == 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 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 Waiting for connection on port 4242. ********************************************************************** Then I log into another terminal: $ avr-gdb -command __avr_gdbinit main.elf Connection opened by host 127.0.0.1, port 43490. GDB: <qSupported:multiprocess+;qRelocInsn+> ->GDB: GDB: <Hg0> ->GDB: GDB: <?> ->GDB: S05 GDB: <Hc-1> ->GDB: GDB: <qC> ->GDB: GDB: <qAttached> ->GDB: GDB: <qOffsets> ->GDB: GDB: <g> GDB: (Registers)Read 32 bytes from 0x800000 jtagRead command[0x05, 1]: 05 20 20 00 00 00 00 00 00 00 recv: 0x1b recv: 0x0d 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 00 00 00 00 00 00 00 14 00 00 00 f6 04 69 00 recv: 0xb3 recv: 0x18 CRC OK Got message seqno 13 (command_sequence == 13) response: 82 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 F6 04 69 00 jtagRead command[0x05, 1]: 05 20 03 00 00 00 5D 00 00 00 recv: 0x1b recv: 0x0e recv: 0x00 recv: 0x04 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 4 bytes read: 82 ff 04 00 recv: 0xf0 recv: 0xa5 CRC OK Got message seqno 14 (command_sequence == 14) response: 82 FF 04 00 PC = 0 ->GDB: 00000000000000000000000000000000000000000000000014000000f604690000ff0400000000 GDB: <qSymbol::> ->GDB: GDB: <qTStatus> ->GDB: GDB: <m142,2> GDB: Read 2 bytes from 0x142 jtagRead command[0x05, 1]: 05 A0 02 00 00 00 42 01 00 00 recv: 0x1b recv: 0x0f recv: 0x00 recv: 0x03 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 3 bytes read: 82 0e 94 recv: 0xd0 recv: 0xbb CRC OK Got message seqno 15 (command_sequence == 15) response: 82 0E 94 ->GDB: 0e94 GDB: <qTStatus> ->GDB: ********************************************************************** (gdb) c GDB: <qTStatus> ->GDB: GDB: <Z0,142,2> BP ADD type: 1 addr: 0x142 Slot 0 full ->GDB: OK GDB: <vCont?> ->GDB: GDB: <Hc0> ->GDB: GDB: <c> Slot 0 full Breakpoint added in ICE. slot: 1 type: 1 addr: 0x142 command[0x11, 1]: 11 01 01 A1 00 00 00 03 recv: 0x1b recv: 0x10 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0x0a recv: 0x59 CRC OK Got message seqno 16 (command_sequence == 16) response: 80 command[0x08, 1]: 08 recv: 0x1b recv: 0x11 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0xb5 recv: 0xd8 CRC OK Got message seqno 17 (command_sequence == 17) 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 a1 00 00 00 01 recv: 0x47 recv: 0xdd CRC OKjtagRead command[0x05, 1]: 05 20 03 00 00 00 5D 00 00 00 recv: 0x1b recv: 0x12 recv: 0x00 recv: 0x04 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 4 bytes read: 82 fd 04 00 recv: 0xf2 recv: 0x83 CRC OK Got message seqno 18 (command_sequence == 18) response: 82 FD 04 00 ->GDB: T0520:00;21:fd04;22:42010000; GDB: <z0,142,2> BP DEL type: 1 addr: 0x142 DISABLED ->GDB: OK ********************************************************************** (gdb) i io GDB: <qRavr.io_reg> GDB: (io registers) Read 64 bytes from 0x20 ->GDB: 62 GDB: <qRavr.io_reg> GDB: (io registers) Read 64 bytes from 0x20 ->GDB: 62 GDB: <qRavr.io_reg> GDB: (io registers) Read 64 bytes from 0x20 ->GDB: 62 GDB: <qRavr.io_reg> GDB: (io registers) Read 64 bytes from 0x20 ->GDB: 62 GDB: <qRavr.io_reg> GDB: (io registers) Read 64 bytes from 0x20 ->GDB: 62 [...] <- loops forever ********************************************************************** ^CQuit (gdb) q GDB: <qTStatus> ->GDB: GDB: <k> gdb exited. command[0x08, 1]: 08 recv: 0x1b recv: 0x13 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0xda recv: 0xd3 CRC OK Got message seqno 19 (command_sequence == 19) response: 80 command[0x23, 1]: 23 recv: 0x1b recv: 0x14 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0xd4 recv: 0x4f CRC OK Got message seqno 20 (command_sequence == 20) response: 80 command[0x00, 1]: 00 recv: 0x1b recv: 0x15 recv: 0x00 recv: 0x01 recv: 0x00 recv: 0x00 recv: 0x00 recv: 0x0e sDATA: reading 1 bytes read: 80 recv: 0x6b recv: 0xce CRC OK Got message seqno 21 (command_sequence == 21) response: 80 -- Cheers, Oliver ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ avarice-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avarice-user
