S32K312 SPI transmit failure

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K312 SPI transmit failure

588件の閲覧回数
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 返答(返信)

551件の閲覧回数
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 件の賞賛
返信

548件の閲覧回数
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 件の賞賛
返信

428件の閲覧回数
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 件の賞賛
返信