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

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

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

ソリューションへジャンプ
5,384件の閲覧回数
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,341件の閲覧回数
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,342件の閲覧回数
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,280件の閲覧回数
amangandhi98
Contributor I
Thanks for the help, assigning the buffers to non-cacheable area worked.
0 件の賞賛
返信