|
From: Tim R. <ti...@pr...> - 2012-01-17 17:55:45
|
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. -- Tim Roberts, ti...@pr... Providenza & Boekelheide, Inc. |