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.
./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++?