Anonymous
Not applicable
Jan 28, 2016
08:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 28, 2016
08:51 AM
Hi, i am using CYUSB3014. Сan I configure AUTO DMA channel between USB endpoint and SPI?
Thanks!
3 Replies
Anonymous
Not applicable
Jan 31, 2016
06:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 31, 2016
06:14 PM
Hi,
Yes. You can create an auto channel between USB Endpoint and SPI Interface, just like any other DMA Channel.
Regards,
- Madhu Sudhan
Anonymous
Not applicable
Feb 01, 2016
02:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 01, 2016
02:16 AM
I set up spi , konfiguriere endpoint and creates a dma connection. Usb data will be sent, but only 4 times, 5 an error is returned. Output spi nothing. What could be the problem ? Thanks. //_______________________________________________________ CyU3PMemSet ((uint8_t *)&spiConfig, 0, sizeof(spiConfig)); spiConfig.isLsbFirst = CyTrue; spiConfig.cpol = CyFalse; spiConfig.ssnPol = CyFalse; spiConfig.cpha = CyTrue; spiConfig.leadTime = CY_U3P_SPI_SSN_LAG_LEAD_HALF_CLK; spiConfig.lagTime = CY_U3P_SPI_SSN_LAG_LEAD_HALF_CLK; spiConfig.ssnCtrl = CY_U3P_SPI_SSN_CTRL_HW_EACH_WORD; spiConfig.clock = 33000000; spiConfig.wordLen = wordlen; /* Start the SPI module and configure the master. */ status = CyU3PSpiInit(); CyU3PMemSet ((uint8_t *)&epCfg, 0, sizeof (epCfg)); epCfg.enable = CyTrue; epCfg.epType = CY_U3P_USB_EP_BULK; epCfg.burstLen = 1; epCfg.streams = 0; epCfg.pcktSize = 1024; status = CyU3PSetEpConfig (CY_FX_EP_PRODUCER+2, &epCfg); CyU3PUsbFlushEp(CY_FX_EP_PRODUCER+2); status = CyU3PSpiSetConfig (&spiConfig, NULL); CyU3PMemSet((uint8_t*)&dmaConfig,0,sizeof(dmaConfig)); dmaConfig.size=1024; dmaConfig.count=4; dmaConfig.prodAvailCount=0; dmaConfig.dmaMode=CY_U3P_DMA_MODE_BYTE; dmaConfig.prodHeader=0; dmaConfig.prodFooter=0; dmaConfig.consHeader=0; dmaConfig.notification=0xFF; dmaConfig.cb=cbSpiTxDma; dmaConfig.prodSckId=CY_U3P_UIB_SOCKET_PROD_3; dmaConfig.consSckId=CY_U3P_LPP_SOCKET_SPI_CONS; status=CyU3PDmaChannelCreate(&glSpiTxHandle,CY_U3P_DMA_TYPE_AUTO_SIGNAL,&dmaConfig); status=CyU3PDmaChannelSetXfer (&glSpiTxHandle, 0);
Sep 23, 2020
01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 23, 2020
01:44 AM
Does this issue solved?