Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Maximum size of DMA Buffer

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



Maximum size of DMA Buffer
Moderator:
RSKV

Post Reply
Follow this topic



Maximum size of DMA Buffer

ROS_AIE posted on 30 Nov 2011 4:56 AM PST
Member
8 Forum Posts

Hi,

What's the maximum size of DMA Buffer on the Cypress FX3 ?

I've do some tryies :

- 256 Buffer of 1024 B (256 kB)

- 16 Buffer of 16 kB (256 kB)

But when i want to take more size, the device does not work.

That's possible ? how ?

I'm interested about 512 kB or 1 MB (1024 kB - 1048576 Bytes).

 

Regards,

Rodolphe

 




Re: Maximum size of DMA Buffer

aasi posted on 30 Nov 2011 09:46 PM PST
Cypress Employee
1073 Forum Posts

Hi,

The system memory is 512kB, the system memory contains the firmware, DMA buffer, DMA descriptor and cache (page 24 of programmer's manual).

The API user guide specifies 64kB as the recommended buffer size (page 57 of FX3 API user guide)

Regards,

Anand



Re: Maximum size of DMA Buffer

ROS_AIE posted on 01 Dec 2011 03:20 AM PST
Member
8 Forum Posts

Hi Anand,

 

Thanks for your answer, but when using 64KB buffer, it is impossible to make some transferts. What's the problem ?

(I take 4 buffer of 64 KB)

 

I think using 16Kb DMA size is the better way, according with the maximum burst size, isnt it ?

 

Another Questions :

2. Using CY_U3P_DMA_MODE_BUFFER is faster than CY_U3P_DMA_MODE_BYTE ?

3. During my benchmarks, i saw that some packets were transfered up to 325 MB/s, and some others at less than 150 MB/s, with an average of 250 MB/s without failures transferts. Do you know why ? And how I can stabilize the bandwith in the better and the faster way?



Re: Maximum size of DMA Buffer

aasi posted on 02 Dec 2011 01:43 AM PST
Cypress Employee
1073 Forum Posts

When you say transfer is impossible are you not able to use the endpoint at all or few transfers of failing?

Transfer speed is kind of subjective it can't really be commented upon. It is just a method as to whether you want your end application to wait for a particular byte count or buffer count before it transfers the data.

When you say speed varies, do you mean there are INs and the device NAKs sometimes (leading to bandwidth reduction) or there are INs sent at varying rate?

Regards,

Anand



Re: Maximum size of DMA Buffer

ROS_AIE posted on 02 Dec 2011 04:51 AM PST
Member
8 Forum Posts

Transfers are impossible because there are an error :
- CyU3PDmaChannelConfig_t uint16_t size;
- The size is stocked on 16 bit, so : 2^16 = 65536
There are 65536 values, 0 to 65535. (unsigned int,16 bit)
It's impossible to set 64Kb.

Speed varying by transfering INs and OUTs at varying rate, without any failure transfert.

 

Regars,

Rodolphe



Re: Maximum size of DMA Buffer

aasi posted on 02 Dec 2011 07:17 AM PST
Cypress Employee
1073 Forum Posts

The maximum size is 64k - 16. Sorry my bad with 64k.

Windows 8 will support USB3 natively and the host controllers are also maturing. Given that the varying rate is due to host not sending IN requests I don't think there is much that can be done at this point of time.

Regards,

Anand






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.