Re: [Fx2lib-devel] CYStream
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2010-01-22 16:12:43
|
You can ignore the unreferenced arguments. Those are for supporting more than one interface/alt interface etc. The warning at 587 is not good though. That means you have unreachable code probably, probably a conditional that always evaluates to TRUE (like x=1 instead of x==1) The CyStream example I posted was quite a bit back. Current fx2lib is very close to an 0.2 release. I'd bet most of it is still compatible but there are a couple headers that have changed and the i2c routines are slightly different. Look at the RENUMERATE and RENUMERATE_UNCOND() macro documentation in fx2macros.h. You need a different macro depending on your setup. The later must be used if you want to load firmware over a running firmware and change the device descriptor. (The former would still be using the same device descriptor). You can't always use the later though, loading from the eeprom will cause windows USB warnings/errors about the device not working right if you use the later. As far as the device not working/responding. Do you have a serial cable/console? You can debug what is going on pretty easily by watching io output on the serial console. I purposely didn't add the cystream example to the fx2lib repo because it was quite a bit of Cypress Authored code. You can use the bulkloop example to do about the same thing though if you have too much trouble with the cystream post. Let us know how it goes. -Dennis S S wrote: > Looks like there are some warnings when compiling the firmware: > > sdcc -mmcs51 --xram-size 0x0800 --code-size 0x2e00 --xram-loc 0x3200 > -Wl"-b DSCR_AREA = 0x2e00" -Wl"-b INT2JT = 0x3000" -c > -I../../../mulicheng-fx2lib-0925334/include CYStream.c > CYStream.c:280: warning 85: in function handle_vendorcommand > unreferenced function argument : 'cmd' > CYStream.c:285: warning 85: in function handle_get_interface > unreferenced function argument : 'ifc' > CYStream.c:587: warning 110: conditional flow changed by optimizer: so > said EVELYN the modified DOG > CYStream.c:593: warning 85: in function handle_set_interface > unreferenced function argument : 'ifc' > sdcc -mmcs51 --xram-size 0x0800 --code-size 0x2e00 --xram-loc 0x3200 > -Wl"-b DSCR_AREA = 0x2e00" -Wl"-b INT2JT = 0x3000" fw.rel > CYStream.rel dscr.rel fx2.lib -L../../../mulicheng-fx2lib-0925334/lib > -o firmware.ihx > > Cheers, > > Sébastien > > ------------------------------------------------------------------------ > From: ss...@ho... > To: fx2...@li... > Date: Fri, 22 Jan 2010 14:56:39 +0000 > Subject: [Fx2lib-devel] CYStream > > Hi Dennis, > > Does the CYStream example work with the version of the lib pulled from > the git directory? > I am able to load the firmware in RAM or EEPROM but the device doesn't > seem to enumerate properly. > When loaded in RAM the pid doesn't get updated (still shows as 0x8613 > as per default) and when I load it into eeprom if I unplugged and > re-plug the device it seems to hang up (when doing lsusb the command > hangs up). > > Cheers, > > Sébastien > > ------------------------------------------------------------------------ > Not got a Hotmail account? Sign-up now - Free > <http://clk.atdmt.com/UKM/go/197222280/direct/01/> > ------------------------------------------------------------------------ > Do you have a story that started on Hotmail? Tell us now > <http://clk.atdmt.com/UKM/go/195013117/direct/01/> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > ------------------------------------------------------------------------ > > _______________________________________________ > Fx2lib-devel mailing list > Fx2...@li... > https://lists.sourceforge.net/lists/listinfo/fx2lib-devel > |