Hello
I try to use the McSPI DMA sample on our own board without interrupt. Therefore I disabled IntMasterIRQEnable() and EDMA3AINTCConfigure() . For the first ReadFromFlash() everything works fine, but when I call ReadFromFlash() again, rxBuffer doesn't contain the requested data. The oscilloscope shows the request – so the TX DMA works!
I clear the interrupt flags after one cycle, but something else is needed
/* Enable the McSPI channel for communication.*/ McSPIChannelEnable(SOC_SPI_0_REGS, MCSPI_CH_NUM); do { pendingIrqs = EDMA3GetIntrStatus(SOC_EDMA30CC_0_REGS); } while ((pendingIrqs & ((0x01 << MCSPI_TX_EVENT) | (0x01 << MCSPI_RX_EVENT))) != ((0x01 << MCSPI_TX_EVENT) | (0x01 << MCSPI_RX_EVENT))); EDMA3ClrIntr(SOC_EDMA30CC_0_REGS, MCSPI_TX_EVENT); EDMA3ClrIntr(SOC_EDMA30CC_0_REGS, MCSPI_RX_EVENT);
Any idea?
Thanks