2017-06-29 07:01 AM
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 Juergen2017-06-29 07:13 AM
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