Monday, December 11th 2017, 10:27am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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