K22F MCG clock settings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K22F MCG clock settings

465 Views
oswaldo-153
Contributor III
I want to make some clock settings, I want to change the clock values of the system, the bus and the core. But I'm not sure if it's in the clock_config.c file, can someone help me?
Tags (3)
1 Reply

415 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hi Oswaldo,

I would recommend using the Config Tools available in MCUXpresso, this way you can be sure anything related with the clock you are changing is also modified.

To do this, select the project you are working on and click on the tab ConfigTools, then Clocks.

pastedImage_1.png

Next you will see the page similiar to the following image, you need to select the clock diagram option on the left hand side.pastedImage_3.png

You will next see the diagram that is the general view of the internal clocks and the outputs. You can select the one you want to modify, for example if I want to change the bus clock. I select it  then double click the OUTDIV2 and I can change the value in the next screen.

pastedImage_4.png

pastedImage_5.png

Finally once you finished modifying the clock configurations click on Update Project.

pastedImage_6.png

You will see the files that are being updated press ok, then you can recompile your project and test it out.

Let me know if you are able to modify your project successfully and if you have any other questions.

Thank you,

Sabina.