-
Notifications
You must be signed in to change notification settings - Fork 58
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
Device never wakes on program run following sketch upload #5
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We are seeing a similar problem. We also see that sometimes the first sleep call almost immediately returns. |
This comment has been minimized.
This comment has been minimized.
I think I have this problem as well. I think it may have something to do with the rtc. Recently I added an rtc.begin() in my setup() and this has stopped the OP’s issue from happening. |
I found another reference to this issue: https://forum.arduino.cc/index.php?topic=499101.0 Gormd reported that using LowPower.attachInterruptWakeup() also cleared this up. Seem's to me there is a bug here related to declaration or construction of the RTC object? |
You could call |
@facchinm Is there any reason to use
If |
After uploading a sketch to my MKR FOX 1200, the following code never wakes up after the first sleep call (LED remains on):
The fault only occurs under the specific conditions of the program running after a sketch upload has been performed. If I power cycle the board, it works correctly.
Additional context
The text was updated successfully, but these errors were encountered: