KL82 hangs at BOARD_ClockInit()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL82 hangs at BOARD_ClockInit()

跳至解决方案
1,657 次查看
deenewcum
Contributor II

I was using the FRDM-KL82Z, and things worked well. I moved to a custom PCB using the same MCU, and now several projects hang when BOARD_ClockInit() is called during initialization. The board works for simple GPIO, so I know the board works generally. Any idea what's making it hang at BOARD_ClockInit()?

标签 (2)
0 项奖励
回复
1 解答
1,489 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Dee,

   It seems you are not using the KSDK2.2_FRDM-KL82Z.

  What the code you are writing in your BOARD_ClockInit() function?

  Please check whether you are change the clock mode to external crystal in the code?

  If your board don't have the external oscillator, you need to use the chip internal IRC, the chip is start up from the internal IRC in default. So, you can comment the code which changes the clock mode .

Wish it helps you!


Have a great day,
Kerry

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

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,489 次查看
deenewcum
Contributor II

Apparently our board has no external oscillator.  Is it possible to operate without an external oscillator?

How do I change the code to configure it for crystal-less operation?

Attached is an image of where it's getting stuck in an infinite loop.NXP_Community.png

0 项奖励
回复
1,490 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hello Dee,

   It seems you are not using the KSDK2.2_FRDM-KL82Z.

  What the code you are writing in your BOARD_ClockInit() function?

  Please check whether you are change the clock mode to external crystal in the code?

  If your board don't have the external oscillator, you need to use the chip internal IRC, the chip is start up from the internal IRC in default. So, you can comment the code which changes the clock mode .

Wish it helps you!


Have a great day,
Kerry

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

0 项奖励
回复
1,489 次查看
deenewcum
Contributor II

Thanks, that helped a lot!

0 项奖励
回复
1,489 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

You are welcome!


Have a great day,
Kerry

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

0 项奖励
回复
1,489 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Dee Newcum,

    Please debug your custom board, when it is stopping, give me a screen shoot, I need to see where it is stopping in the code.

   I think it is relate to the external crystal, you also can check your crystal circuit, whether it is oscillating? Whether you are using the same crystal frequency as the FRDM-KL82Z.

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Kerry

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