Skip to main content
Ranjeet Singh
Senior
September 4, 2023
Question

UART data not matching

  • September 4, 2023
  • 10 replies
  • 3559 views

RanjeetSingh_0-1693815777906.pngRanjeetSingh_1-1693815803890.png

data on serial  monitor

 

RanjeetSingh_3-1693815888158.png

tera term setting 

RanjeetSingh_4-1693815917051.png

what is the reason of data mis matching ?

 

 

This topic has been closed for replies.

10 replies

LCE
Principal II
September 4, 2023

Check the TeraTerm Setup / Terminal settings "Coding (receive / transmit)".

And do you have any proof that sprintf is working correctly?

Try sending some pure ASCII string directly with HAL_UART_Transmit.

ST Technical Moderator
September 4, 2023

Hello @Ranjeet Singh,

Could you specify which STM32 product/ board are you using? 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Ranjeet Singh
Senior
September 4, 2023

NUCLEO-WB55RG

Graduate II
September 4, 2023

Hello

You have different paritysettings. Put parity none to code or parity odd to your terminal settings.

Br J.T

Ranjeet Singh
Senior
September 4, 2023

putt the parity non now the result is 

RanjeetSingh_2-1693822411673.png

 

 

RanjeetSingh_0-1693822285137.png

 

Graduate II
September 4, 2023

What about baudrate in terminal, now its 115k2 in mcu 

Tesla DeLorean
Guru
September 4, 2023

Currently outputting in the equivalent to 7O1 mode, disable parity on the STM32 (NONE) so it is using 8N1 mode

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

putt the parity none,now the result is 

RanjeetSingh_3-1693822428619.png

 

RanjeetSingh_1-1693822348278.png

 

Ayoub Cheggari
Senior
September 4, 2023

Hi,

I actually use Hercules as Serial Monitor over Tera Term! 

Ayoub

Tesla DeLorean
Guru
September 4, 2023

How exact are you wiring this? Using the ST-LINK VCP, or an external dongle or converter?

The pin outputs are at CMOS level, not compatible with RS232 levels/connectivity.

Send a 0x55 pattern repeatedly, check signal with a scope, confirm baud rate, ie 4800 Hz squarewave is 9600 baud.

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