Page 1 of 1

spi peripheral doesn't work if MISO pin set to -1

Posted: Sun Jul 07, 2019 10:33 am
by pataga
Hi, I'm using the hspi peripheral to write to an LCD - so I only need the SCK and MOSI pins on the spi peripheral (am using software SS).

I'm using the esp32-hal api : when I set the MISO pin set to -1, there is no compilation error, and no run-time error, but the spi transfers do not work. If I set the MISO pin to an unconnected i/o pin, no problem, the LCD display works fine.

But my problem is I am pin constrained on my real application - I don't have any spare unused pins that I can use for MISO.

So is this a software or hw issue ? Any workarounds ? From googling i see that even input only pins can't be used for MISO.

Re: spi peripheral doesn't work if MISO pin set to -1

Posted: Tue Sep 15, 2020 6:30 pm
by bbulkow
I have the same question. Wonder if a solution was ever offered.

Re: spi peripheral doesn't work if MISO pin set to -1

Posted: Wed Sep 16, 2020 8:51 am
by ESP_Sprite
If any, I can't reproduce this... Just modified examples/peripherals/spi_master/lcd to have -1 for the MISO pin, also needed to turn off LCD autodetection, but with those changes the example still works.