Dear Team.
I tested LPSPI slave mode using AUTOSAR API. When I setting LPSPI2 Slave mode and DMA + Half-duflex configuration, First response was correct. However, Second response is wrong.
I think the LPSPI data bit is being read from the first rising edge.
In the second response, 1 bit is shifted backward, and in the third response, 2 bits are shifted backward.
Please refer to the data table comparing my expected data and Rx data.
| | Expected data | | | | | | RX data (read buffer data) | | | |
| 1st RX data | A0 | 03 | 4E | | | | A0 | 03 | 4E | … |
| 2nd RX data | A0 | 03 | 4E | | | | D0 | 0B | A7 | … |
| 3rd RX data | A0 | 03 | 4E | | | | E8 | 05 | D3 | … |
Is there anything that needs to be modified to solve the problem?
The image below is the SPI configuration I set up and applied Errata
- SCK Idle clock: High
- Data Shift Edge: Trailing



Thanks.
Best regards.