Other Parts Discussed in Thread: HALCOGEN
I am currently working on setting up MibSPI2 with the DMA. For some reason, the DMA is not transferring data to the MibSPI RAM when I try to write data (data is outputted if I call mibspiSetData()). I have looked at the example in the HalCoGen folder and have looked at some other examples on these forums and it seems that I am doing the same procedure as those examples yet it does not seem to work. Here is my code procedure so far:
mibspiInit(); dmaConfigCtrlPacket(); dmaSetCtrlPacket(DMA_CH0, dmaCtrlPckWrite); dmaReqAssign(DMA_CH0, DMA_REQ3); dmaReqAssign(DMA_CH1, DMA_REQ2); dmaSetChEnable(DMA_CH0, DMA_HW); dmaSetChEnable(DMA_CH1, DMA_HW); dmaEnableInterrupt(DMA_CH0, FTC, DMA_INTA); mibspiDmaConfig(mibspiRegister, 0, 0, 1); dmaEnable(); mibspiTransfer(mibspiRegister, 0);
Am I missing something in my DMA configuration? I don't know why else it wouldn't copy data from my buffer to the mibspiRAM.
Thanks