2025-04-12 4:14 AM
Dear all,
I have encountered an strange issue. I set Usart1 Baud Rate to 115200, however, Usart1 BRR[15:4]==0x0082, which corresponds to 57600.(57600 == 120Mhz/(16*0x82)).
I also noticed that HAL_RCC_GetPCLK2Freq() returns a wrong pclk value 0x0E4E1C00(240M), but it should be 120M.
The Usart1 Config and Rcc config are as follows :
2025-04-12 5:49 AM - edited 2025-04-12 6:04 AM
This has been an issue in the past. Is your STM32H7 package fully updated? If so, can you include your IOC file here?
The relevant fix was made 4 months ago. (Might not be this exact change.)
2025-04-12 4:36 PM
> The relevant fix was made 4 months ago
This line with D1CorePrescalerTable array has not been changed recently.
2025-04-12 6:30 PM
I am sure it's the lastest version 1.12.1. But the details remain the same as 1.12.0. I guess the 1.12.1 release missed this problem.