AnsweredAssumed Answered

STM32F0: UART breaks down

Question asked by viktor.pestov on Mar 18, 2016
STM32F030x8, HAL v.1.5.0, UART Receiving by polling

If I take byte from RDR reg and reset RXNE rarely UART gets next byte, UART breaks down, and RXNE doesn't SET never (I do it by func HAL_UART_Receive(&RS485Handle, &byte, 1, 1000))

I fix it by clearing ORE flag if tjis flag is SET in func UART_WaitOnFlagUntilTimeout in func HAL_UART_Receive.

Why isn't it fixed still in HAL? UAR breaks down when overrun without this fix.

2 ST programmers: can You include this fix to next HAL?

Outcomes