On Tue, Jul 7, 2009 at 5:04 PM, Spencer Oliver<[email protected]> wrote: >> > For info this breaks my v5 and v6 jlinks (tested stm32). >> > Not sure if any one else is having trouble? >> >> How does it break? > > All read/writes fail as the usb handle is invalid after the > usb_reset is performed. > Perhaps the win32 libusb does a reset whereas the linux > one does not?
Both should reset. Do you see different behavior under Linux and Windows with the patch? I only tested Linux. There can be some differences for Linux and Windows. http://kerneltrap.org/mailarchive/linux-usb/2008/11/28/4259024 Before 2.6.30 (?), the kernel will probably issue a Set-Interface request after the usb_reset. Not so sure if this matters. It seems to me that the 2nd part of the patch should be reworked. -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
