Skip to main content
Vel
Associate III
September 9, 2019
Solved

Why I could not receive the data properly in the UART ??

  • September 9, 2019
  • 7 replies
  • 2002 views

Hi Team,

I am using stm32h753 controller, While receiveing data in the UART. Rx buffer index is not always Rxbuff[0]. Data is received randomly in the different index.

Here i am attaching the reference.

0690X00000AQto3QAD.png

This topic has been closed for replies.
Best answer by Vel

Hi Clive,

Please find the code..

buffer size in 250 .

I am receiving 16 byte data.

0690X00000AQueEQAT.png

7 replies

Tilen MAJERLE
ST Employee
September 9, 2019

Can you post the code how you receive data? It is unclear from your print screen.

Vel
VelAuthor
Associate III
September 9, 2019

Hi, Tilen MAJERLE,

Please find the code...

0690X00000AQuLRQA1.png

Tesla DeLorean
Guru
September 9, 2019

Can't you just paste more complete code?

How large is the buffer?

You ignore error status from the function.

You ignore the fact data reception may be of different sizes, or shift in alignment/synchronization.​

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