Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FinishDataXfer fail

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



FinishDataXfer fail
Moderator:
RSKV

Post Reply
Follow this topic



FinishDataXfer fail

hcshin posted on 15 Nov 2011 10:34 PM PST
Senior Member
14 Forum Posts

Hi,

 

In Streamer application, FinishDataXfer failure merely counts up failure variable.

What's exact meaning of it?

and, I wonder how retry mechanism be implemented in FX3.

Regards,

HC




Re: FinishDataXfer fail

aasi posted on 16 Nov 2011 02:12 AM PST
Cypress Employee
1073 Forum Posts

Hi,

If you look at streamer closely it doesn't do anything with the data it just gives a way to look at the transfer speed, failure and success etc with different queue and packet per transfer numbers.

So it just updates the failure number in case Finishdataxfer fails. You can tweak the working based on your end application.

 

When you say retry are you talking about retry at the protocol level (in case of CRC error etc) or application level (retry if a transfer doesn't complete within the timeout period?

Regards,

Anand



Re: FinishDataXfer fail

hcshin posted on 16 Nov 2011 05:15 PM PST
Senior Member
14 Forum Posts

Hi,

I asked the meaning of a failure return of FinishDataXfer function.

Why does the FinishDataXfer function return fail, and Which case does the FinishDataXfer function return fail,

and What should I do when the FinishDataXfer function returns fail?

 

In case of CRC error, there is no document about it.

so I think FX3 user has no need to consider this error because FX3 controller and host driver handle this error automatically.

Am I right?

 

Best Regards,

HC



Re: FinishDataXfer fail

aasi posted on 16 Nov 2011 08:26 PM PST
Cypress Employee
1073 Forum Posts

Finishdataxfer can fail for a list of reasons like

Endpoint not responding

Endpoint stalls

Timeout specified is too small that enough data couldn't be transferred within time and a bunch of other OS related violation (allocating very large buffer etc).

 

CRC error will be handled by FX3 and host since USB protocol dictates how that should be handled. You should be aware that most host do 3 retries before they give up on errors.

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.