K22 SPI DMA (DMAMUX Register wrong address/not implemented)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K22 SPI DMA (DMAMUX Register wrong address/not implemented)

775 Views
iwl
Contributor I

Hi,

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 ??

Regards Ingo

Tags (4)
0 Kudos
Reply
1 Reply

495 Views
iwl
Contributor I

OK found it,

I have to enable DMAMUX Clock Gate Control in

System Clock Gating Control Register 6 (SIM_SCGC6)

0 Kudos
Reply