S32K312 SPI transmit failure

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K312 SPI transmit failure

590 次查看
victory
Contributor IV

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 项奖励
回复
3 回复数

553 次查看
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 项奖励
回复

550 次查看
victory
Contributor IV

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 项奖励
回复

430 次查看
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 项奖励
回复