AnsweredAssumed Answered

STM32 USART with unknown data length from the computer

Question asked by Duy Tran on Jun 1, 2018
Latest reply on Jun 1, 2018 by T J



I am receiving UART data from the computer using my STM32 MCU with dynamic length. Sometimes the computer send 6 bytes and some time 10 bytes etc...and there is no rule for this.

Can anyone help me how to use the HAL_UART_Receive_IT in this case? Or I have to use the HAL_UART_Receive and wait for the timeout?


Thank you very much