cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F100 UART Transmit Issue

chintan
Associate
Posted on April 05, 2017 at 19:29

Hello All,

We are working on:

MCU: STM32F100C6T6

IDE: IAR Workbench

Code Generator: STM32CubeMx

We are working on uart, We generate code for UART1 and below specification:

   Baudrate: 115200

   Stop bit: 1   

   Data bit: 8

   Parity bit: non

But we get issue of print garbage value on serial terminal.

We test uart module, it working fine.

 we are not getting solution. help us..

Thanks and Regards

Chintan Patel

#uart-tx #uart #stm32f100
2 REPLIES 2
Posted on April 05, 2017 at 19:58

Check the definition of HSE_VALUE and how that relates to the input clock source on your board design.

Use the USART to output a stream of 'U' characters, view the signal on a scope. Confirm bit timing.

The levels output by the USART are CMOS, they are not RS232 compatible levels, so don't directly wire into a PC serial port.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Imen.D
ST Employee
Posted on April 06, 2017 at 10:32

Hi

patel.chintan

,

I'd recommend you to start from the UART example within STM32CubeF1 firmware package as

STM32Cube_FW_F1_V1.4.0\Projects\STM3210C_EVAL\Examples\UART

This may help you on your project development.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen