S32K324 DMA with SPI example

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

S32K324 DMA with SPI example

1,520 Views
DY_Liu
Contributor II

Hi team.

    I need some example programs.

    1) SPI Master + DMA + 8bit width

    2) SPI Slave + DMA + 8bit width

    * I failed to configure DMA,using basic register failed too configure, And wasted a week...

    Thanks

0 Kudos
Reply
1 Reply

1,502 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @DY_Liu 

Unfortunately, there are no SPI examples available. But included with the RTDs come low-level and high-level examples for S32K344 and S32K358 devices, which might be a good reference. 

Also, the RTD provides a user manual that describes how to use the SPI driver with DMA functionality, how to configure DMA fast transfer for a Sequence, and How to configure DMA repeated transfer in LPSPI configuration (feature to reduce the time interval between two transfers). This can be found at for example C:\nxp\SW32K3_S32M27x_RTD_R21-11_4.0.0\eclipse\plugins\Spi_TS_T40D34M40I0R0\doc orC:\nxp\S32DS.3.5\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\Spi_TS_T40D2M20I0R0\doc.

 

B.R.

VaneB

0 Kudos
Reply