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

[monotonics] Fix STM32 read-modify-write race condition #984

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Finomnis
Copy link
Contributor

The SR register for STM32 clears when writing a zero to a bit. Therefore, all registers that should not be cleared need to be 1.

modify here caused a read-modify-write error that could clear unrelated flags.

Related: libopencm3/libopencm3#392
Fixes: #956

The `SR` register for STM32 clears when writing a zero to a bit.
Therefore, all registers that should not be cleared need to be `1`.

`modify` here caused a read-modify-write error that could clear
unrelated flags.
@Finomnis
Copy link
Contributor Author

Needs testing on target.

@Finomnis
Copy link
Contributor Author

This might be enough of a bug to yank previous rtic-monotonic 2.0.x versions.

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.

rtic-monotonic panics
2 participants