Example DMA + SPI S32K344

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

Example DMA + SPI S32K344

Jump to solution
3,786 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
3,759 Views
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

 

 

View solution in original post

0 Kudos
Reply
2 Replies
3,760 Views
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 Kudos
Reply
3,729 Views
MVR
Contributor IV

Thanks Daniel,

It worked for me!