STM32CubeMX Feature Request - Show Baud Rate error percentage for serial peripherals
It would be nice to see the baud rate's error percentage (especially for asynchronous serial peripherals) when setting the desired baud rate in the peripheral's configuration dialog.
For example, I'm setting 115200 Bits/s for USART1, STM32CubeMX knows that I have oversampling enabled, and my USART1 is clocked by PCLK2 which is 8Mhz. So it can calculate:
BRR = 8,000,000 / 115,200 = 69.44 = 69
8,000,000 / 69 = 115,942.02
(115,942.02 / 115,200) * 100 = 100.64
So the error percentage is +0.64%
Depending on the error percentage, it can also become a warning when it's too much.
Thanks!