When testing by connecting spi1(master)-spi3(slave), should I connect both SP1_CS0 <–> SPI3_CS0 and SPI1_CS1->SPI3_CS1?
Do you connect only one of cs0 or cs1?
Here you are told to run the command
./spidev_test -D /dev/spidev0.0 -s 150000 -n100 -g30 -p4 -z,
but the source code you gave me does not have the -g, -p, -z, -n options.
Also, how do I test master(spi1) -slave(spi3) with this code?
I need to run the slave first and then the master, but when I run the slave (/dev/spidev2.0) I get an error.
can’t send spi message: Invalid argument
Aborted (core dumped)
<<<<< dmesg >>>>>>
spi-tegra124-slave 3230000.spi: Tx is not supported in mode 0
spi-tegra124-slave 3230000.spi: spi can not start transfer, err -22
spi_master spi2: failed to transfer one message from queue