Hi Xiaofan,
 Thank you, Thank you, Thank you!  I was running into dead end after dead end 
trying to get winusb.sys installed on my XP box.

So using both tips in your email and snippets from Peter's and Salvador's 
emails I finally have openocd working with the flyswatter probe and the ftdi 
usb driver.  

I'm seeing much faster speeds:

At  5M with 15 tcks inserted between each scan I'm seeing  159k/sec
At 15M with 30 tcks inserted                   I'm seeing  182K/sec

Not as fast as Salvador sees but much faster than what I was seeing before.

I did notice to get the probe talking to the target took a lot more resets with 
this driver.

I took the flyswatter2.cfg from the ftdi directory and modified it for the 
flyswatter3.cfg and it worked so maybe we can remove the note at the top of the 
flyswatter2.cfg file?

FWIW,
Mindy

-----Original Message-----
From: Xiaofan Chen [mailto:xiaof...@gmail.com] 
Sent: Saturday, March 30, 2013 6:26 PM
To: Mindy Beseler
Cc: openocd-devel@lists.sourceforge.net
Subject: Re: [OpenOCD-devel] Does MIPS FASTDATA in 0.6.1 work?

On Thu, Mar 28, 2013 at 10:35 PM, Mindy Beseler <mindy.bese...@imgtec.com> 
wrote:
> I must be missing some critical details somewhere!
>
> I downloaded 
> http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.9/
> Configured and built it.

libusb-1.0.9 is missing many critical patches under Windows. You should either 
use libusb.git or better the fork libusbx project which provides Windows 
binaries.
http://sourceforge.net/projects/libusbx/files/releases/1.0.14/Windows/

> Then I created a libusb-1.0 directory under the src directory and 
> copied the libusb.h from the downloaded source Openocd compiles but it 
> won't link because the libusb it looking for is libusb.a not 
> libusb-1.0.a
>
> Is there a configure option to use the libusb-1.0.a instead of libusb.a?

By default it will use libusb-1.0 and not libusb-0.1 unless you use 
--enable-libusb0.

If your libusb-1.0/libusbx files are not in the default compiler directory, you 
need to explicitly set the flags CFLAGS  and LDFLAGS.

> Also where do I find WinUSB.sys it was not built as part of 
> libusb-1.0.9
That is outside libusb-1.0 or libusbx. You can use Zadig to install the WinUSB 
driver.
Ref: 
https://github.com/libusbx/libusbx/wiki/Windows-Backend#wiki-Driver_Installation


--
Xiaofan


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to