On Sun, Apr 10, 2011 at 7:24 PM, Damjan Marion <damjan.mar...@gmail.com> wrote: > I'm trying to use j-link adapter with latest openocd code from git master > branch on STM32F103 device and it fails with usb_bulk_read failed. > On the same machine when I use original segger tools in vmware WinXP, > it works ok. > > Any idea how to fix this? > > Open On-Chip Debugger 0.5.0-dev-00844-gd6027ca (2011-04-10-13:11) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.berlios.de/doc/doxygen/bugs.html > Warn : Adapter driver 'jlink' did not declare which transports it allows; > assuming legacy JTAG-only > Info : only one transport option; autoselect 'jtag' > 1000 kHz > adapter_nsrst_delay: 100 > jtag_ntrst_delay: 100 > cortex_m3 reset_config sysresetreq > Info : J-Link initialization started / target CPU reset initiated > Info : J-Link ARM V8 compiled Mar 17 2011 10:43:02 > Info : J-Link caps 0xb9ff7bbf > Info : J-Link hw version 80000 > Info : J-Link hw type J-Link > Info : J-Link max mem block 8368 > Info : J-Link configuration > Info : USB-Address: 0x0 > Info : Kickstart power on JTAG-pin 19: 0x1 > Info : Vref = 3.325 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0 > Info : J-Link JTAG Interface ready > Info : clock speed 1000 kHz > Error: usb_bulk_read failed (requested=1, result=0) > Error: jlink_tap_execute, wrong result -107 (expected 1) > Error: usb_bulk_read failed (requested=1, result=0) > Error: jlink_tap_execute, wrong result -107 (expected 1) > in procedure 'transport' > in procedure 'init' >
I do not have an STM32 target with me. But I just tried to use J-Link V3 and V7 under Windows 7 32bit and it works with the Olimex LPC-P2148 target (using libusb-win32 filter driver and the original Segger driver). I've seen this before but I thought the issue has been solved long before. What is the Linux distro you are using (assuming that you are using Linux). Are you using libusb-0.1 or libusb-1.0 plus libusb-compat-0.1? Debian/Ubuntu seem to use libusb-0.1 and some other distros use libusb-1.0 plus libusb-compat-0.1. -- Xiaofan _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development