Skip to main content
Arman Ilmak
Senior
January 13, 2024
Question

stm32h7 cubemx clock configuration Bug

  • January 13, 2024
  • 2 replies
  • 1867 views

Hi 

I have seen problems with stm32h7 cube uart bug.

ArmanIlmak_0-1705149065099.png

The Sources for uarts are pll2q but when debugging :

ArmanIlmak_1-1705149163333.png

It says pclk1 and pclk2 are configured.

And even with these values baud rate will not be what I set. I have to divide  it by 2 (clock divider is 1).

I searched in registers and i see RCC_D2CCIP2R is not initialized(its zero).

This register is the clock selection for UART. When i manually set proper value for it the baud rate wont be ok yet. So i think even pll2q is not configured properly too.

This topic has been closed for replies.

2 replies

AScha.3
Super User
January 13, 2024

Hi,

I use uart4 + 7 on H743 , setup with Cube /IDE ;

no problems - here , version MX 6.9.1. ;

What is your version ?  and which uart at speed .. ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Arman Ilmak
Senior
January 13, 2024

Hi 
mx 6.10.0

115200 to 460800

AScha.3
Super User
January 13, 2024

So you set uartx ?   to 115k , ok.

What speed is it then ? and how you test this ?

"If you feel a post has answered your question, please click ""Accept as Solution""."
TDK
Super User
January 13, 2024

You have some error messages in the first picture at the bottom. Perhaps the IOC was edited in such a way to be incompatible. Attach your IOC file.

"If you feel a post has answered your question, please click ""Accept as Solution""."