On Sat, Sep 22, 2012 at 1:44 AM, Abhishek Kumar <abhishek.kak...@hotmail.com> wrote: > I guess libusb might be statically linked in case of Freddie > Choppin's binaries. So I might have to recompile OpenOCD > from the sources, but I am unable to proceed on how to doing it. > Could you please tell me how do I configure it to build properly > using your library, do I have to copy libusb files to the source > folder or not. Or if possible, could you please share your > build script? > > I am using TDM's prebuilt toolchain - MinGW64. >
I have not built the OpenOCD 0.6.0 Windows binary myself. But now since libusbx 1.0.13 is released, I will do it. I would suggest you to use 32bit binary first. Take note Freddie's binary is 32bit. So you need to use 32bit libusb-1.0.dll. My build will be using MinGW.org 32bit toolchain. The build script will be something like the following. LDFLAGS="-lusb-1.0" ../configure --enable-ftdi \ --enable-ft2232_libftdi --enable-presto_libftdi --enable-stlink \ --enable-arm-jtag-ew --enable-jlink --enable-rlink \ --enable-usbprog --enable-vsllink --enable-usb_blaster_libftdi \ --enable-remote-bitbang --enable-vsllink --enable-ulink \ --enable-osbdm --enable-opendous --disable-werror You need to put the relevant include file and library file under the correct include and library directory of the toolchain. One more thing you want to check first is that whether libusbx 1.0.13 test programs works with your adapter. It should be something like the following. C:\work\libusbx\libusbx-1.0.13-win\examples\bin32>listdevs.exe 106b:003f (bus 1, device 1) 8086:265c (bus 2, device 1) 0483:3748 (bus 1, device 3) 80ee:0021 (bus 1, device 2) C:\work\libusbx\libusbx-1.0.13-win\examples\bin32>xusb.exe 0483:3748 Using libusbx v1.0.13.10575 Opening device 0483:3748... Reading device descriptor: length: 18 device class: 0 S/N: 3 VID:PID: 0483:3748 bcdDevice: 0100 iMan:iProd:iSer: 1:2:3 nb confs: 1 Reading configuration descriptors: nb interfaces: 1 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 3 Class.SubClass.Protocol: FF.FF.FF endpoint[0].address: 81 max packet size: 0040 polling interval: 00 endpoint[1].address: 02 max packet size: 0040 polling interval: 00 endpoint[2].address: 83 max packet size: 0040 polling interval: 00 Claiming interface 0... Reading string descriptors: String (0x01): "STMicroelectronics" String (0x02): "STM32 STLink" String (0x03): "V j♠IqTI↕E↕ç" Releasing interface 0... Closing device... -- Xiaofan ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel