Re: [Fx2lib-devel] Problem with running bulkloop example from fx2lib against CY3684 eval
Status: Beta
Brought to you by:
mulicheng
From: Dennis M. <de...@ub...> - 2009-06-26 21:59:08
|
bali asur wrote: > Hello friends: > > Let me start by saying that this project is wonderful. Using sdcc to compile > 8051 code is brilliant. > Thanks! It's working quite well for us actually. We've released a firmware on one PCB and are having quite good luck with it. SDCC does a good job with 8051 assembly. > I am running the fx2lib sample code against a CY3684 development platform. > I am using the usb skeleton driver code with the only change being the addition > of VID/PID of the FX2 after re-enumeration. > > On the application side, I have written a simple application that opens up > /dev/skel01, and writes and then reads from it. > > I have been able to compile the bulkloop sample code in fx2lib, with the only > change being that I had to change the call handle_setupdata(). The > handle_setupdata() call needs a TRUE or FALSE paramater. What should this > parameter be? I have currently set this to FALSE. > What version are you using? The lastest code checked into git doesn't include a parameter for that function. > I have also been able to load the compiled *.ihx file using the > cycfx2prog program, > and the chip re-enumerates itself to PID 0x1004. However my > application to write > and the read from the device fails, specifically no data is being read back. > > However utilizing the compiled Cypress bulkloop.hex firmware, which I > load utilizing > the 'fxload' program the application I wrote works. > > Any thoughts or ideas on this problem are welcome, any suggestions on > what to try > next are appreciated? > Since you have the devel board, I made the most progress when I first started by enabling console IO on the serial port. You can also use the light on/off functions when your firmware boots to help you figure out how far you're getting. Do report back and feel free to comment on fx2lib function implementations if you find bugs or ways to improve. Best wishes! -Dennis |