cancel
Showing results for 
Search instead for 
Did you mean: 

I am having difficulty in getting a working clock configuration for an STM32H753 chip.

stan_av
Associate II

the STM32H753 chip is mounted on a board with an external 12Mhz HSE crystal and 32k LSE crystal. Using the CUBE config tool I have the attached SystemClock_Config function.

The function gets stuck waiting for a valid RCC_FLAG_PLLRDY signal in line 42 (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK).

Any ideas about what the issue might be?

Thanks in advance ..

P.S. It works if I adjust the values to use the internal oscillators

4 REPLIES 4
flyer31
Senior

You could try my slim "my_system_stm32H7.c" clock config function, which I just posted in my "Cache New" Nut blog ... . This should work nicely, but of course only for the HSE Xtal part ... the 32k LSE crystal part you have to solve yourself, sorry... .

stan_av
Associate II

where is your blog hosted?

Zero out the content of the structures.

Enable HSE and output via MCO pin (PA8) and establish if it is oscillating properly and at the frequency/stability expected.

Make sure the HSE_VALUE in stm32h7xx_hal_conf.h reflects your design.

Not everything is a software problem.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..