This is a continuation of this thread at avrfreaks: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=1026487#1026487
where Jörg wrote: > and also send a debugging trace with the -d option there. Ok. Here it come: --- $ avarice -P atmega1284p -d -3 -j usb :4242 AVaRICE version 2.13svn20130104, Jan 10 2013 20:47:35 Defaulting JTAG bitrate to 250 kHz. Found JTAG ICE, serno: J30200013923 JTAG config starting. command "sign-on" [0x01, 0x10] 0E 00 00 00 01 10 00 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 read: 0e 01 00 00 81 00 4a 33 30 32 30 30 30 31 33 39 32 33 Got message seqno 1 (command_sequence == 1) response: 00 81 00 4A 33 30 32 30 30 30 31 33 39 32 33 Found a device, serial number: J30200013923 command "get parameter" [0x01, 0x02] 0E 00 02 00 01 02 00 00 00 05 read: 0e 02 00 01 84 01 02 02 0c c9 00 00 Got message seqno 2 (command_sequence == 2) response: 01 84 01 02 02 0C C9 00 00 ICE hardware version: 2 ICE firmware version: 2.12 (rel. 201) command "set parameter" [0x12, 0x01] 0E 00 03 00 12 01 00 00 00 01 02 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 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 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 read: 0e 06 00 12 84 00 3f 50 70 19 00 Got message seqno 6 (command_sequence == 6) response: 12 84 00 3F 50 70 19 00 AVR sign-on responded with device ID = 0x1970503F : Ver = 0x1 : Device = 0x9705 : Manuf = 0x1f Automatic device detection: Reported device ID: 0x9705 Looking for device: atmega1284p Configured for device ID: 0x9705 atmega1284p -- Matched with atmega1284p command "set parameter" [0x12, 0x01] 0E 00 07 00 12 01 00 02 00 1F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 01 21 02 FA 00 read: 0e 08 00 12 80 00 Got message seqno 8 (command_sequence == 8) response: 12 80 00 jtagRead command "enter progmode" [0x12, 0x15] 0E 00 09 00 12 15 00 read: 0e 09 00 12 80 00 Got message seqno 9 (command_sequence == 9) response: 12 80 00 command "read memory" [0x12, 0x21] 0E 00 0A 00 12 21 00 B2 00 00 00 00 03 00 00 00 read: 0e 0a 00 12 84 00 ff 19 ff 00 Got message seqno 10 (command_sequence == 10) response: 12 84 00 FF 19 FF 00 command "leave progmode" [0x12, 0x16] 0E 00 0B 00 12 16 00 read() timed out command "leave progmode" [0x12, 0x16] 0E 00 0B 00 12 16 00 read() timed out command "leave progmode" [0x12, 0x16] 0E 00 0B 00 12 16 00 read: 0e 00 00 00 12 40 00 00 00 00 02 08 00 Event serial 0x0000 Got message seqno 65535 (command_sequence == 11) got asynchronous event: 0x12, 0x40 read: 0e 0b 00 12 80 00 Got message seqno 11 (command_sequence == 11) response: 12 80 00 command "set parameter" [0x12, 0x01] 0E 00 0C 00 12 01 00 03 00 01 00 read: 0e 0b 00 12 a0 00 12 Got message seqno 11 (command_sequence == 12) got wrong sequence number, 11 != 12 read: 0e 0c 00 12 80 00 Got message seqno 12 (command_sequence == 12) response: 12 80 00 command "reset" [0x12, 0x30] 0E 00 0D 00 12 30 00 01 read() timed out retrying reset ... command "reset" [0x12, 0x30] 0E 00 0D 00 12 30 00 01 read() timed out command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 read: 0d 00 00 00 0e 0d 00 Got message seqno 0 (command_sequence == 13) got wrong sequence number, 0 != 13 unexpected message size from pipe: 1006673938 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 65620 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 16402 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 0 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 0 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 read() timed out command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 read: 07 00 00 00 0e 0d 00 12 a0 00 3c 54 00 Got message seqno 0 (command_sequence == 13) got wrong sequence number, 0 != 13 unexpected message size from pipe: 1074921474 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 0 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 100663296 command "stop debugging" [0x12, 0x14] 0E 00 0D 00 12 14 00 unexpected message size from pipe: 234881024 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: -2146303987 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 1536 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 855552 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 100696082 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 234881024 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: -2146303987 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 1536 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 855552 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 100696082 command "AVR sign-off" [0x12, 0x11] 0E 00 0D 00 12 11 00 unexpected message size from pipe: 234881024 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: -2146303987 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 1536 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 855552 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 100696082 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 234881024 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: -2146303987 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 1536 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 855552 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 100696082 command "sign-off" [0x01, 0x11] 0E 00 0D 00 01 11 00 unexpected message size from pipe: 234881024 --- > Are there any compiler warnings which could be related? Here's the output from make (without entering/leaving directories) --- gcc -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -MT crc16.o -MD -MP -MF .deps/crc16.Tpo -c -o crc16.o crc16.c mv -f .deps/crc16.Tpo .deps/crc16.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT devdescr.o -MD -MP -MF .deps/devdescr.Tpo -c -o devdescr.o devdescr.cc mv -f .deps/devdescr.Tpo .deps/devdescr.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT ioreg.o -MD -MP -MF .deps/ioreg.Tpo -c -o ioreg.o ioreg.cc mv -f .deps/ioreg.Tpo .deps/ioreg.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2bp.o -MD -MP -MF .deps/jtag2bp.Tpo -c -o jtag2bp.o jtag2bp.cc mv -f .deps/jtag2bp.Tpo .deps/jtag2bp.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2io.o -MD -MP -MF .deps/jtag2io.Tpo -c -o jtag2io.o jtag2io.cc mv -f .deps/jtag2io.Tpo .deps/jtag2io.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2misc.o -MD -MP -MF .deps/jtag2misc.Tpo -c -o jtag2misc.o jtag2misc.cc mv -f .deps/jtag2misc.Tpo .deps/jtag2misc.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2prog.o -MD -MP -MF .deps/jtag2prog.Tpo -c -o jtag2prog.o jtag2prog.cc mv -f .deps/jtag2prog.Tpo .deps/jtag2prog.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2run.o -MD -MP -MF .deps/jtag2run.Tpo -c -o jtag2run.o jtag2run.cc mv -f .deps/jtag2run.Tpo .deps/jtag2run.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2rw.o -MD -MP -MF .deps/jtag2rw.Tpo -c -o jtag2rw.o jtag2rw.cc mv -f .deps/jtag2rw.Tpo .deps/jtag2rw.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag2usb.o -MD -MP -MF .deps/jtag2usb.Tpo -c -o jtag2usb.o jtag2usb.cc jtag2usb.cc: In function void* usb_thread_event(void*): jtag2usb.cc:973:52: warning: ignoring return value of ssize_t write(int, const void*, size_t), declared with attribute warn_unused_result [-Wunused-result] jtag2usb.cc: In function void* usb_thread_read(void*): jtag2usb.cc:921:52: warning: ignoring return value of ssize_t write(int, const void*, size_t), declared with attribute warn_unused_result [-Wunused-result] mv -f .deps/jtag2usb.Tpo .deps/jtag2usb.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag3bp.o -MD -MP -MF .deps/jtag3bp.Tpo -c -o jtag3bp.o jtag3bp.cc mv -f .deps/jtag3bp.Tpo .deps/jtag3bp.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag3io.o -MD -MP -MF .deps/jtag3io.Tpo -c -o jtag3io.o jtag3io.cc mv -f .deps/jtag3io.Tpo .deps/jtag3io.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag3misc.o -MD -MP -MF .deps/jtag3misc.Tpo -c -o jtag3misc.o jtag3misc.cc mv -f .deps/jtag3misc.Tpo .deps/jtag3misc.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag3prog.o -MD -MP -MF .deps/jtag3prog.Tpo -c -o jtag3prog.o jtag3prog.cc mv -f .deps/jtag3prog.Tpo .deps/jtag3prog.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag3run.o -MD -MP -MF .deps/jtag3run.Tpo -c -o jtag3run.o jtag3run.cc mv -f .deps/jtag3run.Tpo .deps/jtag3run.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtag3rw.o -MD -MP -MF .deps/jtag3rw.Tpo -c -o jtag3rw.o jtag3rw.cc mv -f .deps/jtag3rw.Tpo .deps/jtag3rw.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtagbp.o -MD -MP -MF .deps/jtagbp.Tpo -c -o jtagbp.o jtagbp.cc mv -f .deps/jtagbp.Tpo .deps/jtagbp.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtaggeneric.o -MD -MP -MF .deps/jtaggeneric.Tpo -c -o jtaggeneric.o jtaggeneric.cc mv -f .deps/jtaggeneric.Tpo .deps/jtaggeneric.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtagio.o -MD -MP -MF .deps/jtagio.Tpo -c -o jtagio.o jtagio.cc mv -f .deps/jtagio.Tpo .deps/jtagio.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtagmisc.o -MD -MP -MF .deps/jtagmisc.Tpo -c -o jtagmisc.o jtagmisc.cc mv -f .deps/jtagmisc.Tpo .deps/jtagmisc.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtagprog.o -MD -MP -MF .deps/jtagprog.Tpo -c -o jtagprog.o jtagprog.cc mv -f .deps/jtagprog.Tpo .deps/jtagprog.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtagrun.o -MD -MP -MF .deps/jtagrun.Tpo -c -o jtagrun.o jtagrun.cc mv -f .deps/jtagrun.Tpo .deps/jtagrun.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT jtagrw.o -MD -MP -MF .deps/jtagrw.Tpo -c -o jtagrw.o jtagrw.cc jtagrw.cc: In member function virtual uchar* jtag1::jtagRead(long unsigned int, unsigned int): jtagrw.cc:134:13: warning: converting false to pointer type uchar* {aka unsigned char*} [-Wconversion-null] mv -f .deps/jtagrw.Tpo .deps/jtagrw.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cc mv -f .deps/main.Tpo .deps/main.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT remote.o -MD -MP -MF .deps/remote.Tpo -c -o remote.o remote.cc mv -f .deps/remote.Tpo .deps/remote.Po g++ -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -pthread -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cc mv -f .deps/utils.Tpo .deps/utils.Po gcc -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -MT gnu_getopt.o -MD -MP -MF .deps/gnu_getopt.Tpo -c -o gnu_getopt.o gnu_getopt.c mv -f .deps/gnu_getopt.Tpo .deps/gnu_getopt.Po gcc -DHAVE_CONFIG_H -I. -DENABLE_TARGET_PROGRAMMING=0 -g -O2 -MT gnu_getopt1.o -MD -MP -MF .deps/gnu_getopt1.Tpo -c -o gnu_getopt1.o gnu_getopt1.c mv -f .deps/gnu_getopt1.Tpo .deps/gnu_getopt1.Po g++ -g -O2 -pthread -o avarice crc16.o devdescr.o ioreg.o jtag2bp.o jtag2io.o jtag2misc.o jtag2prog.o jtag2run.o jtag2rw.o jtag2usb.o jtag3bp.o jtag3io.o jtag3misc.o jtag3prog.o jtag3run.o jtag3rw.o jtagbp.o jtaggeneric.o jtagio.o jtagmisc.o jtagprog.o jtagrun.o jtagrw.o main.o remote.o utils.o gnu_getopt.o gnu_getopt1.o -lusb -lbfd -liberty make[2]: Leaving directory `/home/joakim/tmp/avarice-code/avarice/src' --- Another note is that it works fine with a Dragon. Regards /Joakim ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ avarice-user mailing list avarice-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avarice-user