cancel
Showing results for 
Search instead for 
Did you mean: 

stm32h7 cubemx clock configuration Bug

Arman Ilmak
Senior

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.

4 REPLIES 4
AScha.3
Chief III

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

Hi 
mx 6.10.0

115200 to 460800

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
Guru

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