Incorrect buffer filling when receiving data via UART using interrupts.
Hello everyone!
I have a problem with filling the buffer with data when I receive it via UART using an interrupt. I use a microcontroller of the STM32G03 series. Packets are sent at a frequency of 4 times per second. As a result, the buffer is filled not from the first byte, but somehow randomly (from the middle, from the end, and sometimes coincides with the first byte). Although the order of the bytes is correct. The packet size is 15 bytes. It seems that the synchronization is broken. What could be the reason?
I would be grateful for the answer!
