This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Anyone knows how to set the core clock at 120MHz with keil on the FRDM-K64F?

I try with this code

  MCG -> C1 = 0x2AU;

  MCG -> C2 = 0x20U;

  MCG -> C4 = 0x00U;

  MCG -> C5 = 0x09U;

  MCG -> C6 = 0x58U;

  MCG -> SC = 0x00U;

  OSC -> CR = 0x80;

  SIM -> SOPT1 = 0x000C0000UL;

  SIM -> SOPT2 = 0x00010000UL;

  SIM -> CLKDIV1 = 0x01140000UL;

but when i am debugging, after SystemCoreClockUpdate(), i get SystemCoreClock = 192 000 000

Parents
  • Hi

    The latest version of the CMSIS startup file for this board contains the confguration for 120 MHz:

    We have a new RTX_Blinky for this with MDK 5 Software pack.  I assume you are using Keil MDK 5 ?

    I attach the said system file here.

    Thanks

    Bob Boys

    San Jose, California

Reply
  • Hi

    The latest version of the CMSIS startup file for this board contains the confguration for 120 MHz:

    We have a new RTX_Blinky for this with MDK 5 Software pack.  I assume you are using Keil MDK 5 ?

    I attach the said system file here.

    Thanks

    Bob Boys

    San Jose, California

Children