On Thu, Sep 11, 2014 at 3:27 PM, Paul Fertser <[email protected]> wrote: > On Mon, Sep 08, 2014 at 09:00:59PM -0700, Anders Oleson wrote: >> I have been working with an LPC Link-2 configured with JLink firmware (as >> distributed by Segger and LPC). This firmware basically turns the very nice >> $20 >> LPC Link-2 board into a JLink adapter. It is clear to me that Segger had a >> hand >> in this firmware and you can find references to it on their pages as well as >> on >> LPC's pages. > > Please see if http://openocd.zylin.com/2288 helps. >
Your fix helps only for libusb-1.0 API. And it might have problems with NetBSD and older version of OpenBSD. But I am not so sure if we really need to care about NetBSD/OpenBSD. It does not help for those who use libusb-0.1 API. Again I will propose an easy change first. Just conditional compile line 1740 jtag_libusb_set_configuration(devh, 0); The comment in line 1738 is quite clear that it is only for Win32 and only for libusb-0.1 API. 1738 /* usb_set_configuration required under win32 */ 1739 struct jtag_libusb_device *udev = jtag_libusb_get_device(devh); +++ #if IS_WIN32 == 1 1740 jtag_libusb_set_configuration(devh, 0); +++ #endif 1741 jtag_libusb_claim_interface(devh, 0); -- Xiaofan ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
