From: Johannes S. <js...@si...> - 2012-01-17 15:26:06
|
On Tue, Jan 17, 2012 at 03:51:14PM +0100, 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 :-( ). I have removed SYNCDELAY between every line to > reduce the numbers of lines: > > void TD_Init( void ) I'm not familiar with Keil tools, I worked on Linux with sdcc + fx2lib. The relevant part is that the SET_CONFIGURATION handler somehow sets the appropriate bits in the TOGCTL register. The examples from Cypress website (which include VendAx used by fxload to program the EEPROM) fail to do it, they only do it in CLEAR_FEATURE(EP_HALT). http://www.cypress.com/?rID=14321 HTH Johannes |