AnsweredAssumed Answered

Wrong BRR calculated by STM32CubeMx for STM32L053

Question asked by Phua.Eugene on Oct 17, 2014
Latest reply on Nov 25, 2014 by hedlund.johan
I am using the STM32CubeMx version 4.3.1 and inside the clock configuration page, the PCLK2 is used for USART1CLK. It shows 2.097.

However, in HAL_RCC_GetPCLK2Freq function, the return value was 2.000.

This caused problem with the uart transmitting data, please help to check if there is a bug. I am using the STM32L053 discovery board fyi.

Currently the workaround is to manually calculate the BRR and set it after I call the HAL_UART_MspInit.