Example S32K312 Continuous SPI Transmit & Receive Using DMA DS3.5 RTD300

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

Example S32K312 Continuous SPI Transmit & Receive Using DMA DS3.5 RTD300

Example S32K312 Continuous SPI Transmit & Receive Using DMA DS3.5 RTD300

*******************************************************************************

 The purpose of this demo application is to present a usage of the
 LPSPI IP Driver for the S32K3xx MCU.

 The example uses LPSPI2 for transmit & receive Twelve bytes using the DMA.
This above mentioned operation is performed 10 times continuously
MOSI MISO connected on Hardware in loopback.


 ------------------------------------------------------------------------------
* Test HW: S32K3X2EVB-Q172
* MCU: S32K312
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE micro
* Target: internal_FLASH
********************************************************************************

For S32K312, please use this correct clock HSE to AIPS clock should be ½.
Please make these changes in the below all example code clock setting.
HSE clock to 60 MHZ.

Dinesh_Guleria_0-1721124304036.png

 



Dinesh_Guleria_0-1705047952901.png

Dinesh_Guleria_1-1705047972487.png

 

Use this MACRO to enable disable the non cacheable region variable placement :--

Dinesh_Guleria_0-1736407682746.jpeg

 

Dinesh_Guleria_1-1736407682748.jpeg

 

Dinesh_Guleria_2-1736407682749.jpeg

 

Dinesh_Guleria_3-1736407682750.jpeg

 

 

Attachments
No ratings
Version history
Last update:
‎01-09-2025 12:29 AM
Updated by: