Get the System Clock Frequency (SystemCoreClock)
Hi everyone,
Help please,
Im using CubeMX 5.0 with STM32F407 Disco board,
I had activated the HSE clock to be the clock system with 168 MHz (HCLK on the clock tree of CubeMX).
Im tryning then to get the CPU clock, ( to introduce it in the Basic systik manipulation)
But when generating the project, I noticed that the following function;
uint32_t HAL_RCC_GetHCLKFreq(void)
{
return SystemCoreClock;
}
with uint32_t SystemCoreClock = 16000000;
there is something wrong in this value ( it would be HCLK of the clock tree of CubeMX) or im wrong in my analyzing? Then how can i get the system clock? there is already an implemented function that return directly HCLK?
Many thanks
