- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey all,
I'm working on trying to work on improving the ability of a USB Device to recover after some error on the .NET side of things (timeout, buffer size mismatch when reading, etc). I'd like to be able to completely clear the out/in end points used in a given operation when such an error occurs. From the documentation, it sounds like the abort operation is supposed to do this. However, when I attempt to use this operation from the Cypress Control Panel it doesn't clear out the IN end point, despite "succeeding."
Is my understanding of the abort operation incorrect? Or is there something I need to do so that the abort operation will work properly? If this is not the intention of the abort command, what would be the suggested approach to implementing such a recovery mechanism?
Thanks,
Ryan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Ryan,
The 'Abort' option on the Cypress USB Control Center cancels any pending IO requests from the host and not the data that is present in the FX2LP buffers. In order to flush the contents of the buffer, the FIFORESET register should be loaded with the appropriate values. Please refer to section 9.3.13 - Aborting Packets in FIFO while in AUTOIN mode in the EZUSB - Technical Reference Manual
http://www.cypress.com/file/126446/download
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Ryan,
The 'Abort' option on the Cypress USB Control Center cancels any pending IO requests from the host and not the data that is present in the FX2LP buffers. In order to flush the contents of the buffer, the FIFORESET register should be loaded with the appropriate values. Please refer to section 9.3.13 - Aborting Packets in FIFO while in AUTOIN mode in the EZUSB - Technical Reference Manual
http://www.cypress.com/file/126446/download
Best regards,
Srinath S