Cypress技术william hill官网
直播中

倪驰銮

7年用户 204经验值
私信 关注
[问答]

调用CyU3PDmaMultiChannelCommitBuffer()后FX3偶尔出现CY_U3P_ERROR_INVALID_SEQUENCE错误

你好,我用FX3与MT9P031图像传感器接口。PC使用CyPress通用驱动程序CyUSB.dll通过批量端点接收图像数据。我注意到,当运行在UB3.0中时,在接收10MB的图像快照时,一切都很好。当我切换到USB2.0时,在调用CYU3PDMALUtiGCHANNEL COMPRESBUFER()之后,偶尔会遇到CyuU3PyErrRoEnguliDista序列错误。在PC端,只有4MB的数据被接收,而不是10MB。一旦出现错误,什么都不能工作,我必须重新启动FX3。当我尝试接收更小尺寸的图像,低于4MB时,无论在USB3.0还是USB2.0上都能很好地工作。我只是想知道是否有人见过类似的问题。它似乎是一些缓冲区溢出问题。图像传感器运行24MHz,因此使用USB2.0,它应该足够快来传输数据。现在我不确定它是PC驱动程序问题还是固件问题。

以上来自于百度翻译


     以下为原文
          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.   

回帖(2)

韩俊

2019-6-21 16:03:42
您好!
你使用的是哪些OS,什么是XFELSE?
你能试着每次请求4MB吗?
也检查这个链接:HTTP://MSDN.MySo.CON/E-US/Labalay/FF58112.ASPX
您可以找到各种Windows操作系统的最大批量传输大小。
谢谢
尼基尔

以上来自于百度翻译


     以下为原文
   Hi
    Which OS are you using and what is xfersize you are setting?
    Can you try requesting 4MB each time?
    Also check this link out: http://msdn.microsoft.com/en-us/library/ff538112.aspx
    You can find max bulk transfer sizes for various Windows OS.
     
    Thanks
    Nikhil
举报

倪驰銮

2019-6-21 16:12:43
嗨,我使用VS2010在窗口7位64与CyPress SDK 1.2。我能够使它至少部分地通过一次接收4MB数据来工作。偶尔收到最后2MB数据仍然失败,但它比以前工作得更好。至少FX3不会停滞并能够恢复。我不确定为什么它会偶尔收到最后2MB失败。有什么想法吗?谢谢!

以上来自于百度翻译


     以下为原文
          Hi, I am using VS2010 on Window 7 64-bit with Cypress SDK 1.2. I was able to make it work at least partially by receiving 4MB data at a time. Occasionally it still fails on receiving the last 2Mb of data, but it works much better than before. At least FX3 will not stall and able to recover. I am not sure why it will occasionally fail on receiving the last 2Mb. Any idea? Thanks!   
举报

更多回帖

发帖
×
20
完善资料,
赚取积分