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

Improved assert handling #1031

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Improved assert handling #1031

merged 1 commit into from
Apr 21, 2022

Conversation

krichardsson
Copy link
Contributor

Reset assert data after re-boot to make sure the CF starts cleanly after next reboot.
In most cases this is not a problem, but might cause some surprise when flashing using a ST-link after an assert.

  1. CF hits a failing asser and re-boots
  2. It starts up and logs assert data
  3. The user fixes the problem and re-flashes the STM using a ST-link
  4. The STM restarts but (in the current implementation) finds the old assert information again and logs assert info again.

This PR clears the assert info to make the STM start cleanly in step 4

@krichardsson krichardsson merged commit 2a282b5 into master Apr 21, 2022
@krichardsson krichardsson deleted the krichardsson/improved-assert branch April 21, 2022 09:38
@knmcguire knmcguire added this to the next release milestone May 10, 2022
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.

2 participants