2016-09-13 02:20 AM
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,Gilad2016-09-13 04:35 AM
Incorrect baud rate/clock on UART?
2016-09-13 04:45 AM
The baud rate is correct, I send known data of 155 bytes and I get all of it instead of couple of bytes in the middle.
2016-09-14 01:57 AM
What baudrate are you using? Clock settings for mcu ?
Some buffer overflows ?