AnsweredAssumed Answered

Instant overrun when enabling via HAL_UART_Receive_IT

Question asked by JasonP on Aug 7, 2014
Latest reply on Sep 23, 2014 by Montassar BEN ROMDHANE
Hi all,
I had an overrun error issue between successive calls to 'HAL_UART_Receive_IT()'.
I know what causes the overrun, but shouldn't the following lines be added to HAL_UART_Receive_IT() to clear any pending error bits before re-enabling the ISR? 

     tmp = huart->Instance->SR;
     tmp = huart->Instance->DR;

Jason

Outcomes