Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > DMA channel abort/reset/destroy go hung-up

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



DMA channel abort/reset/destroy go hung-up
Moderator:
RSKV

Post Reply
Follow this topic



DMA channel abort/reset/destroy go hung-up

Kudoh posted on 08 Jun 2012 6:47 AM PST
Senior Member
16 Forum Posts

Hi,

I'm using GPIF-II and Bulk-IN transfer with auto-type DMA, infinite size, like this:

CyU3PDmaChannelCreate (&DmaChannel, CY_U3P_DMA_TYPE_AUTO, &DMACfg);

CyU3PDmaChannelSetXfer(&DmaChannel, 0);

Then, when I stop DMA with CyU3PDmaChannelAbort(), CyU3PDmaChannelReset(), or CyU3PDmaChannelDestroy(),

sometimes these APIs hung up, not return from function.

(It occurs in SuperSpeed only, I have looked...)

 

How can I stop DMA safely?




Re: DMA channel abort/reset/destroy go hung-up

RSKV posted on 09 Jun 2012 05:20 AM PST
Cypress Employee
655 Forum Posts

 You can stop DMA safely using 

CyU3PDmaChannelReset() and CyU3PDmaChannelDestroy().

Also if you want to flush the EP then you need to use CyU3PUsbFlushEp.

This is what we have used so far and it is working fine for us.

Thanks,

sai krishna.

 



Re: DMA channel abort/reset/destroy go hung-up

RSKV posted on 09 Jun 2012 05:22 AM PST
Cypress Employee
655 Forum Posts

 If it is not working still then please create a Technical support case by attaching your project code.

Our guys will look into it.

Thanks,

sai krishna.






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.