Open samvangysegem opened 2 years ago
Any updates on this issue?
Hi @samvangysegem, I could fix the same issue calling both rtc_gpio_deinit
and rtc_gpio_hold_dis
. Not quite sure if it's a bug or a missing bit in the espressif docs tho
@ahne6000 Thanks for posting this!! It fixed my problem as well. I had been pulling what little is left of my hair out...
Hi @samvangysegem, I could fix the same issue calling both
rtc_gpio_deinit
andrtc_gpio_hold_dis
. Not quite sure if it's a bug or a missing bit in the espressif docs tho
Thanks for this, I was having a similar problem with I2C pins with ESP-IDF 5.0.1, this solved it.
Environment
Problem Description
During first startup, the node is able to communicate with external devices over SPI which is validated with an oscilloscope. After going to deep sleep, at which time the SPI bus signals (CLK, MISO and MOSI) are isolated using the
rtc_gpio_init
andrtc_gpio_isolate
commands, and waking up, at which time thertc_gpio_deinit
method is called for the respective SPI bus signals, communication over the SPI bus is no longer working. The SPI bus initialisation usingspi_bus_initialize
is successful, as is adding devices usingspi_bus_add_device
. Reading or writing to or from the SPI bus is not working however, which is confirmed by an oscilloscope monitoring the SPI bus signals: neither CLK, MISO or MOSI go to 3V3 when the bus is initialised after deep sleep but all remain fixed a 0V. This problem does not occur when the SPI bus signals are not isolated during deep sleep. Hence, I believe the problem is related to thertc_gpio_deinit
command.Steps to reproduce
rtc_gpio_init
andrtc_gpio_isolate
commands (GPIO 11, 12 and 13 in case of the ESP32S3)rtc_gpio_deinit
method for the corresponding SPI bus signalsDebug Logs
There are no specific debug logs since SPI bus initialisation and adding devices does not produce any errors. The failure of communication is recognised through the oscilloscope when reading registers from external devices does not lead to any monitored activity on the SPI bus.