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
SPI slave mode, CLK cannot be on input only pin (see GitHub issue #2455)
-
- Posts: 8
- Joined: Wed Sep 19, 2018 7:31 am
-
- 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)
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.
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.
- 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)
I'll try to update the IDF libs over the weekend. That should fix the issue
-
- 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)
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.
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 33 guests