How to receive residual data in FX3 cyusb3014? | Cypress Semiconductor
How to receive residual data in FX3 cyusb3014?
Hi, dear friends,
I met a problem in FX3 to receive residual data in FX3: in order to achieve high speed, I set a large transfer data length for XferData() function, such as 1024*128, but at the end of the data transfer, there will be a little amount of data smaller than 1024*128. So when XferData() time out and meet error, I call XferData()again and try a smaller data length , but It's will never succeed and can't receive the data tail . But if I set a smaller data length all the time, I can receive the tail.
Does anybody know how to solve this problem? Thank you very much and best wishes.