[SOLVED] Change CPU frequency after OS_Start();

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Change CPU frequency after OS_Start();

    I have the urgent need to mess with my MCU's clock frequency. (LPC1857 running at 30MHZ).

    What is the best strategy to change CPU frequency on a running system to keep the OS content?
    Or is that supported at all?
  • Hello Kari,

    if you just want to change the CPU frequency at run-time you can do so with no major impact to the OS.
    You must just ensure the system tick interrupt still occurs at the same period by e.g. adjusting the timer clock settings or timer reload/compare value.

    Best regards,
    Til
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.