Skip to main content
Associate
April 12, 2025
Solved

Usart1 BRR register seems strange when using STM32H743 with stm32cubeh7 1.12.1

  • April 12, 2025
  • 2 replies
  • 741 views

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)). 

zsk_0-1744456105237.png

zsk_1-1744456165980.png

  I also noticed that HAL_RCC_GetPCLK2Freq() returns a wrong pclk value 0x0E4E1C00(240M), but it should be 120M.

zsk_2-1744456280160.png

 

The Usart1 Config and Rcc config are as follows :

zsk_3-1744456347637.png

zsk_4-1744456394429.pngzsk_5-1744456411825.png

 

 

 

Best answer by TDK

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.)

TDK_0-1744462165390.png

 

2 replies

TDK
TDKBest answer
Super User
April 12, 2025

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.)

TDK_0-1744462165390.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Pavel A.
Super User
April 12, 2025

The relevant fix was made 4 months ago

This line with D1CorePrescalerTable array has not been changed recently. 

Pavel A.
Super User
April 13, 2025

Can you compare the generated code, especially for SystemClock_Config?