cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476 on NUCLEO-L476RG Baudrate with CubeMX

JuM
Senior
Posted on June 29, 2017 at 16:01

Configured USART1 of mcu to 500 kbit/sec using STM32CubeMX Version 4.21.0.

Code created by Cube seems to be correct.

Measurement shows that bitrate is 250 kbit ( a 10 bit character needs 40 µsec).

See Attachements.

USART1 clock is 80 MHz. Comes from 16 MHz HSI RC, via PLL (x10, /2) PLLCLK to SYSCLK.

Do not know where the error is...

Best regards Juergen
1 REPLY 1
JuM
Senior
Posted on June 29, 2017 at 16:13

Very sorry, made the mistake to rely on the current uart decode feature of my scope.

But this was configured to 250 kbit/s, not to 50ß0 kbit/s.

500 kbit is ok with CubeMX and L476.

Sorry, Juergen