cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0: UART breaks down

pestov
Associate II
Posted on March 18, 2016 at 08:17

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?
0 REPLIES 0