Report
1 week ago.

Actual clock speed is only 120MHz instead of 180MHz?

When I print the following line, I see that the system clock is only 120MHz instead of 180MHz. Is there some setting I need to change to increase the clock speed?

Code used to print SystemCoreClock

printf("SystemCoreClock = %d MHz\r\n", SystemCoreClock/1000000);

Question relating to:

The FRDM-K66F is a low cost development platform for Kinetis® K66, K65, and K26 MCUs.

120MHz is the setting in Normal Run mode. 180MHz is available in HSRUN mode.

posted by Mahesh Mahadevan 15 Sep 2017
Comment on this question

1 Answer

5 days, 22 hours ago.

Hi Michael,

The answers on this question may help: https://os.mbed.com/questions/78259/System-clock/

I tried out your printf statement on my own K66F, and I am also showing 120 MHz. However, if I add the code below to my main function (before the printf statement), I now see the SystemCoreClock as 160 MHz.

SystemCoreClockUpdate();

The code above is found in the following file: /mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/device/system_MK66F18.c

Let me know if you have any questions!

- Jenny, team Mbed


To post an answer, please log in.