Correct way handling UART transmission without overrun STM32L496
Hello. I have packet each 200ms (8 byte) and i have sometimes from computer register set function, again 8 bytes.
And time to time getting USART ovverrun error. That is not a big deal, but i just don't want to miss correct register write to MCU event.
How do i handle this so never get overrun ? System needs to be 100% reliable, i was thinking about timeouts, but it looks to be too dificult to implement.
Any idea how to play this ? ( Rx is on interrupt, while Tx is on Timer 5Hz)