HAL_RCCEx_GetPeriphCLKFreq() getting incorrect PLL1 values (H5)
Hello ST Community,
After running some tests on a board with an STM32H562 microcontroller and using an oscilloscope, I detected what might be a bug in the HAL. I was using the HAL function HAL_RCCEx_GetPeriphCLKFreq() to retrieve the clock frequency of a specific peripheral, in this case, SPI2 (whose clock source was PLL1Q). However, I was getting a value significantly different from the expected one.
After validating the clock tree through the IDE, I decided to measure the signal with an oscilloscope to better understand the issue. There, I observed the expected 125 MHz instead of the 140 MHz reported by the HAL function.
Do you have any idea what might be causing this?
