Closed
Description
Answers checklist.
- I have read the documentation ESP Zigbee SDK Programming Guide and tried the debugging tips, the issue is not addressed there.
- I have updated ESP Zigbee libs (esp-zboss-lib and esp-zigbee-lib) to the latest version, with corresponding IDF version, and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
5.4
esp-zigbee-lib version.
1.6.2
esp-zboss-lib version.
1.6.2
Espressif SoC revision.
ESP32-C6
What is the expected behavior?
I expected to be able to modify the sleep example to use gpio_wakeup_enable
and esp_sleep_enable_gpio_wakeup
.
What is the actual behavior?
It doesn't wake up on GPIO.
Steps to reproduce.
- Clone example code (https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_sleep/light_sleep)
- Modify
80,81c80,81
< ESP_ERROR_CHECK(esp_sleep_enable_ext1_wakeup(1ULL << CONFIG_GPIO_INPUT_IO_WAKEUP, ESP_EXT1_WAKEUP_ANY_LOW));
<
---
> ESP_ERROR_CHECK(gpio_wakeup_enable(CONFIG_GPIO_INPUT_IO_WAKEUP, GPIO_INTR_LOW_LEVEL)) ;
> ESP_ERROR_CHECK(esp_sleep_enable_gpio_wakeup()) ;
idf.py flash monitor
- Toggle
CONFIG_GPIO_INPUT_IO_WAKEUP
(defaults to 7 for C6) - No wake.
More Information.
Also observed:
- With original config the wake reason is always
(0) other
, and randomly(4) timer
- With original config the system wakes constantly (~50-100ms). It's difficult to determine if the ext pin is waking the chip or something else (ref 1 above).
- With GPIO config it only wakes with
(0) other
but is always at the pre-set ED_KEEP_ALIVE time, which makes me think it's just the timer. - Changed to GPIO9 (C6 BOOT button): ext breaks (I think GPIO9 is not an RTC gpio on C6), but GPIO wake also does not work.