cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401CC Clock configuration

vincent
Associate II
Posted on January 21, 2014 at 18:00

Hello,

We are developping an application on STM32F401CC mcu and we are not sure that our clock configuration is correct because, when we are setting baud rate of USART1 or USART2 greater than 115200 bps, data exchange on USARTs doesn't work as expected.

We are using HSI clock at 16 MHz and we are setting the SYSCLK value at 84 MHz. PLL (HSI) is used as system clock source.

Could you please tell us if you see something wrong in our system_stm32f4xx.c ?

Thank you for your support,

Best regards,

Vincent
1 REPLY 1
Posted on January 21, 2014 at 19:19

Greater by how much exactly, be specific? Have you verified the bit timing on a scope? Based on your baud rate, and bus clocks, how much error would you expect to the rate? How much can the system tolerate?

I perhaps would run APB2 @ 84 MHz (/1) and APB1 @ 42 MHz (/2)
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..