Example DMA + SPI S32K344

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

Example DMA + SPI S32K344

跳至解决方案
2,677 次查看
MVR
Contributor III

Hello everyone,

I'm using S32K344 and S32K3 RTD AUTOSAR 4.4 2.0.1 D2207.

I would like to program SPI with DMA (Transfer completed notification and allocation in the memory), but these two options (Global and Transfer) in DMA configurator are very confused for me:

MVR_0-1665521323368.png

How can I configure SPI + DMA? Is there a document/example for explain it? 

Thanks,

MVR

标记 (1)
0 项奖励
回复
1 解答
2,650 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @MVR,

The transfer configuration of the DMA channels is done by the LPSPI driver if the DMA channels are linked in the LPSPI driver.

danielmartynek_0-1666091816582.png

Just configure the Global DMAMUX source for each channel

danielmartynek_1-1666091890862.png

And initialize the DMA driver in the source code (Dma_Ip_Init()).

 

Regards,

Daniel

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,651 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @MVR,

The transfer configuration of the DMA channels is done by the LPSPI driver if the DMA channels are linked in the LPSPI driver.

danielmartynek_0-1666091816582.png

Just configure the Global DMAMUX source for each channel

danielmartynek_1-1666091890862.png

And initialize the DMA driver in the source code (Dma_Ip_Init()).

 

Regards,

Daniel

 

 

0 项奖励
回复
2,620 次查看
MVR
Contributor III

Thanks Daniel,

It worked for me!