Skip to content

[request] ArduinoLowPower wakeupReason support #115

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
davereese opened this issue Feb 21, 2025 · 2 comments
Open

[request] ArduinoLowPower wakeupReason support #115

davereese opened this issue Feb 21, 2025 · 2 comments
Labels
featurerequest Feature request

Comments

@davereese
Copy link

Summary

Hey there, I am working with one of those new XIAO MG24 microcontrollers, and I've noticed when waking from deep sleep, there is no way to tell the device how it was awoken. It looks like the wakeupReason method available in the Arduino Low Power library is not available. Why?

Thanks

@davereese davereese added the featurerequest Feature request label Feb 22, 2025
@davereese davereese changed the title [request] <ArduinoLowPower wakeupReason support> [request] ArduinoLowPower wakeupReason support Feb 22, 2025
@grobasoz
Copy link

grobasoz commented Feb 27, 2025

I use the get_system_reset_cause function...

Serial.printf("Wakeup Cause %08lX\r\n", get_system_reset_cause());

Actual causes are in efr32mg24_emu.h

@davereese
Copy link
Author

use the get_system_reset_cause function.

Nice! When I try that it seems no matter how it wakes up, the value is the same. 4 to be exact. So not sure this one will help with what I'm trying to do. It would be really cool to be able to know which interrupt caused the wake up. Like maybe which pin, or if it was the IMU or something.

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

No branches or pull requests

2 participants