- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Information of my project:
1, Chip is CY7C68013A and bulk frame length is 64.
2, Library in Cypress Suite USB Release 3.4.7 is used.
3, Bulk data length is 16*1024 when call BulkInEndPoint::XferData().
BulkInEndPoint::XferData() is failed occasionally with data length less than 16*1024 when i plugged into a USB flash disk.
When will BulkInEndPoint::XferData() return fail or without enough data ???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Yes, you can use it for XP.
Please use the UsbdStatus function under CCyUSBEndPoint (refer to the API document) to retrieve the error code returned from the last call to XferData.
Once you get the Error code, you can use the code to check the error details from the Microsoft page: https://docs.microsoft.com/en-us/previous-versions/windows/hardware/drivers/ff539136(v=vs.85)?redire...
Regards,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you please let me know if you are using the CyAPI.lib or the CyUSB.dll in your host application?
Please use the cpp or C_sharp libraries available in the FX3 SDK 1.3.4.
You can try checking the value returned by the API.
If sufficient data is not available to be read from the device by the application, the API will return a Timeout error.
Regards,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes,
CyAPI.lib is used in my application.
The default Timeout value is 1s, and XferData() is return before it.
I read the API documentation carefully found no answer. (CyAPI.chm)
Is it suitable for Windows XP and CY7C68013A ?
Thx a lot for answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Yes, you can use it for XP.
Please use the UsbdStatus function under CCyUSBEndPoint (refer to the API document) to retrieve the error code returned from the last call to XferData.
Once you get the Error code, you can use the code to check the error details from the Microsoft page: https://docs.microsoft.com/en-us/previous-versions/windows/hardware/drivers/ff539136(v=vs.85)?redire...
Regards,
Yatheesh