2018-03-01 09:11 AM
Inside UART_SetConfig() on line 2164, we are getting the peripheral frequency from RCC_PERIPHCLK_USART2 (hardcoded), where this should have been based on huart->Instance (USART1, USART2, LPUART1 etc.)