Skip to main content
OGOKC
Associate
November 21, 2018
Question

Uart framing error on Stm32l496ag mcu (some transmit bytes are corrupted) . What is the reason ?

  • November 21, 2018
  • 3 replies
  • 2325 views

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.

0690X000006CSBPQA4.png

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
November 21, 2018

Is this a direct connection, or via BlueTooth, or RS232 level converters.

Review the signal integrity of the USART_TX pin with a scope. Check timing, slew rate, ringing, etc.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
OGOKC
OGOKCAuthor
Associate
November 22, 2018

Connection is via USB. The circuit is as follows. i haven't looked at UART TX signal yet. i will look. I suspected uart clock. it looks right.

0690X000006CSFbQAO.jpg

OGOKC
OGOKCAuthor
Associate
November 22, 2018

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.

0690X000006CSVUQA4.png

0690X000006CSVeQAO.png