Skip to main content
RTung
Associate
September 13, 2019
Solved

STM32f103c8 Bluepill uart not working properly. Transmitting garbage values

  • September 13, 2019
  • 3 replies
  • 1986 views

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.

This topic has been closed for replies.
Best answer by Tesla DeLorean

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

3 replies

David SIORPAES
ST Employee
September 13, 2019

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
RTungAuthor
Associate
September 13, 2019

@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.

Tesla DeLorean
Guru
September 13, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
RTung
RTungAuthor
Associate
September 13, 2019

@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.