-
Notifications
You must be signed in to change notification settings - Fork 311
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
Fix for Isse #88: check BOD as well as POR when checking for double-c… #89
base: master
Are you sure you want to change the base?
Conversation
… double-click reset to invoke boot loader. Works for SAMD21, not sure about SAMD51.
SAMD51 may have different BOD bits to test. |
Add Arduino NANO 33 IoT
Does anyone review these? |
@JetForMe What is the behavior you're trying to get by this? Do you want to enter the bootloader on brownout, or only on multiple brownouts? |
OK, I looked at the other issues, and now understand the context. It's good to explain more fully when you submit a bare PR that doesn't reference an issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me after I looked at the referenced issues. You can submit PR's to https://github.com/adafruit/uf2-samdx1 as well; we try to keep these repos in sync.
Take a look at adafruit#111, which waits for 100ms for stable voltage. That was to solve a spurious flash write problem on SAMD51 due to low/erratic voltage. |
Oh, I may have not properly referenced the issue, but I did mention #88 in the title. I had put the project aside when the pandemic hit (busy getting laid off), but decided to look at it again yesterday which is why this came up again. |
Thanks, I missed the title reference. I put a "Fixes ..." in the OP so the issue will be linked. I will need to test this on a SAMD51, though I think the behavior may already have gone away due to adafruit#111 (which is not yet in this repo). |
adafruit#111 may prevent it, but still seems like it's more correct to check for a double-tap of the actual reset button, not just any reset source. |
I agree, I would still plan to incorporate this. |
Fixes #88.
Works for SAMD21, not sure about SAMD51.