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

Don't clear Reset Source Register on boot #14

Open
mkj opened this issue May 10, 2022 · 4 comments
Open

Don't clear Reset Source Register on boot #14

mkj opened this issue May 10, 2022 · 4 comments
Assignees

Comments

@mkj
Copy link

mkj commented May 10, 2022

This bootloader (and the standard Portenta H7 one) clears the RSR so it isn't possible for subsequent programs to check the reset reason. Could it be changed to keep the reset source register intact? Thanks.

if (ResetReason::get() == RESET_REASON_PIN_RESET) {

@pennam
Copy link
Collaborator

pennam commented May 10, 2022

Hi @mkj, thanks for the report.
I've just had a quick look and i think that it can be done calling directly the mbed-os hal function from the bootloader. I will give it a try and let you know.

@pennam pennam self-assigned this May 10, 2022
@pennam
Copy link
Collaborator

pennam commented May 25, 2022

@mkj storing the reset reason somewhere else, like in an RTC register, would be an acceptable solution?

@wero1414
Copy link

wero1414 commented Mar 7, 2024

@pennam any news on this issue? i have a board getting rebooted, and i would like to address the reset cause

@pennam
Copy link
Collaborator

pennam commented Mar 8, 2024

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

No branches or pull requests

3 participants