Repository navigation
fix(uart): use no parity for the debug UART with the HAL v2 driver - #3123
Merged
Merged
Conversation
uart_debug_init() documents the default configuration as 8N1 and the HAL v1 driver uses UART_PARITY_NONE, but the HAL v2 driver was initialized with HAL_UART_PARITY_ODD. The core logs sent on the debug UART were then not readable with a standard 8N1 terminal. Fixes stm32duino#3122 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
fpistm
force-pushed
the
fix_debug_uartv2
branch
from
November 24, 2026 09:03
218d914 to
222b878
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Initialize the debug UART with no parity with the HAL v2 driver.
This PR fixes/implements the following bugs/features
HAL_UART_PARITY_ODDwith the HAL v2 driveruart_debug_init()documents the default configuration as 8N1 and the HAL v1 driver usesUART_PARITY_NONE, but the HAL v2 driver was initialized withHAL_UART_PARITY_ODD. The core logs (core_debug()) and theprintf()output sent on the debug UART are then 8O1 frames, not readable with the documented 8N1 terminal settings.Fixes #3122