Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > DMA buffer size

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



DMA buffer size
Moderator:
RSKV

Post Reply
Follow this topic



DMA buffer size

Ayi posted on 21 Aug 2012 11:21 PM PST
Top Contributor
23 Forum Posts

With usb 3.0 mode .   dmaSlFifoConfig.size = size * 16; it  doesn't work ,the size is 1024 .But if change to       dmaSlFifoConfig.size = size/2; it works but the speed only 8M around .how can i solve the problem ,I am hurry it .

develop with sdk v1.2 . 

 /* Create a DMA MANUAL Channel between P-port producer socket and U-port consumer socket */

            //dmaSlFifoConfig.size = size  * 16;

            dmaSlFifoConfig.size = size;

            dmaSlFifoConfig.count = CY_FX_SLFIFO_DMA_BUF_COUNT;

            dmaSlFifoConfig.prodSckId = (CyU3PDmaSocketId_t)(CY_FX_EP_PRODUCER_PPORT_SOCKET);

            dmaSlFifoConfig.consSckId = (CyU3PDmaSocketId_t)(CY_U3P_UIB_SOCKET_CONS_0 | CY_FX_EP_CONSUMER_USB_SOCKET);

            dmaSlFifoConfig.dmaMode = CY_U3P_DMA_MODE_BYTE;

            dmaSlFifoConfig.notification = 0;//CY_U3P_DMA_CB_PROD_EVENT;

//            dmaSlFifoConfig.cb = CyFxSlFifoPtoUDmaCallback

            dmaSlFifoConfig.cb = NULL;

            dmaSlFifoConfig.prodHeader = 0;

            dmaSlFifoConfig.prodFooter = 0;

            dmaSlFifoConfig.consHeader = 0;

            dmaSlFifoConfig.prodAvailCount = 0;

            /* Create the channel */

            apiRetStatus = CyU3PDmaChannelCreate (&glChHandleSlFifoPtoU,

                                                  CY_U3P_DMA_TYPE_AUTO,

                                                  &dmaSlFifoConfig);




Re: DMA buffer size

Lumpi6 posted on 21 Aug 2012 01:10 AM PST
Top Contributor
183 Forum Posts

Hi Ayi,

 

sounds like your application has not enough free RAM. I think cypress changed something in the Version 1.2 so from 0x40078000 to 0x40080000 are 32KB reserved for bootloader. May be now you can not allocate that much DMA memory. I think in the release notes of Versioin 1.2 it says that space is for bootloader and if you do not use it, then you can change the value back to 0x40080000.

Regards

Lumpi



Re: DMA buffer size

Ayi posted on 21 Aug 2012 06:23 PM PST
Top Contributor
23 Forum Posts

hi Lumpi6 Thanks for your replay ,I noticed the size 0x4008000,But cypress change the size and then it is some reason.How can I change to make the DMA transfer tuth supper speed .can you help me 



Re: DMA buffer size

Ayi posted on 21 Aug 2012 06:41 PM PST
Top Contributor
23 Forum Posts

 Hi Lumpi6

 

I change the size back to 0x4008000 and it doesn't work too.So i think it isn't the toot  of the problem.And if I change the file cyfxapi.a back to sdk v1.1 then it work well.So can you take me out of the issue. I am hurry it .






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.