AnsweredAssumed Answered

stm32 , 115200 uart and missing data

Question asked by Denis Gottardello on Jan 30, 2018
Latest reply on Feb 1, 2018 by Denis Gottardello

Hi, I have an uart at 115300 baud rate and I miss data.
I have implemented the rx callback where I grab one byte at time.
How can I grab more than one byte till the end of the receive?

 

HAL_UART_Receive_DMA(&huart1, (uint8_t*)&MicroBufferSerial0Read, 1);

 

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
    if (huart->Instance== USART1) {
        BufferSerial0Read[BufferSerial0ReadLength++]= MicroBufferSerial0Read[0];

        ...

Outcomes