Xiaofan Chen wrote: > On Sat, Nov 14, 2009 at 9:11 AM, Philip Pemberton wrote: >> > One potential issue is wrong Data Toggle in the firmware. >> >> Surely the MCHP framework / SIE handles this? > > Probably. The 1.x stack is said to have data toggle and other > problems. It caused great trouble for me under FreeBSD last time > trying to get PICKit 2 work under FreeBSD (no longer running > FreeBSD due to problems with my Acer PC). I just added another usb_write() command to the test program (it's gone from three to four). Now the bug has vanished. So we can narrow the conditions of the bug down a little: - When an odd number of data packets are sent to the device, communication fails on repeated attempts. I'm wondering if there is something wrong with the stack.. The pid toggling looks OK, but I haven't had a close look at the traces from the Beagle yet. This is all very peculiar. -- Phil. piclist@philpem.me.uk http://www.philpem.me.uk/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist