STM32H7 HAL_Delay twice as long
Hello,
I'm here on H753, external clock, CPU clock configured to 400MHz. Setup code is generated by CubeMx.
If I execute a HAL_Delay() takes twice the time as expected, e.g. 2ms instead 1ms. I checked via GPIO toggle with a scope.
The MCO output is correct, so I guess the CPU clock is correct.
The system core clock variable is calculated/set to 400MHz after system clock initialization.
I remember I watched the same problem on another M7 chip, the SAME70.
I fixed it by patching the SYSTICK setup (HAL_SYSTICK_Config) but I'd like to know what is the problem here.
It seems to me, the SYSTICK is fed by 200MHz, not 400MHz as suggested in the CubeMx clock tree.
Does anybody have experienced this or can share information regarding SYSTICK?
Thanks,
Jochen
