-
Notifications
You must be signed in to change notification settings - Fork 3k
Disable reboot limit #9545
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
Disable reboot limit #9545
Conversation
Partially revert commit cc5969b, which started enforcing reboot limits by correcting the comparison against zero. Now that it's working, the reboot limit is causing a problem because once it's hit the board will repeatedly halt before entering main until something corrupts or clears the error context. This is a minimal workaround to restore the broken behaviour in 5.11.2, so that the reboot limit is again not enforced.
@SenRamakri @deepikabhavnani Please review. |
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.
Solution in #9544 seems reasonable
@@ -216,7 +216,7 @@ mbed_error_status_t mbed_error_initialize(void) | |||
mbed_error_reboot_callback(report_error_ctx); | |||
|
|||
//We let the callback reset the error info, so check if its still valid and do the rest only if its still valid. | |||
if (report_error_ctx->error_reboot_count > 0) { | |||
if (report_error_ctx->error_reboot_count < 0) { |
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.
I think this essentially removes the bug fix we originally did. I think we should not commit this and focus on #9544.
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.
I think this essentially removes the bug fix we originally did. I think we should not commit this and focus on #9544.
Picking #9544 over this PR. |
Description
Partially revert commit cc5969b from PR #9296, which started enforcing reboot limits by correcting the comparison against zero. Now that it's working, the reboot limit is causing a problem because once it's hit the board will repeatedly halt before entering main until something corrupts or clears the error context.
This is a minimal workaround to restore the broken behaviour in 5.11.2, so that the reboot limit is again not enforced.
An alternative attempt to fix the problem properly is in PR #9544.
Pull request type
Reviewers
@SenRamakri, @TeemuKultala