Problem in initialization of clock

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

Problem in initialization of clock

ソリューションへジャンプ
2,290件の閲覧回数
whiteliondd6
Contributor I

I am using MKE16Z64VLD4 microcontroller and I am not using EXTAL OSC and I am not assigning these the pins to the microcontroller from pin config tool. But, when I tried to build the code, the code is stuck in while loop these function.

 /* Init SOSC according to board configuration. */
CLOCK_InitSysOsc(&g_scgSysOscConfig_BOARD_BootClockRUN);

while loop inside above function:

/* Step 4. Wait for OSC clock to be valid. */
while (0UL == (SCG->SOSCCSR & SCG_SOSCCSR_SOSCVLD_MASK))
{
}

 

What should I do to build the code?

@Pavel_Hernandez 

0 件の賞賛
返信
1 解決策
2,247件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @whiteliondd6 ,

Disconnect XTAL on the diagram directly.

jingpan_0-1646028686991.png

Regards,

Jing

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,264件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @whiteliondd6 ,

The SDK demo use external 8Mhz crystal by default. If your board hasn't crystal, you should not use CLOCK_InitSysOsc(). You can use the config tool to generate your clock configuration.

 

Regards,

Jing

0 件の賞賛
返信
2,259件の閲覧回数
whiteliondd6
Contributor I

Yes, I don't have external crystal. But, how to use pin config tool to disable the CLOCK_InitSysOsc()?

0 件の賞賛
返信
2,248件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @whiteliondd6 ,

Disconnect XTAL on the diagram directly.

jingpan_0-1646028686991.png

Regards,

Jing

 

0 件の賞賛
返信