Xavier NX SPI as the slave device

Is there support using the Xavier NX SPI as the slave device using the spidev C library? I’ve gotten the SPI working as the master on the Xavier NX using spidev, but am running into issues with the Xavier NX SPI as the slave. Using a version of spidev_test.c I’ve been able to send data from the Xavier as the master. Using the same spidev_test.c I haven’t been able to send or receive data with the Xavier as the slave.

When running:

./spidev_test -D /dev/spidev0.0 -s 5000000 -v -p "1"

I get the following output:

spi mode: 0x0
bits per word: 8
max speed: 5000000 Hz (5000 KHz)
can't send spi message: Invalid argument
Aborted (core dumped)

Different variations of the command line options haven’t helped. I’m currently using Jetpack 4.4 in case that matters.

If spidev doesn’t support the Xavier NX SPI being the slave, can you share how you’re interfacing with the SPI through C/C++?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi rattasak,

Are you using the devkit or custom board for Xavier NX?

H

How do you configure the SPI as slave?

Could you also share the full serial console log for further check?