cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

ViKu_2048416
New Contributor II

Hi,

We are exploring Cypress example code (MSC) for our project. We have not modified anything int the example. But the below dma channel creation failed with bad parameters as a status return,

         /* Create a DMA Manual IN channel between USB Producer socket

               and the CPU */

            /* DMA size is set above based on the USB Bus Speed */

            dmaConfig.count = CY_FX_MSC_DMA_BUF_COUNT;

            dmaConfig.prodSckId = (CyU3PDmaSocketId_t)(CY_U3P_UIB_SOCKET_PROD_0 | CY_FX_MSC_EP_BULK_OUT_SOCKET);

            dmaConfig.consSckId = CY_U3P_CPU_SOCKET_CONS;

            dmaConfig.dmaMode = CY_U3P_DMA_MODE_BYTE;

            dmaConfig.notification = 0;

            dmaConfig.cb = NULL;

            dmaConfig.prodHeader = 0;

            dmaConfig.prodFooter = 0;

            dmaConfig.consHeader = 0;

            dmaConfig.prodAvailCount = 0;

            /* Create the channel */

            apiRetStatus = CyU3PDmaChannelCreate (&glChHandleMscIn, CY_U3P_DMA_TYPE_MANUAL_IN, &dmaConfig);

Please guide us to solve this issue,

Thanks and Regards,

Vignesh Kumar R.

0 Likes
1 Solution
NoriakiT_91
Employee

I have no problem in my environment.

Hardware: CYUSB3KIT-003

Software: FX3 SDK V1.3.4

Application: USBMassStorageDemo (cyfxmscdemo)

Which of CY_U3P_DMA_TYPE_MANUAL_IN or CY_U3P_DMA_TYPE_MANUAL_OUT do you mention about the DMA channel?

When I used the debugger, the dmaConfig structure is as follows.

For glChHandleMscOut, CY_U3P_DMA_TYPE_MANUAL_IN

GS004381.png

For glChHandleMscIn, CY_U3P_DMA_TYPE_MANUAL_OUT

GS004382.png

Regards,

Noriaki

View solution in original post

0 Likes
3 Replies
NoriakiT_91
Employee

I have no problem in my environment.

Hardware: CYUSB3KIT-003

Software: FX3 SDK V1.3.4

Application: USBMassStorageDemo (cyfxmscdemo)

Which of CY_U3P_DMA_TYPE_MANUAL_IN or CY_U3P_DMA_TYPE_MANUAL_OUT do you mention about the DMA channel?

When I used the debugger, the dmaConfig structure is as follows.

For glChHandleMscOut, CY_U3P_DMA_TYPE_MANUAL_IN

GS004381.png

For glChHandleMscIn, CY_U3P_DMA_TYPE_MANUAL_OUT

GS004382.png

Regards,

Noriaki

View solution in original post

0 Likes
YashwantK_46
Moderator
Moderator

Hi Vignesh,

Did the reply solve the issue you had?
Can you update the status of the thread so that we can better help you.

Regards,
Yashwant

0 Likes
ViKu_2048416
New Contributor II

Hi Yashwant,

I have not tested with SDK version 1.3.4. Since at present I am working on some other project I cant test it now. Will update the status once I tested.

Thanks and Regards,

Vignesh Kumar R.

0 Likes