rtc_gpio_deinit(gpio_num) doesn't work

Posts: 3
Joined: Fri Aug 28, 2020 9:34 am

rtc_gpio_deinit(gpio_num) doesn't work

Postby Chandini » Wed Sep 16, 2020 9:56 am


I am working on a project using ESP32 Wrover-B where I am using IO4 (RTC_GPIO10) and GPIO36 (RTC_GPIO0) for wake-up out of light sleep. esp_sleep_enable_ext1_wakeup() is used for wake-up detection. After wake-up, IO4 needs to be used as a digital GPIO. On https://docs.espressif.com/projects/esp ... pio_num_ti , it's mentioned as follows -

After wake up from sleep, IO pad(s) used for wakeup will be configured as RTC IO. Before using these pads as digital GPIOs, reconfigure them using rtc_gpio_deinit(gpio_num) function.

However, when I tried to reconfigure the RTC_GPIO10 as digital GPIO using rtc_gpio_deinit(GPIO_NUM_4) and then use it as an output pin and set it high, it doesn't seem to work. Any idea if this API works or has been deprecated?


Who is online

Users browsing this forum: Bing [Bot] and 31 guests