Tuesday, May 22nd 2018, 4:34am UTC+2

You are not logged in.

  • Login
  • Register

Date of registration: Apr 7th 2016

Posts: 6


Friday, October 27th 2017, 8:07pm

[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?


Super Moderator

Date of registration: Nov 14th 2007

Posts: 271


Sunday, October 29th 2017, 2:31pm

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,