AnsweredAssumed Answered

stm32f4 UART HAL losing bytes

Question asked by a.giladgili on Sep 13, 2016
Latest reply on Sep 14, 2016 by Rygel.Troy1818
Hi All,

I'm working on stm32f411 borad with hal library.

I'm using the UART without knowing the exact size I suppose to get so I'm using HAL_UART_Receive_IT to get the first byte of the data and afterwards I use HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout) for reading the rest of the data with timeout.

The problem is that every now and then I lose couple of bytes on the way although I see them on the scope.

Every idea will be much appreciated,
Gilad

Outcomes