Skip to content

Conversation

@reznikmm
Copy link
Member

The compiler expands an assignment to part of the DR register to a read-modify-write sequence. However, reading DR has the side-effect of clearing the SR.RXNE bit, so sending a byte could result in the loss of input bytes.

The compiler expands an assignment to part of the DR register
to a read-modify-write sequence. However, reading DR has
the side-effect of clearing the SR.RXNE bit, so sending
a byte could result in the loss of input bytes.
@pat-rogers pat-rogers self-assigned this Jan 27, 2025
@reznikmm reznikmm merged commit 6b1413d into AdaCore:master Jan 27, 2025
2 of 3 checks passed
@reznikmm reznikmm deleted the topic/stm32_uart branch January 27, 2025 18:11
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