Example DMA + SPI S32K344

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

Example DMA + SPI S32K344

ソリューションへジャンプ
3,778件の閲覧回数
MVR
Contributor IV

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 解決策
3,751件の閲覧回数
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 返答(返信)
3,752件の閲覧回数
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 件の賞賛
返信
3,721件の閲覧回数
MVR
Contributor IV

Thanks Daniel,

It worked for me!