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