Skip to content

[request] Change in ArduinoLowPower DeepSleepExternalWakeUp example #110

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

Open
SebKister opened this issue Jan 4, 2025 · 3 comments
Open
Assignees

Comments

@SebKister
Copy link

Summary

The current example demonstrating the external wake up from deep sleep uses the pin PC0. Unfortunately, this is also defined as the DEEP_SLEEP_ESCAPE_PIN in the escape_hatch function. If the user holds the wake-up switch low too long, it will not provoke a wake up but trigger the escape mechanism. The example could use the PA5 pin for example and clarify the role of PC0 in the wake up exit mechanism.

@SebKister SebKister added the featurerequest Feature request label Jan 4, 2025
@lboue
Copy link

lboue commented Jan 7, 2025

@SebKister Which board do you use for testing?

@SebKister
Copy link
Author

@lboue I use a Seeed Studio XIAO MG24 Sense

@silabs-bozont
Copy link
Collaborator

Hello @SebKister,
Thank you for the bug report! It looks like you're correct - on the XIAO MG24 the deep sleep wake up pin and the escape pin are the same - PC0 (D0).
PC0 is used in the wake-up examples because it's a dedicated wake-up pin and is exposed on all the boards - therefore the example should be left as is.
For the escape pin any pin can be used, it doesn't need to be a dedicated wake up pin.
I've reconfigured the XIAO MG24 to use PC1 (D1) as its escape pin - it doesn't seem to conflict with anything - and now waking up the device doesn't also trigger the escape mechanism.
We'll include this change in the next release. Let me know what you think!

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

No branches or pull requests

3 participants