Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JetForMe
Copy link

@JetForMe JetForMe commented Mar 14, 2020

Fixes #88.

Works for SAMD21, not sure about SAMD51.

… double-click reset to invoke boot loader. Works for SAMD21, not sure about SAMD51.
@JetForMe
Copy link
Author

SAMD51 may have different BOD bits to test.

matsujirushi pushed a commit to Seeed-Studio/uf2-samdx1 that referenced this pull request May 25, 2020
@JetForMe
Copy link
Author

Does anyone review these?

@dhalbert
Copy link
Collaborator

@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?

@dhalbert
Copy link
Collaborator

@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.

dhalbert
dhalbert previously approved these changes Jun 25, 2020
Copy link
Collaborator

@dhalbert dhalbert left a 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.

@dhalbert
Copy link
Collaborator

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.

@JetForMe
Copy link
Author

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.

@dhalbert
Copy link
Collaborator

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).

@dhalbert dhalbert dismissed their stale review June 26, 2020 00:31

need to test on SAMD51

@JetForMe
Copy link
Author

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.

@dhalbert
Copy link
Collaborator

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.

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

Successfully merging this pull request may close these issues.

Shouldn't check_start_application clear *DBL_TAP_PTR on BOD reset, also?
2 participants