From 222b878a99a57edb77042233d9a57251d2a1a96a Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 24 Nov 2026 09:54:42 +0100 Subject: [PATCH] fix(uart): use no parity for the debug UART with the HAL v2 driver 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 #3122 Signed-off-by: Frederic Pillon --- libraries/SrcWrapper/src/stm32/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SrcWrapper/src/stm32/uart.c b/libraries/SrcWrapper/src/stm32/uart.c index 4e6534ef53..a2d1289342 100644 --- a/libraries/SrcWrapper/src/stm32/uart.c +++ b/libraries/SrcWrapper/src/stm32/uart.c @@ -952,7 +952,7 @@ bool uart_debug_init(void) #endif /* serial_debug.pin_rx set by default to NC to configure in half duplex mode */ #if defined(USE_HALV2_DRIVER) - status = uart_init(&serial_debug, DEBUG_UART_BAUDRATE, HAL_UART_WORD_LENGTH_8_BIT, HAL_UART_PARITY_ODD, HAL_UART_STOP_BIT_1, false, false, false); + status = uart_init(&serial_debug, DEBUG_UART_BAUDRATE, HAL_UART_WORD_LENGTH_8_BIT, HAL_UART_PARITY_NONE, HAL_UART_STOP_BIT_1, false, false, false); #else status = uart_init(&serial_debug, DEBUG_UART_BAUDRATE, UART_WORDLENGTH_8B, UART_PARITY_NONE, UART_STOPBITS_1, false, false, false); #endif