Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
asward opened this issue Jan 26, 2025 · 2 comments
Open
3 tasks done

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

asward opened this issue Jan 26, 2025 · 2 comments
Labels

Comments

@asward
Copy link

asward commented Jan 26, 2025

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.
@asward asward added the Bug label Jan 26, 2025
@github-actions github-actions bot changed the title GPIO Wake has no affect on example GPIO Wake has no affect on example (TZ-1516) Jan 26, 2025
@xieqinan
Copy link
Contributor

xieqinan commented Feb 6, 2025

Hi @asward ,

This is a system issue and not related to Zigbee. I believe it can be resolved more quickly if you submit an issue here.

@asward
Copy link
Author

asward commented Feb 6, 2025

I will open a ticket in the idf project.

For what it's worth, an older issue on this thread seems to have been resolved in April. #99 (comment)

The esp_sleep_enable_gpio_wakeup() functionality works flawlessly without the zigbee sdk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants