In some STM32 applications, data arriving at one UART are forwarded without any processing straight to other UART. For example, this may be part of funcionality of an STM32 serving as a "switch", where transmission from one device is to be steered to one of two receiving devices. In the simplest incarnation of this functionality, receiving UART in STM32 triggers an interrupt upon data reception, and in that interrupt, the freshly received byte is directly stored into the transmitting UART's transmit data register.
In such application, even if baudrates of both the transmitting and receiving device are nominally the same i.e. the UARTs in STM32 are set to the same baudrate, with sustained data flow from transmitter device, after some time it may happen, that in STM32 the transmitting UART's transmitt buffer is not empty at the moment when the receiving UART recieves the next byte, causing this byte to be dropped.
The reason is, that the transmitting device may run at a slightly higher actual clock than nominal, i.e. it transmit at a slightly higher baudrate than the STM32's UARTs are set to. The UART receiver in STM32 is tolerant to data arriving at slightly higher baudrate, up to half of the stopbit's duration for each byte; however, the lower data rate of transmitting UART in STM32 results eventually in the receiver to shift against transmitter more than one byte, causing the overflow described above.
This can be partially remedied by inserting a circular buffer between receiving and transmitting UART in software. However, with sustained data stream, this will eventually fill up and overflow either, so this will help only if a maximum packet length arriving from transmitter is known, and there is enough RAM in STM32 to accomodate an appropriate circular buffer.
A different kind of remedy is based on fact, that the receiving device's UART is tolerant to baudrate deviation, too; in that case the STM32's two UARTs' baudrate can be set slightly differently so, that the receiver's baudrate is somewhat lower than the transmitter's, while still maintaining acceptable tolerances towards both external devices. The precise baudrates have to be calculated with regard to the expected clock errors in both external devices and in the STM32 in between.