How do I synchronize received UART data ?
I am trying to receive a frame containing 10 bytes of serial data, each frame is transmitted at a 100ms rate.
However, as the UART can start receiving the 10 byte frame at any point in time, the received data is becoming out of sync.
How do I sync the UART peripheral so that it always starts receiving at the start of the 10 byte frame ?
Below is a scope capture of the 10 bytes of serial data:

Below is a scope capture of the 10 bytes of serial data being sent at a 100ms rate:

I am using the STM32 Nucleo-64 development board with STM32L433RC MCU.
Its as if I need to monitor the serial line with a timer, in order to detect the period when the serial line is high for say 50ms and use this timer to enable and disable the UART peripheral. But there must be a better way to do this ?
The UART is configured as shown below and the rx buffer is a size of 10.



The 10 bytes are transmitted by a electronic speed controller, used for radio control applications and contains the following data:
Byte 0: Temperature
Byte 1: Voltage high byte
Byte 2: Voltage low byte
Byte 3: Current high byte
Byte 4: Current low byte
Byte 5: Consumption high byte
Byte 6: Consumption low byte
Byte 7: Rpm high byte
Byte 8: Rpm low byte
Byte 9: 8-bit CRC
