3 Replies Latest reply on Aug 19, 2019 1:42 AM by ViKu_2048416

    DMA channel creation failed in Cypress MSC example

    ViKu_2048416

      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.