I am trying to use SPI1 to communicate with an arduino nano esp32. I am using DSBOARD-ORNX carrier board from Forecr. I did the spidev-test, and the chip was able to receive its own outputs. However, I can’t seem to get it communicate with my arduino.
Currently, I have my arduino constantly sending 0xAA as a byte to the Jetson
When using spi.open(0, 0) the outputs are either 0x0 or 0xff
When using spi.open(1, 0) or any other bus/device combination the outputs are consistently 0x0.
I am getting the following output when using sudo dmesg | grep spi
forecr@forecr-desktop:~/Documents/Data-Pipeline$ sudo dmesg | grep spi [ 10.659947] spi-tegra114 3210000.spi: Adding to iommu group 1 [ 10.678292] spi-tegra114 3230000.spi: Adding to iommu group 1 [ 5854.054803] spidev spi0.0: setup: unsupported mode bits 40
It seems we don’t have this 16 pins header on the devkit so that it seems only available on your custom board.
Please also request your vendor to get the instruction to configure them.
If you want to communicate with your SPI device(esp32), I think spidev_test could also send spi data from Orin NX.
You just need to specify the correct interface which is connected with your module.
Please share the full dmesg to check if there’s any error.