This issue is discussed here
Did you see this issue: espressif/esp-idf#1597 ?
Due to the limited amount of IO pins on ESP32, it is desirable to share a SPI bus used for SD cards with other SPI devices such as a LCD display. This is currently not possible with esp-idf since the sdspi_host driver assumes the SD card will be the only device on the SPI bus.
This problem was fixed in espressif/esp-idf@067f3d2, but that commit is not included yet in Micropython (at least not on the last release v1.12, which lv_micropython is aligned to).
If you want, you can try building lv_micropython with a more up to date esp-idf that includes this fix, but you’ll probably need to change the SD driver to use the new
Using Wemos Lolin D32 Pro v2 (ESP32 WROVER-B) 16Mb
with current 1.12 uPy and IDF V4.0-beta1
git checkout 310beae373446ceb9a4ad9b36b5428d7fdf2705f
miso=19 with 10k pull-up
mosi=23 with 10k pull-up
clk=18 with 10k pull-up
cs=4 for sd card with 10k pull-up
cs=12 for xpt2046
cs=14 for ili9341
TFT & Touch… ok
SD alone… ok
SD & TFT… fail
Is there a fix ??? and how to implement it
I can’t believe there isn’t more posts related to this issue or is there a remedy?