cancel
Showing results for 
Search instead for 
Did you mean: 

UART data not matching

Ranjeet Singh
Senior

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 ?

 

 

10 REPLIES 10
LCE
Principal

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.

FBL
ST Employee

Hello @Ranjeet Singh,

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


I'm out of offce with limited access to my emails.
Happy New Year!
JTP1
Lead

Hello

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

Br J.T

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
Up vote any posts that you find helpful, it shows what's working..

NUCLEO-WB55RG

putt the parity non now the result is 

RanjeetSingh_2-1693822411673.png

 

 

RanjeetSingh_0-1693822285137.png

 

putt the parity none,now the result is 

RanjeetSingh_3-1693822428619.png

 

RanjeetSingh_1-1693822348278.png

 

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

Hi,

I actually use Hercules as Serial Monitor over Tera Term! 

Ayoub