Skip to main content
stan_av
Associate
November 25, 2018
Question

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

  • November 25, 2018
  • 4 replies
  • 1405 views

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
December 2, 2018

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
December 3, 2018

where is your blog hosted?

Tesla DeLorean
Guru
December 4, 2018

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