Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Increasing size of EP0 Buffer

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Increasing size of EP0 Buffer
Moderator:
RSKV

Post Reply
Follow this topic



Increasing size of EP0 Buffer

wglados posted on 19 Apr 2012 6:15 PM PST
Top Contributor
23 Forum Posts

 

Is it possible to increase the size of the EP0 buffer for FS and HS devices?

 

I see where it is set to 64 bytes in the USB descriptor C code.  Can we up it to something much larger, like 512 bytes?  We would like to be able to transfer larger chunks of data per vendor request.




Re: Increasing size of EP0 Buffer

RobK posted on 20 Apr 2012 11:51 PM PST
Top Contributor
56 Forum Posts

Hi,

I think, the USB-specification only allows EP0-sizes of:

LowSpeed = 8 Bytes

FullSpeed = 8, 16, 32, or 64 Bytes

HighSpeed = 64 Bytes

SuperSpeed = 512 Bytes

 

Regards!



Re: Increasing size of EP0 Buffer

sodafarl posted on 20 Apr 2012 07:18 AM PST
Top Contributor
128 Forum Posts

Hi,

You should be able to send 65536 bytes per vendor request in HS and SS don't know what this is in FS. The host controller and driver in the computer will then divide this into the required USB packet sizes, 64 or 512. At the device end you will need a buffer big enough to hold the maximum transfer or if the buffer is smaller than the maximum transfer you will need some way to signal the host to hold off tranfers until the buffer is free again.

Sodafarl






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.