Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > CPU==GPIFII : How to create multi DMA ch

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



CPU==GPIFII : How to create multi DMA ch
Moderator:
RSKV

Post Reply
Follow this topic



CPU==GPIFII : How to create multi DMA ch

sumitsu posted on 24 Oct 2012 12:28 AM PST
Member
3 Forum Posts
GPIFII is master mode, I try to create "CY_U3P_DMA_TYPE_MANUAL_IN" DMA channel(CH1) and "CY_U3P_DMA_TYPE_MANUAL_OUT" channel(CH0). However, I can only create CH0 or CH1. When I create "CY_U3P_DMA_TYPE_MANUAL_OUT" & " _IN" channel, I write the code as below. To start the "GPIF state machine", I created "prodSckId" by using "CY_U3P_PIB_SOCKET_0" then called "CyU3PDmaChannelSetupRecvBuffer()". This procedure is fine. I got my expected function. However, it didn't run when I used "CY_U3P_PIB_SOCKET_1" instead of "CY_U3P_PIB_SOCKET_0". I want to cretae IN DMA channel(CH1) and OUT DMA channel(CH0). So, I use "CY_U3P_PIB_SOCKET_1" for CH1 and "CY_U3P_PIB_SOCKET_0" for CH0. However, it doesn't run in case of using "CY_U3P_PIB_SOCKET_1". Why? dmaCfg.size = 512; dmaCfg.count = 0; dmaCfg.prodAvailCount = 0; dmaCfg.dmaMode = CY_U3P_DMA_MODE_BYTE; dmaCfg.prodHeader = 0; dmaCfg.prodFooter = 0; dmaCfg.consHeader = 0; dmaCfg.notification = 0; dmaCfg.cb = NULL; // CH1(GPIF2 to CPU) // dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_0; // OK dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_1; // NG dmaCfg.consSckId = CY_U3P_CPU_SOCKET_CONS; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegIn, CY_U3P_DMA_TYPE_MANUAL_IN, &dmaCfg ); // CH0(CPU to GPIF2) dmaCfg.prodSckId = CY_U3P_CPU_SOCKET_PROD; dmaCfg.consSckId = CY_U3P_PIB_SOCKET_0; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegOut, CY_U3P_DMA_TYPE_MANUAL_OUT, &dmaCfg );


Re: CPU==GPIFII : How to create multi DMA ch

sumitsu posted on 24 Oct 2012 12:32 AM PST
Member
3 Forum Posts


CPU==GPIFII : How to create multi DMA ch

sumitsu posted on 24 Oct 2012 12:45 AM PST
Member
3 Forum Posts
Re-POST, again..... GPIFII is master mode, I try to create "CY_U3P_DMA_TYPE_MANUAL_IN" DMA channel(CH1) and "CY_U3P_DMA_TYPE_MANUAL_OUT" channel(CH0). However, I can only create CH0 or CH1. When I create "CY_U3P_DMA_TYPE_MANUAL_OUT" & " _IN" channel, I write the code as below. To start the "GPIF state machine", I created "prodSckId" by using "CY_U3P_PIB_SOCKET_0" then called "CyU3PDmaChannelSetupRecvBuffer()". This procedure is fine. I got my expected function. However, it didn't run when I used "CY_U3P_PIB_SOCKET_1" instead of "CY_U3P_PIB_SOCKET_0". I want to cretae IN DMA channel(CH1) and OUT DMA channel(CH0). So, I use "CY_U3P_PIB_SOCKET_1" for CH1 and "CY_U3P_PIB_SOCKET_0" for CH0. However, it doesn't run in case of using "CY_U3P_PIB_SOCKET_1". Why? dmaCfg.size = 512; dmaCfg.count = 0; dmaCfg.prodAvailCount = 0; dmaCfg.dmaMode = CY_U3P_DMA_MODE_BYTE; dmaCfg.prodHeader = 0; dmaCfg.prodFooter = 0; dmaCfg.consHeader = 0; dmaCfg.notification = 0; dmaCfg.cb = NULL; // CH1(GPIF2 to CPU) // dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_0; // OK dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_1; // NG dmaCfg.consSckId = CY_U3P_CPU_SOCKET_CONS; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegIn, CY_U3P_DMA_TYPE_MANUAL_IN, &dmaCfg ); // CH0(CPU to GPIF2) dmaCfg.prodSckId = CY_U3P_CPU_SOCKET_PROD; dmaCfg.consSckId = CY_U3P_PIB_SOCKET_0; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegOut, CY_U3P_DMA_TYPE_MANUAL_OUT, &dmaCfg );

Re: CPU==GPIFII : How to create multi DMA ch

RSKV posted on 24 Oct 2012 02:17 AM PST
Cypress Employee
655 Forum Posts

Sumitsu,

Could you please attach your project source code, if possible.

If not, please paste the part of code where you are creating both of these channels.

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.