Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Which workaround for known ZLP Bug on SDK 1.2.1

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



Which workaround for known ZLP Bug on SDK 1.2.1
Moderator:
RSKV

Post Reply
Follow this topic



Which workaround for known ZLP Bug on SDK 1.2.1

MarcoH123 posted on 05 Dec 2012 11:03 AM PST
Senior Member
17 Forum Posts

Hi,


I’m using the sync. slave interface  (32bit) with an auto DMA channel to connect an FPGA to an Bulk-In-EP with 16 burst's.
I have the known Problem on SDK 1.2.1, that after a ZLP I loose some data. If I wait some time after the ZLP, for example 150us, it works a little bit better. It will be better, if I wait more time like 1ms. But I think this is not a good solution, because there is no specified time on which it is safety. The next workaround to wait of EOP and suspend the DMA is not possible because it is an auto DMA channel and the FX Application don’t know the state of the transfer.

Have somebody a better workaround or a solution to fix the problem?

 

 




Re: Which workaround for known ZLP Bug on SDK 1.2.1

RSKV posted on 06 Dec 2012 03:29 AM PST
Cypress Employee
655 Forum Posts

The Suspend solution works on AUTO DMA channels as well. You need to setup the channel to suspend on CY_U3P_DMA_SCK_SUSP_EOP on the consumer (USB) side. 

e.g.: CyU3PDmaChannelSetSuspend (chHandle, CY_U3P_DMA_SCK_SUSP_NONE, CY_U3P_DMA_SCK_SUSP_EOP); 

Then in the DMA callback for the CY_U3P_DMA_CB_CONS_SUSP event, the channel operation can be resumed (CyU3PDmaChannelResume). It may be a good idea to insert a small delay (about CyU3PBusyWait (50)) before calling channel resume. We have seen that this solution works for at least a couple of customers.

 

Thanks,

Sai Krishna.



Re: Which workaround for known ZLP Bug on SDK 1.2.1

RSKV posted on 06 Dec 2012 03:30 AM PST
Cypress Employee
655 Forum Posts

Follow on thread...

http://www.cypress.com/?app=forum&id=167&rID=72933

 






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.