DFS light sleep makes GPIOfloating

lwshowl
Posts: 27
Joined: Sat Jun 05, 2021 7:33 am

DFS light sleep makes GPIOfloating

Postby lwshowl » Sat Jun 05, 2021 7:42 am

Code: Untitled.cpp Select all



esp_pm_config_esp32c3_t pm_config = {
.max_freq_mhz = 160,
.min_freq_mhz = 80,
.light_sleep_enable = true,
};

ESP_ERROR_CHECK(esp_pm_configure(&pm_config));

io_conf.mode = GPIO_MODE_INPUT;

io_conf.intr_type = GPIO_INTR_POSEDGE;

io_conf.pin_bit_mask = GPIO_INPUT_PIN_SEL;

io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;

io_conf.pull_up_en = GPIO_PULLUP_ENABLE;

gpio_config(&io_conf);

// change gpio intrrupt type for one pin
gpio_set_intr_type(GPIO_NUM_7, GPIO_INTR_POSEDGE);


i'm using ESP32-C3 with IDF power mannaging and Dynamic Frequence Scheduling features and set auto light sleep to be true
however, when the chip goes into auto light sleep ,the GPIO 7 toggles between high and low nearly every second , thus triggering unexpcted interrupts
i read about the data sheet and found that the GPIO 7 is in VDD3P3_CPU power domain which is supposed to keep on all the time ,and i did not check POWER DOWN CPU IN LIGHT SLEEP IN idf menuconfig
this is quite confusing, can anyone offer some help ?

lwshowl
Posts: 27
Joined: Sat Jun 05, 2021 7:33 am

Re: DFS light sleep makes GPIOfloating

Postby lwshowl » Sat Jun 05, 2021 8:43 am

if i disable light sleep in the PM function there is no such problem
but if is enabled ,IO7 interrupt is triggerd nearly every second

Who is online

Users browsing this forum: No registered users and 1 guest