USART Clock selection bug / cubemx
Hello,
With CubeMX V6.8 (I did not check with latest update), there is a bug in the USART clock source selection, for chip STM32L451VET
When selecting SYSCLK for USART2 or USART3 (did not check with UART4), in the function HAL_UART_MspInit() the clock is init with :
PeriphClkInit.Usart2ClockSelection = RCC_USART1CLKSOURCE_SYSCLK;
instead of
PeriphClkInit.Usart2ClockSelection = RCC_USART2CLKSOURCE_SYSCLK;
That results in an incorrect initialisation !
I don't know if it is related to the fact that in my project USART1 is also clocked by RCC_USART1CLKSOURCE_SYSCLK
Aurelien
