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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,262件の閲覧回数
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

ラベル(2)
タグ(4)
0 件の賞賛
返信
1 返信

982件の閲覧回数
iwl
Contributor I

OK found it,

I have to enable DMAMUX Clock Gate Control in

System Clock Gating Control Register 6 (SIM_SCGC6)

0 件の賞賛
返信