As j...@maths.lth.se wrote: > command "leave progmode" [0x12, 0x16] > 0E 00 0B 00 12 16 00 > read() timed out
So it's the same timeouts Andreas Løhre is also seeing. I wonder whether there's a missing "volatile" or such. > 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] These are basically expected, yes. In both receiver threads, the message written to the upstream pipe gets the message length prepended, and the write() calls for the message length are not checked. As I intend to combine these write calls with the subsequent packet write itself (so the entire write() operation to the pipe is atomic), I don't want to touch this now. I don't think this is related to the problems you are seeing. > 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] OK, there's a point in this warning. Instead of returning false, the function should better throw an exception. However, it's for the original JTAGICE ("mkI") only, so unrelated here. I've fixed this in the source, anyway. Too bad the warnings don't give us a hint about what might be the problem. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) ------------------------------------------------------------------------------ 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