I have problem if SIM_CLCKDIV1[OUTDIV1] >= 3 in MK60DN512ZVLL10

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

I have problem if SIM_CLCKDIV1[OUTDIV1] >= 3 in MK60DN512ZVLL10

Jump to solution
574 Views
alessiopaolucci
Contributor III

I try to do a driver for setting clock in MK60DN512ZVLL10.

The base structure is the same that I have done for the kl25z, and for it all well done.

Instead in MK60DN512ZVLL10 if the outdiv1 (Core clok divider) is >= of 3, the program don't work correctly.

Help me, How I can resolve this problem?

Can be a problem of this specific MCU?

Best regard

Alessio Paolucci

Labels (1)
0 Kudos
1 Solution
488 Views
mjbcswitzerland
Specialist V

Hi Alessio

When setting the core clock divider make sure that the bus clock and flash clock dividers are also set correctly. It is, for example, illegal to set a faster flash clock than bus speed, etc.

Regards

Mark

View solution in original post

0 Kudos
3 Replies
489 Views
mjbcswitzerland
Specialist V

Hi Alessio

When setting the core clock divider make sure that the bus clock and flash clock dividers are also set correctly. It is, for example, illegal to set a faster flash clock than bus speed, etc.

Regards

Mark

0 Kudos
488 Views
alessiopaolucci
Contributor III

Thank's!

The problem was that I'didn't know that, if the core clock divider = 3, the bus clock divider have to be only 3 or a multiple of 3.

I do not know if this thing is written on the Ref Manual. I discovered this from Processor Expert.


Have a nice day!

Alessio

0 Kudos
488 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Alessio Paolucci,

    Actually, the K60 reference manual already describ the relationship between  bus clock frequence and the core clock frequnce.

Just like the following:

pastedImage_0.png

Wish it helps you!

If you still have question, please contact me!


Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos