SPI Issue with JP6 Jetson AGX Orin

Facing issue in communicating via SPI1 in JP6

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.

can anyone help on this,

Hi stamil3006,

Are you using the devkit or custom board for AGX Orin?
What’s the Jetpack version in use?

Do you mean the current wrong 3rd byte issue is specific to JP6?

Have you tried getting a scope or Logic Analyzer to check the signal to know what’s the data been sent?

How do you send these 3 bytes data?

Hi @KevinFFF

I am using custom board, and it uses Jetpack 6.0

yes

I checked the scope image the data which is sent is correct, byte order is also correct.

I am just using spidev_test tool, i have modified based on my requirement, please refer the attached source.
spidev_test.zip (2.3 KB)

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?