S32K312 : Communication error with the peripheral when using LPSPI with DMA

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

S32K312 : Communication error with the peripheral when using LPSPI with DMA

跳至解决方案
5,612 次查看
amangandhi98
Contributor I

Hello,
I am facing problem when using LPSPI with DMA to communicate with the peripheral on S32K312 controller, as you can see from the DSO output attached below, when initiating the transmission the MOSI pin stays low even though we are sending the data. When tried with normal LPSPI without DMA, it works correctly.

After the transmission is completed neither the SPI nor DMA has any error flags set. I am attaching the  of TCD configuration of RX and TX channel just before DMA request is enabled on SPI side.

What could be causing this issue ?

Note :

  1. CH0 is used for RX and CH1 is used for TX
  2. eDMA CSR register has GMRC, ERCA, EDBG, HAE  bits enabled
0 项奖励
回复
1 解答
5,569 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

usually issues is due to cache enabled, so put buffers into non-cacheable area.
If does not help, share full simplified project so can be tested.

BR, Petr

在原帖中查看解决方案

2 回复数
5,570 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

usually issues is due to cache enabled, so put buffers into non-cacheable area.
If does not help, share full simplified project so can be tested.

BR, Petr

5,508 次查看
amangandhi98
Contributor I
Thanks for the help, assigning the buffers to non-cacheable area worked.
0 项奖励
回复