This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3357 \examples\evmAM335x\mcspi_edma

Other Parts Discussed in Thread: SYSBIOS, AM3358

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