-
Notifications
You must be signed in to change notification settings - Fork 2k
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
core/msg: re-enable IRQs before printing for highlevel_stdio #21047
base: master
Are you sure you want to change the base?
Conversation
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.
There is output on nrf52840dongle
now for this test, but compared to master
on native
the numbers appear to be random.
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.
Now it works. Please squash.
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.
The CI has a nitpick. Please squash at will
I've changed the test to also check the msg_queue copying in other cases and it works at least on |
copy message queue information to stack before
394d510
to
6fed8ec
Compare
Contribution description
highlevel_stdio such as usb-cdc-acm seems to require IRQs to be enabled for printing, but
msg_queue_print()
currently prints with IRQs disabled. This PR fixes that by copying the message queue information to the stack before re-enabling IRQs.Testing procedure
make -C tests/core/msg_queue_print BOARD=feather-nrf52840-sense flash test
hangs on
master
, passes with this PRChanges tested on
native
andseeedstudio-xiao-nrf52840
.Issues/PRs references
Encountered while testing for #20980.