On Sat, Apr 9, 2011 at 8:40 PM, Duane Ellis <[email protected]> wrote:
> 2) The magic download trick is this: one USB "vendor" command.
>    Specifically: the value is '0xA0' (the A is probably for Anchor)
>
>    Problem: No windows native stuff lets you send VENDOR commands.
>    Example: WinUSB driver library cannot do this,

Hmm, I do not think this one is really true. WinUSB does
support vendor commands and this is used in the
current libusb-1.0 Windows backend implementation.

>    The Cypress EzUSB library + EzUSB driver can ...

The ezusb.sys driver is now obsolete. The new cyusb.sys
driver is quite good though. But it is meant to use with
Cypress chips only. So libusb is still better, especially
when libusb-1.0 Windows got released with libusb0.sys
and libusbk.sys driver support (not yet there).

libusbk.sys is the next-gen libusb-win32 driver and library.
http://code.google.com/p/usb-travis/

>    In contrast,  LIBUSB - you *can* send vendor commands :-)
>    Hence you can write a driver using LIBUSB :-)

Yes, of course libusb is better as I am one of the
admins of the libusb-win32 project and a tester of libusb-1.0
(both Linux and Windows) . :-)

> The above is generally what the linux tool:  "fxload" does.
>    http://linux.die.net/man/8/fxload

I use Cycfx2prog under Linux and Windows without an issue.
Under Windows, you need to use libusb-win32. It can be
built under Windows without modifications.
http://www.triplespark.net/elec/periph/USB-FX2/software/

Many examples here work under Linux and Windows (with
minor modifications for Windows).
http://lea.hamradio.si/~s57uuu/uuusb/uuusb_software.htm

BTW, here is one Jtag example with EZ-USB FX2/FX2LP.
http://ixo-jtag.sourceforge.net/archive/ixo_de_usb_jtag.html

-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to