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 :
- CH0 is used for RX and CH1 is used for TX
- eDMA CSR register has GMRC, ERCA, EDBG, HAE bits enabled