SPI slave mode, CLK cannot be on input only pin (see GitHub issue #2455)

trancefreak
Posts: 8
Joined: Wed Sep 19, 2018 7:31 am

SPI slave mode, CLK cannot be on input only pin (see GitHub issue #2455)

Postby trancefreak » Wed Feb 27, 2019 1:12 pm

Hi,

There was an issue that in SPI slave mode the CLK pin couldn't be on an input only pin.
See: https://github.com/espressif/esp-idf/issues/2455

This already has been fixed in the ESP-IDF master branch but it looks like the Arduino Core still doesn't have the fix (the pre-compiled libraries).

When using the newest Arduino Core (just made a pull) this error still appears and the ESP resets itself in a loop:
E (3019) spi: spicommon_bus_initialize_io(156): sclk not valid

Can anyone from Espressif give me an update when the fix will be available on the Arduino Core side?

Kind Regards,
Christian

trancefreak
Posts: 8
Joined: Wed Sep 19, 2018 7:31 am

Re: SPI slave mode, CLK cannot be on input only pin (see GitHub issue #2455)

Postby trancefreak » Thu Feb 28, 2019 3:22 pm

No one from Espressif has an idea when the fix will be available in the arduino core framework?
Is it possible to build the libraries used by arduino core by myself out of the ESP-IDF framework?
I think the libdriver library is affected.

User avatar
ESP_Me-no-dev
Posts: 80
Joined: Mon Jan 04, 2016 6:30 pm

Re: SPI slave mode, CLK cannot be on input only pin (see GitHub issue #2455)

Postby ESP_Me-no-dev » Fri Mar 01, 2019 10:00 am

I'll try to update the IDF libs over the weekend. That should fix the issue :)

trancefreak
Posts: 8
Joined: Wed Sep 19, 2018 7:31 am

Re: SPI slave mode, CLK cannot be on input only pin (see GitHub issue #2455)

Postby trancefreak » Fri Mar 01, 2019 12:14 pm

Thanks very much!
In the meantime I use the following workaround (don't know if this is really the correct way):
I downloaded the spi_common.c code from the IDF gibthub gepo and added this file to my sources. Looks like the linker then uses this code instead of the one in the library.

Who is online

Users browsing this forum: No registered users and 39 guests