cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f103c8 Bluepill uart not working properly. Transmitting garbage values

RTung
Associate II

Dear team,

I am facing issue with STM32 uart.

I have stm32f103c8 (you can google "stm32 bluepill ") board with me.

I want to use uart communication on this, i am using Stm32 Cube ide 1.0.0 .

when i transmit data from uart i receive garbage value on my laptop.

I am using usb to serial converter.

Please find zip file for code and snap shots.

Imp points:

I have tested my usb to serial converter with another controller which runs on 3.3v.

i have checked with another uart also its also giving same problem.

1 ACCEPTED SOLUTION

Accepted Solutions

Make sure to use a CMOS Serial level adapter, the STM32 does not output RS232 compatible levels.​

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

View solution in original post

4 REPLIES 4
David SIORPAES
ST Employee

Built your project (with Keil) and UART configuration seems fine.

This is its output decoded at 9600, 8N1.

0690X00000ARB0NQAX.png

Try with the attached hex file. If still getting garbage, double check your serial converter and/or your terminal application.

RTung
Associate II

@David,

i check with your hex file.. still having same issue and same output.

i checked my adapter with another uc its working fine and same serial terminal application is also working fine.

Do i need to add some pull up or pull down on my st bluepill board.

Make sure to use a CMOS Serial level adapter, the STM32 does not output RS232 compatible levels.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
RTung
Associate II

@David SIORPAES​  & @Community member​ 

Dear team,

i issue was with converter.

I check with another converter, now its working fine.

Thank you for your valuable time and responses.