Hi,
Thank you for your reply.
I have two more questions now:
The first question is:
txp_camel_0-1723020970471.png
As indicated in the recommended configuration, I configured ScatterGathers configuration for three Tx channels and two Rx channels, and set SpiPhyUnit/SpiMaxDmaFastTransfer to 2. However, S32DS keeps reporting errors and prompts the following message.
txp_camel_1-1723021176124.png
I had to configure the ScatterGathers configuration for the Tx channel to four in order for S32DS to not report any errors.
The second question is:
Now when I am debugging the Lpspi_ic_Asynchronous TransmitFast() interface, the Dma and Spi interrupts of Tx can be triggered normally, but the Dma and Spi interrupts of Rx cannot be triggered. After calling the Lpspi_Ip_TxDmaFinishTransfer() interface from the Tx IRQ of the SPI, the Rx interrupt cannot be triggered, and then the SPI will remain in the Busy state.
I compared the Tx and Rx channels of Spi+Dma and found that their configuration structures are roughly consistent.
Below is detailed configuration information.
txp_camel_2-1723021559518.png
txp_camel_3-1723021571624.png
txp_camel_4-1723021604841.png
txp_camel_5-1723021626978.png
txp_camel_6-1723021638394.png
txp_camel_7-1723021646925.png
txp_camel_8-1723021660682.png
txp_camel_9-1723021686034.png
All transmission length configurations are set to 8
txp_camel_10-1723021728383.png
The global configuration is the same
txp_camel_11-1723021756291.png