MK60DN512VMD10 MCU question

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

MK60DN512VMD10 MCU question

ソリューションへジャンプ
1,108件の閲覧回数
超贡
Contributor I

MCU is MK60DN512VMD10 and I use a example(hello_world) in SDK_2.2_MK60DN512xxx10(download from NXP).

When I  debug it, I found it's MCG->S register is alway 0x10 and the program is run at "while ((MCG->S & (MCG_S_IREFST_MASK | MCG_S_CLKST_MASK)) !=(MCG_S_IREFST(kMCG_FllSrcExternal) | MCG_S_CLKST(kMCG_ClkOutStatExt)))". It means the MCG->S didn't change. I tried both Keil and Kinetis Design Studio 3 IDE, but the question is the same.

My schematic is connect a 50MHz to PTA18(M12). PTA19(M11)、EXTAL32(M6) and XTAL32(M7) is NC。

ラベル(1)
0 件の賞賛
返信
1 解決策
1,013件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hello customer,

   SDK_2.2_MK60DN512xxx10 is for our TWR-K60D100M board.

  It seems you are using your own board.

  Your problem that the code is stopping tin the MCG_S register, normally it is caused by your external clock.

  You said you are connecting the 50Mhz to PTA18, please check the PTA18 pin with oscilloscope, whether this pin really have 50Mhz, this is very important.

Wish it helps you!

If you still have question about it, please let me know!


Have a great day,
Kerry

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,014件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hello customer,

   SDK_2.2_MK60DN512xxx10 is for our TWR-K60D100M board.

  It seems you are using your own board.

  Your problem that the code is stopping tin the MCG_S register, normally it is caused by your external clock.

  You said you are connecting the 50Mhz to PTA18, please check the PTA18 pin with oscilloscope, whether this pin really have 50Mhz, this is very important.

Wish it helps you!

If you still have question about it, please let me know!


Have a great day,
Kerry

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

0 件の賞賛
返信