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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

777 次查看
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

标记 (4)
0 项奖励
回复
1 回复

497 次查看
iwl
Contributor I

OK found it,

I have to enable DMAMUX Clock Gate Control in

System Clock Gating Control Register 6 (SIM_SCGC6)

0 项奖励
回复