Anonymous
Not applicable
May 11, 2013
09:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 11, 2013
09:47 AM
Hi
I want to use like following
LONG length = 2592// custom length
if (USBDevice->BulkInEndPt) {
USBDevice->BulkInEndPt->XferData(buf, length);
But this is happen to error in PC application.
Can i use custom length in slave fifo mode?
3 Replies
Anonymous
Not applicable
May 12, 2013
02:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 12, 2013
02:17 PM
What is the error code that you're getting? One thing that comes to mind is if you request 2592 bytes and all that the device is sending are 512 byte packets then there is one possible error scenarios might run into. After five 512 byte transfers the device sends a 512 byte packet (or any packet size greater than 32 bytes) will lead to buffer overflow causing error.
Sep 13, 2016
02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 13, 2016
02:13 AM
You said that "After five 512 byte transfers the device sends a 512 byte packet (or any packet size greater than 32 bytes) will lead to buffer overflow causing error."
Did you mean that After six 512 byte transfer then ignore 480 Bytes or something else?
Anonymous
Not applicable
May 12, 2013
05:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 12, 2013
05:22 PM
Yes you right
I fix them.
Thanks