-
Notifications
You must be signed in to change notification settings - Fork 3k
Sleep: error flags fix #9277
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
Sleep: error flags fix #9277
Conversation
@deepikabhavnani, thank you for your changes. |
@ARMmbed/mbed-os-maintainers - Can we test this PR in CI (based on availability) to see the impact of newly added flags |
@deepikabhavnani Will look at doing that tomorrow. We still have a queue of PRs in CI for 5.11.2 will be generated tonight. |
5.11.2 is still not completed (currently one more fix incoming most probably), I'll set this to needs: CI to run it through CI |
|
8b284fe
to
524e66b
Compare
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@theotherjimmy @kjbracey-arm Any thoughts? @deepikabhavnani I just had a thought. This is probably going to add more debug symbols and increase binary size for debug builds, correct? |
@cmonr - Yes some more debug messages
mbed-os/platform/mbed_wait_api_rtos.cpp Line 56 in b9927e5
mbed-os/platform/mbed_wait_api_rtos.cpp Line 55 in b9927e5
CI runs debug builds but I don't see any size increase |
Oh. That was a welcome surprise. |
Why is this being added to develop profile? It was not initially clear. Can you add it to the commit msg? How is this breaking - by adding a new macro to the develop profile? |
CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
CI has passed, but does this still needs and additional review. @kjbracey-arm @theotherjimmy could you please take a look |
Ready to merge? |
hi @deepikabhavnani , Breaking changes now need a release notes section in the description. see example here:#9568 |
Done. Can be reviewed by @ARMmbed/mbed-docs |
The final approval waiting for @bulislaw but as he is OoO this week, @donatieng can you review instead please? |
Ready to merge? |
While waiting for final approval, running CI now as it was a week ago. CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
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.
Looks good to me!
Description
All the debug calls in sleep manager for sleep tracing should be changed to mbed_error_printf since most sleep API's and calls are interrupt and thread safe. PR #9260
Issue was seen only with debug profile and was not captured in develop profile because MBED_TRAP_ERRORS_ENABLED flag was not set in develop profile. Fixed here.
Pull request type
Reviewers
@kjbracey-arm @theotherjimmy
Release notes
This change adds the
MBED_TRAP_ERRORS_ENABLED
flag to the develop profile. It traps on RTX errors and invalid operations in ISR context enabled in the develop profile. These errors were silent in the develop profile.This change might result in an increase of the final binary size.