Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi, I have made a simple program that do transactions on the spi bus and everything is working fine. The program is running on a r5 core and gets started from Linux.
Now i want to test it with dma enabled. I have used the mcspi_loopback_dma example as a reference when trying to enable dma in my own app.
The problem is that the application gets stuck in the MCSPI_transfer function.
What i have done to enable dma is to:
*First enable dma in sysconfig by setting Operating Mode to DMA Mode.
*Next i added __attribute__((aligned(CacheP_CACHELINE_ALIGNMENT))) attributes to the data i use for the transactions.
*And last call CacheP_wb before MCSPI_transfer and CacheP_inv after MCSPI_transfer.
Is it something obvious i have forgot to do?