cancel
Showing results for 
Search instead for 
Did you mean: 

UART baud rate error stm32f4xxG

khalid
Associate II
Posted on July 25, 2013 at 14:46

Hi All,

I am using an evaluation board with 12MHz HSE. I used the the stm32 clock configuration tool to generate system_stm32f4xx.c file.

My HSE frequency was 12 MHz, AHB clk was 24MHz and APB1, APB2 clocks were 12 MHz.

While configuring the UART and using putty to verify on Windows terminal what is coming out of the UART port, I discovered that the if I set the baud rate as 115200 in STM32F4XG, for windows the appropriate baud rate is 57600 , which is half of what I have set. 

Can anyone please explain the reason behind this anomaly  and how I can fix it ?

Thanks in advance,

Regards,

k

1 REPLY 1
khalid
Associate II
Posted on July 25, 2013 at 15:00

Hi All!!.

Managed to solve it. I was doing all  configuration correctly but I forgot to change the value in stm32f4xx.h

Regards,

K