2017-04-05 10:29 AM
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 #stm32f1002017-04-05 10:58 AM
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.
2017-04-06 01:32 AM
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