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

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

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

Jump to solution
5,320 Views
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 Kudos
Reply
1 Solution
5,277 Views
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

View solution in original post

2 Replies
5,278 Views
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,216 Views
amangandhi98
Contributor I
Thanks for the help, assigning the buffers to non-cacheable area worked.
0 Kudos
Reply