- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
For glChHandleMscIn, CY_U3P_DMA_TYPE_MANUAL_OUT
Regards,
Noriaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
For glChHandleMscIn, CY_U3P_DMA_TYPE_MANUAL_OUT
Regards,
Noriaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.