Skip to main content
stan_av
Associate
Nov 25, 2018 11:41 AM UTC
Question

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

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

This topic has been closed for replies.

4 replies

flyer31
Senior
Dec 2, 2018 9:56 AM UTC

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
stan_avAuthor
Associate
Dec 3, 2018 6:39 AM UTC

where is your blog hosted?

Tesla DeLorean
Guru
Dec 4, 2018 5:41 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..