Hi,
I don’t know if I’m going crazy but two “different” projects using the exact same code and HAL files are creating two different clock values. One is correct and the other isn’t.
Both projects are the ones generated by VisualGDB. The chip in question is the STM32F722ZE.
The two projects are the “LEDBlink (HAL)” and the other one is a STM32 CubeMX SampleĀ (RCC -> RCC_ClockConfig). I copied the clock configuration from the CubeMX example into the LEDBlink which uses the default 16MHz clock and tried to test it and the clock “SystemCoreClock” variable isĀ 675000000. Obviously incorrect and NOTHING fails, but the clock itself is wrong and is super slow, slower than the default clock, indicating that it did fail. Yet the CubeMX one generates 216000000 which is the correct one.
I checked everything, and I mean everything. The smallest project setting, did a differential check of all the different files to make sure they are identical. I stepped through the code where the clock change roughly happens and they both are identical yet they produce two different values.
At first I thought one of the projects was maybe using an out of date HAL driver or something else but everything is identical.
What… is… going… on…