I send 1 byte data('A') per second via a UART4 interface. Below is a screenshot of the data received via Realterm. As you can see sometimes a corrupted character appears. My codes is below. What could be wrong where of the code? I'd appreciate it if you could help. Thanks.
I have looked uart tx signal via logic analizör. Sometimes framin error occurs. Correct and faulty frames are given below. Task scheduler is closed. Only uart data frame is transmitted per 2.4 second for 40 minutes. I suspected uart clock. I checked , it looks right.