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

pataga
Posts: 73
Joined: Sat Aug 12, 2017 5:53 am

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

Postby pataga » Sun Jul 07, 2019 10:33 am

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.

bbulkow
Posts: 20
Joined: Wed Jan 01, 2020 1:40 am

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

Postby bbulkow » Tue Sep 15, 2020 6:30 pm

I have the same question. Wonder if a solution was ever offered.

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Wed Sep 16, 2020 8:51 am

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.

Who is online

Users browsing this forum: No registered users and 44 guests