Skip to main content
pestov
Associate III
March 18, 2016
Question

STM32F0: UART breaks down

  • March 18, 2016
  • 0 replies
  • 414 views
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?
    This topic has been closed for replies.