FX2 peripheral domain loopback test | Cypress Semiconductor
FX2 peripheral domain loopback test
I was conducting a loopback test (using the EP2 & EP6) FIFO's stricly in the peripheral domain. A DSP was sending data, through a static memory port, to EP6. Then, the cypress firmware was programmed to copy that data to EP2 at which point the DSP would read that data, from EP2, and EP2 would get emptied. The problem was that, because this was an internal loopback with no usage of the USB domain and host side, the empty flag and byte count for EP6 was not getting decreased after data was copied from EP6 to EP2. Therefore, EP6 is always growing and eventually it will get filled up. Is there some method of having the 8051 set the EP6 empty flag get set to 0 once EP6 gets copied to EP2 ? I attempted to write a zero back to it in the firmware code, but that had no effect.