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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
594件の閲覧回数
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

ラベル(1)
0 件の賞賛
1 解決策
508件の閲覧回数
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 件の賞賛
3 返答(返信)
509件の閲覧回数
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 件の賞賛
508件の閲覧回数
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 件の賞賛
508件の閲覧回数
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 件の賞賛