When sharing SPI bus, MISO data not read correctly (all 0x00s except first byte)
Posted: Sun Jan 03, 2021 5:19 pm
I have an ESP32 master, which is connected to an ESP32 slave, and a LCD (ILI9488 4" Display) slave.
The ESP32 master and ESP32 slave communicates correctly.
And so does the ESP32 master with the LCD when they are not on the same bus.
So they both work fine if they are on separate SPI busses (one uses HSPI, other VSPI).
When they share the same bus (both now on VSPI), the LCD seems to work OK, but the comms between the ESP32 slave and ESP32 master become faulty.
The data that the master reads from the slave is all 0x00 except the first byte.
I checked on a logic analyser, and the MOSI bus looks like it is sending the correct data all the way.
I tried loboris LCD library and LVGL, both with same issue.
What could be the problem? Is there anything obvious sticking out?
If there is any information required from me, please let me know!
EDIT: I will be trying this on two ESP32 slaves in the next coming days.
The ESP32 master and ESP32 slave communicates correctly.
And so does the ESP32 master with the LCD when they are not on the same bus.
So they both work fine if they are on separate SPI busses (one uses HSPI, other VSPI).
When they share the same bus (both now on VSPI), the LCD seems to work OK, but the comms between the ESP32 slave and ESP32 master become faulty.
The data that the master reads from the slave is all 0x00 except the first byte.
I checked on a logic analyser, and the MOSI bus looks like it is sending the correct data all the way.
I tried loboris LCD library and LVGL, both with same issue.
What could be the problem? Is there anything obvious sticking out?
If there is any information required from me, please let me know!
EDIT: I will be trying this on two ESP32 slaves in the next coming days.