Attachments are accessible only for community members.
Anonymous
Not applicable
May 07, 2012
07:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 07, 2012
07:35 AM
A strange problem , i transfer data to EP0 with CyControl, when CyU3PUsbSendEP0Data is successfull, but CyU3PUsbGetEP0Data is failed, only receive, not transer, why? code: switch (rqt) { case 0xB0: status=CyU3PUsbSendEP0Data (8, (uint8_t *)glEp0Buffer); break; case 0xB1: status=CyU3PUsbGetEP0Data (glEp0BufferLenght,glEp0Buffer,NULL); break;
5 Replies
May 07, 2012
09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 07, 2012
09:15 AM
The data buffer has to be a mutiple of 16 bytes, the function will then return the actual number of bytes sent by the host. See the FX3APIGUIDE for more details. In your example what is the buffer length?
Sodafarl
Anonymous
Not applicable
May 07, 2012
09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 07, 2012
09:31 AM
What error value do you get in FX3 (not on PC side) in case of the error?
May 07, 2012
10:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 07, 2012
10:29 AM
I think it would be CY_U3P_ERROR_BAD_ARGUMENT.
Anonymous
Not applicable
May 07, 2012
08:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 07, 2012
08:57 PM
I am a Chinese,visit the website of the cypress is very slow,buffer size is 4096 byte
Anonymous
Not applicable
Feb 01, 2014
08:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 01, 2014
08:59 PM
@Sodafarl - I see no doco (now) that the buffer needs to be a multiple of 16 bytes.
There is mention that the buffer should be a multiple of the endpoint size for large reads, but always no more than the host request size