Skip to content

GPIO Wake has no affect on example (TZ-1516) #550

Closed
@asward

Description

@asward

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.

  1. Clone example code (https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_sleep/light_sleep)
  2. 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()) ;
  1. idf.py flash monitor
  2. Toggle CONFIG_GPIO_INPUT_IO_WAKEUP (defaults to 7 for C6)
  3. No wake.

More Information.

Also observed:

  1. With original config the wake reason is always (0) other, and randomly (4) timer
  2. 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).
  3. 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.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions