cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong register BRR in usart

maxime
Associate II
Posted on July 30, 2014 at 15:16

Hi,

I'm trying to initialize a usart, and read some data on a Terminal. The terminal receives some data but not the good one. The problem seems to be a clock problem, and the usart register BRR looks wrong. Moreover, in the terminal settings, it reeds the rated speed at 115200 instead of 57600 and even if i change the baudrate in the usart init, the terminal still read 115200.

Any idea what could be the problem ?

Thanks

#stm32f105 #stm32f105-usb-host
11 REPLIES 11
maxime
Associate II
Posted on August 01, 2014 at 09:00

Thanks!!

But the thing is, I don't understand why the machine understands that HSE_VALUE is 8MHz...

In Project>Properties...>DEFINE, HSE_VALUE is set at 12MHz

Posted on August 01, 2014 at 14:31

Settings for the Assembler? or C/C++ Compiler?

grep the project file.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..