Freddie Chopin wrote: > The prompt "hangs" (no response, no new line to enter some new command, > nothing), target resumes, OpenOCD crashes in about 5-10 seconds.
It would be very helpful if you could post libusb debug output. I've linked to 32-bit and a 64-bit DLL debug builds of current libusb.git. The corresponding code in libusbx is identical, so the libusb files should work fine if you just replace your existing DLL file with one that I built. > On "normal OpenOCD" with libusb-win32 it does not crush, but for > speeds over and including 333kHz "resume" command gives: Define "normal OpenOCD" ? Do you mean the old ft2232 driver? It would be interesting if you could try this OpenOCD with libusb-compat-0.1 and again libusb-1.0.9 with debugging enabled. Find these DLLs included in the zip too. For the source code for the included binaries (per GPL) please refer to: git://git.libusb.org/libusb.git git://git.libusb.org/libusb-compat-0.1.git And apply the attached patch to the latter. libusb.dll was compiled using these commands, for 32 and 64 bit correspondingly: /bin/sh ../libtool --tag=CC --mode=link i686-mingw32-gcc -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g -O2 -version-info 0:0:0 -no-undefined -avoid-version -Wl,--add-stdcall-alias -o libusb.la -rpath /home/stuge/luc32/lib libusb_la-core.lo -L/home/stuge/lu32/lib -lusb-1.0 /bin/sh ../libtool --tag=CC --mode=link i686-mingw32-gcc -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g -O2 -version-info 0:0:0 -no-undefined -avoid-version -Wl,--add-stdcall-alias -o libusb.la -rpath /home/stuge/luc32/lib libusb_la-core.lo -L/home/stuge/lu64/lib -lusb-1.0 The debug binaries are available at: http://stuge.se/libusb-and-compat-git.zip http://stuge.se/libusb-compat-0.1-mingw.patch Unfortunately they were 100k over the list size limit so am resending without the attachment, and you'll have to download the files yourself. > Any ideas? Need more information I think. libusb debug logs would be a good start! Thanks //Peter ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
