2025-11-19 9:23 AM
I call HAL_UART_Init() with LPUART1 at 20Mbaud but when I activate assertion it fail at IS_UART_BAUDRATE().
The IS_UART_BAUDRATE() is not correct for LPUART that can have a baudrate up to 53.3 Mbaud.
Also for UART, the comparaison in IS_UART_BAUDRATE() should be <= instead of < like in IS_LL_USART_BAUDRATE().
2025-11-19 9:37 AM
> LPUART that can have a baudrate up to 53.3 Mbaud
This can't possibly be correct. What clock settings are getting you up to 53.3 Mbaud?
> Also for UART, the comparaison in IS_UART_BAUDRATE() should be <= instead of < like in IS_LL_USART_BAUDRATE()
Agreed.