I config the Xavier’s SPI0 as slave mode.Which communication with stm32,
I set STM32’s SPI as master mode.The xavier SPI can receive data from STM32 ,
But can not send data ? it’s why
The spi config of xavier as below:
sudo ./devmem2 0x0243d010 w 0x00000415
sudo ./devmem2 0x0243d020 w 0x00000404
sudo ./devmem2 0x0243d040 w 0x00000444
sudo ./devmem2 0x0243d050 w 0x00000400
sudo ./devmem2 0x0243d058 w 0x00000448
sudo ./devmem2 0x0243d010 w 0x00000400
sudo ./devmem2 0x0243d020 w 0x00000450
sudo ./devmem2 0x0243d040 w 0x00000400
sudo ./devmem2 0x0243d050 w 0x00000400
sudo ./devmem2 0x0243d058 w 0x00000400
SLAVE config
sudo ./devmem2 0x0243d010 w 0x00000415
sudo ./devmem2 0x0243d020 w 0x00000404
sudo ./devmem2 0x0243d040 w 0x00000444
sudo ./devmem2 0x0243d050 w 0x00000400
sudo ./devmem2 0x0243d058 w 0x00000448
Xavier1
./spidev_test -H -s500000 -v -p 11
sleep .5
Xavier2
./spidev_test -H -s500000 -d1000000 -v -p aa #sleep 1
The message is sent normally。
1 When I use Xavier2 SPI act as mater ,Xavier 1 SPI act as slave,it can not send,
Does this have anything to do with device tree configuration?
2 I didn’t brush the new SPI driver(Xavier2 spi config: “nvidia,tegra186-spi-slave”).
Just changed the next pin reuse configuration
Do I need to change the device tree again and then swipe the system?
I think you need to configure Xavier2 as slave mode by add “nvidia,tegra186-spi-slave” in dts.
And need to run the below command in Xavier2 first then run the spidev_test command in Xavier1