Skip to main content
chintan
Visitor II
April 5, 2017
Question

STM32F100 UART Transmit Issue

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
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
April 5, 2017
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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
ST Technical Moderator
April 6, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks