S32K312 SPI transmit failure

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

S32K312 SPI transmit failure

316 Views
victory
Contributor I

Hi everyone,

I am working on SPI with DMA.

when I use “Lpspi_Ip_AsyncTransmit” only 10 bytes are sent and the transmission&receive never work

0 Kudos
3 Replies

279 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Have you already referred to this example? Example S32K312 SPI Transmit & Receive Using DMA DS3.5 RTD300

Note that the buffer needs to be placed in the NON CACHEABLE memory section.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

276 Views
victory
Contributor I

I have referred to this example? Example S32K312 SPI Transmit & Receive Using DMA DS3.5 RTD300.

Waveform measurement, as shown in the diagram below.

victory_0-1717394957232.png

CS and MOSI are kept at a high level in the diagram, while SCLK and MISO are kept at a low level.

0 Kudos

156 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Seems that you forget configure Dma Hardware Channel and Dma Mux Source in Rm component. 

Please refer to the settings of Example S32K312 SPI Transmit & Receive Using DMA DS3.5 RTD300. :

S32K312 SPI Rm Dma Hardware Channel Dma Mux Source.png

0 Kudos