Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How to increase transfer length in host application

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



How to increase transfer length in host application
Moderator:
RSKV

Post Reply
Follow this topic



How to increase transfer length in host application

dyNa posted on 01 Aug 2011 6:54 PM PST
Member
7 Forum Posts

Hello

I am testing  slave fifio sync with modified bulkloop host application.

With this function(success = dlg->InEndpt->FinishDataXfer(inData,inlen, &inOvLap,inContext);

The maximum transfer length of "inlen" is 4MBytes in the example code, but it is insufficient for my project.

Is there an any way to increase the length? I hope to expand it up to 16MBytes..

dyNa,   




Re: How to increase transfer length in host application

aasi posted on 02 Aug 2011 04:03 AM PST
Cypress Employee
1073 Forum Posts

dyna,

Can you point me to the line of code you're talking about?

There is a restriction of 2048 bytes on Transfer size in the c++ version of bulkloop host application are you talking about this?

Regards,

Anand



Re: How to increase transfer length in host application

dyNa posted on 07 Aug 2011 08:54 PM PST
Member
7 Forum Posts

Yes it is c++ version of bulkloop host application. I removed 2048 bytes restriction and put 4,000,000 in the transfer size.

In this modification, I measured about 120MBytes/sec with slavefifo sync firmware, but  when i put over 4,000,000 it does not work. I'd like to increase the transfer size up to 16,000,000, Is it possible?

Regards,

dyNa



Re: How to increase transfer length in host application

aasi posted on 09 Aug 2011 06:05 AM PST
Cypress Employee
1073 Forum Posts

4MB seems to be a OS based restriction. I'm currently checking if I can gather details of the exact problem. Will keep you posted on what I find.

Rather than triggering 16MB straight away have you tried queueing 4 X 4MB transfers?

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.