On Tue, Mar 12, 2013 at 10:18 AM, Pete Batard <p...@akeo.ie> wrote:
> On 2013.03.11 15:22, Xiaofan Chen wrote:
>>>> BTW, how good is fxload now?
>
> Well, for FX2 we're still missing the capability to flash a firmware,
> which is why regardless of how far we we get with FX3, I'm likely to
> keep the issue open until I get a change to sort that last part out.

I think by "Flashing a firmware" you mean to be able to program the
EEPROM, right?

In that case, here is a patched version of fxload which can do
that. You may want to take a look at it and integrated the
changes to libusbx. But I have not tested it. This is from the
author of cycfx2prog.
http://www.triplespark.net/elec/periph/USB-FX2/eeprom/

> Last time I tried, I had trouble getting a stub binary that could do the
> flashing. If I recall correctly, the one provided by Cypress with their
> toolchain is not Open Source (or uses a license that we can't really
> subscribe to), and the non Cypress one didn't seem to work with our
> version of fxload, so I was planning to craft our own FLOSS version.
> ...
>Thanks. Still it'd be nicer if we could flash firmware, as it could open
> the door to having a comprehensive solution to flashing a firmware, for
> use with libusbx testing, without having to rely on anything but
> libusbx. This would make the development of additional libusbx tests
> (which we could most certainly use) more user friendly, and allow
> niceties such as automating a battery of tests, that may require
> different firmware/device features, on the fly...

The current libusbx fxload (as well as the GPL V2 cycfx2prog) only
downloads to the RAM. But it is actually good enough for testing libusbx.
On the other hand, it is good that libusbx fxload will have EEPROM
capability.

BTW, I believe quite some of the USB device only use the
EEPROM for the VID/PID (for Windows driver loading) and then
it seems to me the firmware hex is still download on the fly to the
RAM and run from there. In that case, they can easily update
the FW without much trouble.

My FX2 and FX2LP test boards are actually demo boards from
Analog Device. I just removed the EEPROM (so that I can put
it back if I need the demo board function) and then use fxload
or cycfx2prog or Cypress tool to download the firmware to
the RAM for testing.

-- 
Xiaofan

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to