Saturday, December 16th 2017, 7:24pm UTC+1

You are not logged in.

  • Login
  • Register

Date of registration: Apr 7th 2016

Posts: 6

1

Friday, October 27th 2017, 8:07pm

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?

SEGGER - Til

Super Moderator

Date of registration: Nov 14th 2007

Posts: 261

2

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,
Til