|
From: michele.paolino <mic...@st...> - 2012-01-18 11:00:49
|
On Tue, Jan 17, 2012 at 6:55 PM, Tim Roberts <ti...@pr...> wrote: > michele.paolino wrote: > > > > About Cypress FX2, I have configured EP2 (and EP6) FIFO in AUTO mode. > > I would like to be able to write to FX2 through EP2 and read through > > EP6. I used as fw.c (the file that describes the framework) the > > original one. In the other C File the only modified function is > > TD_Init as below. Maybe I'm wrong, but I think that FX2 is properly > > configured (I have read the manual thousands of times :-( ). > > "Auto" mode merely means that the packet will be sent as soon as there > are enough bytes in the FIFO. However, someone, somewhere still has to > put bytes in the FIFO. I don't see that you are doing that. If you > want to do loopback, then you have to have FX2 code that copies from the > endpoint 2 FIFO into the endpoint 6 FIFO. > > > I have removed SYNCDELAY between every line to reduce the numbers of > > lines: > > Remember that only certain registers need the SYNCDELAY. The list is > long, but it does not include every register. > I want to use FX2 to send and reveive packets between Pc and FPGA. For test purposes I think that also loopback could be fine. I understood that Auto mode give the possibility to send/receive packets automatically, without the firmware aid...but clearly I'm wrong. So I'll take a look to my firmware. Thank you for your useful advices. > -- > Tim Roberts, ti...@pr... > Providenza & Boekelheide, Inc. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Libusb-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > > > -- Michele Paolino |