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

Setting KL25Z to 48MHz

I am using the KL25Z on the FRDM board. The clock is running at the default frequency of 20.97MHz. Is there is an easy way to change it to 48MHz? I see there is a function SystemCoreClockUpdate() and there are also macro definition for the MCG_MODE with MCG_MODE_FBI the one I need.

However, I cannot find (or understand) documentation on how to use these definitions.

Thanks for any help.

Parents
  • Andrew,

    Thanks for your response. I should have made clear that the context of the question was ARM Keil MDK 5. As this is an ARM product, I was hoping for help here.

    The platform CMSIS files, such as start_MKL25Z4.s and others, that contain the definitions that I mentioned are authored by NXP (Freescale), but I also hoped that CMSIS documentation might make the interface clearer. For example, the SystemCoreClockUpdate function and the SystemCoreClock variable are, I believe, part of the CMSIS interface (described here: www.keil.com/.../group__system__init__gr.html but I probably am misunderstanding what these routines can do).

    Yes, I can also post on NXP forums. I have found messages there from others who cannot understand this: but I haven't found an answer yet.

    Thanks

    William

Reply
  • Andrew,

    Thanks for your response. I should have made clear that the context of the question was ARM Keil MDK 5. As this is an ARM product, I was hoping for help here.

    The platform CMSIS files, such as start_MKL25Z4.s and others, that contain the definitions that I mentioned are authored by NXP (Freescale), but I also hoped that CMSIS documentation might make the interface clearer. For example, the SystemCoreClockUpdate function and the SystemCoreClock variable are, I believe, part of the CMSIS interface (described here: www.keil.com/.../group__system__init__gr.html but I probably am misunderstanding what these routines can do).

    Yes, I can also post on NXP forums. I have found messages there from others who cannot understand this: but I haven't found an answer yet.

    Thanks

    William

Children