Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Bulk-Mode Burstsize and dma-buffers in FX3

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



Bulk-Mode Burstsize and dma-buffers in FX3
Moderator:
RSKV

Post Reply
Follow this topic



Bulk-Mode Burstsize and dma-buffers in FX3

usbstream posted on 10 Oct 2011 3:03 AM PST
Member
4 Forum Posts

 Hello

 

I´ve experienced problems with burstsize > 8 when setting up a bulk endoint at the fx3.

Using code like:

        endPointConfig.enable = 1;

        endPointConfig.epType = CY_U3P_USB_EP_BULK;

        endPointConfig.burstLen = 16;

        endPointConfig.streams = 0;

 

        /* Configure the Endpoint */

        apiRetStatus = CyU3PSetEpConfig(CY_FX_EP_PRODUCER,&endPointConfig);

        if (apiRetStatus != CY_U3P_SUCCESS)

        {

            /* Error Handling */

            CyU3PDebugPrint (4, "USB Set Endpoint config failed, Error Code = %d\n",apiRetStatus);

        }

Throws an error 64 when calling CyU3PSetEpConfig.
Using endPointConfig.burstLen = 16 seems to work.
Is the burstlength in fx3 limited to 8 ?
 
Another question is the relation between dma-buffersize an burstlength.
It seems to work when i do a cpu to endpoint dma with a buffer-size of 16*1024 to a endpoint with a burstsize of 8.
Ist that ok ?
E.g. does that mean there is no fixed relationship between endpoint burstlength and dma-buffersize within the fx3 device ?
 
best regards
 




Update: Bulk-Mode Burstsize and dma-buffers in FX3

usbstream posted on 10 Oct 2011 05:27 AM PST
Member
4 Forum Posts

One update

 

it looks like i can go up to 

endPointConfig.burstLen = 15;

whitout getting an error ??

 

Does that mean burstLen = 15 means a burst of 16 ???

 

regards

usbstream

 

 



Re: Bulk-Mode Burstsize and dma-buffers in FX3

Chris R. posted on 10 Oct 2011 09:34 PM PST
Top Contributor
135 Forum Posts

Yes, like the descriptor value the value is burst length -1 there. 0 is for 1 packet per burst.



Re: Bulk-Mode Burstsize and dma-buffers in FX3

usbstream posted on 20 Oct 2011 07:43 AM PST
Member
4 Forum Posts

Thanks.

 

That instresting because at least at the  example cyfxbulklpmanual there is a descritor-setting for burst of 0 and a burstlen-setting of the endpoint of 1.  This pushed me the wrong direction....

 

rgards

Uwe






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.