I am using SPI1 to communicate with my SAM MCU, i have verified both side SPI mode is configured in mode 0, and it was working fine in JP5.
Below is my scenario.
I am sending 3-byte data from Jetson to SAM
0x01 0x02 0x03
I have added break points in the firmware and verified the received data in the SAM, i received 0x01 0x02 0x02, instead of 0x03 i got 0x02 again for me it looks like tx buffer is not updated, i thought of this could be issue with CS, i have probed the CS line it is proper, it low until last byte transmission.
Also, i have attempted to send 4 bytes, first two byte of data is received in the SAM, for third byte it is repeating the second byte data.
Since you’ve verified that the data sent from the TX (of AGX Orin) is correct, have you also investigated on your SAM MCU why it is receiving incorrect data?