Associate III
July 7, 2021
Solved
STM32CubeMX 6.2.1 for NUCLEO-H745ZI-Q doesn't generate PeriphCommonClock_Config() when ADC clocked by PLL3
- July 7, 2021
- 3 replies
- 2762 views
I create a STM32CubeMx project (test.ioc) for a NUCLEO-H745ZI-Q board and select PPL3 to clock the ADC, but the function PeriphCommonClock_Config() is not generated unless I also clock the USB from PPL3 as well.
After enabling a single ADC1 channel I change the clocking as shown below
I then toggle the clock source for the USB and captured the code generated for each option as shown below. Left side is ADC clocked by PLL3, right side is is ADC and USB clocked by PLL3
So it looks like STM32CubeMx is ignoring the generation of PeriphCommonClock_Config() when only the ADC is clocked from PLL3.
I think this is a bug in STM32CubeMX code generation.
cheers
Chris
