-
Notifications
You must be signed in to change notification settings - Fork 488
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
waitForEvent() not working as expected #637
Comments
Hello, any update on how to keep nRF52 SoC on System-on sleep mode? I need to do the same. |
This script below, based on yours, works as I would expect:
output:
and then by changing
to
I get this output:
|
Any resolution? The only way I have been able to use the waitForEvent() function is by disabling all interrupts with either __sd_nvic_irq_enable() or __disable_irq(). I need an external interrupt to wake from the waitForEvent() and manually disabling the interrupts individually with sd_nvic_DisableIRQ(IrqNumx) appears to have no effect. |
Describe the bug
I'm trying to put the nRF52840 to sleep in the SYSTEM_ON state using the waitForEvent() method. When I call the waitForEvent(), the sketch just keeps running.
As an alternative, I looked at suspendLoop() and resumeLoop(); however, those calls have no effect on the power consumption of the uC. I do see a SYSTEM_OFF api which would work, but I was looking for something that would work in SYSTEM_ON state.
Set up (mandatory)
I included a small sketch showing different paths I've tried, but to no avail.
The text was updated successfully, but these errors were encountered: