I'm just programming K22 SPI DMA Transfer.
My problem is I dont't get the SPI DMA Trigger working.
The DMA-Channel is properly configured because the dma-transfer works fine if I trigger it by Software.
I have configured the SPI DMA as follows:
SPI1_RSER = SPI_RSER_TCF_RE_MASK | SPI_RSER_RFDF_RE_MASK | SPI_RSER_RFDF_DIRS_MASK | SPI_RSER_TFFF_RE_MASK | SPI_RSER_TFFF_DIRS_MASK ;
DMAMUX_CHCFG9 = DMAMUX_CHCFG_ENBL_MASK | 18u ;
DMA_ERQ = 0xFFFFF ;
SPI1_RSER RFDF Receive Interrupt Flag is set but
DMA_HRS indicates no Hardware-DMA-Request and so no DMA is triggered
I can watch all the Registers in my Debugger and the values are es set / expected
except for the DMAMUX_CHCFG9 (4002_1009) which only reads as ???
Is may be the address of this register wrong, but is as in the Reference Manual and official headers.
Has somebody an example for K22 SPI DMA ??