2 Replies Latest reply on Aug 12, 2013 12:30 PM by sandra.yu

    FX3 got CY_U3P_ERROR_INVALID_SEQUENCE error occasionally after calling CyU3PDmaMultiChannelCommitBuffer()

    sandra.yu
              Hi, I am using FX3 to interface with MT9P031 image sensor. The PC is using Cypress generic driver, CyUSB.dll, to receive image data through Bulk endpoint. I notice that when running in USB3.0, everything works well in receiving 10MB of image snapshot. When I switch to USB2.0, I occasionally got an CY_U3P_ERROR_INVALID_SEQUENCE error after calling CyU3PDmaMultiChannelCommitBuffer(). On the PC side there is only 4MB of data being received, instead of 10MB. Once the error occurs, nothing will work again and I have to reboot FX3. When I try to receive smaller size image, below 4MB, everything works well both on USB3.0 and USB2.0. I just wonder whether anyone has seen similar problem. It does seem to be some buffer overflow issue. The image sensor is running 24MHz, so with USB2.0, it should be fast enough to transfer the data. Right now I am not sure whether it is a PC driver issue or a firmware issue.