FRDM KL25Z pll_init failed

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

FRDM KL25Z pll_init failed

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

Hi community!

I was working me through the video tutorial on this site but now im stuck on the chapter clock distribution.

My pll_init function returns 0x23 ->

mcg.c

if (!(MCG_S & MCG_S_OSCINIT0_MASK)) return 0x23;

GPIO and debugging works like a charm but changing the clock doesn't work. in low power mode, nothing happens. what could be wrong?

I'm using the source code that Eli Hughes has written on CodeWarrior 10.5 eclipse on Windows 8.1 64bit.

ラベル(2)
0 件の賞賛
1 解決策
861件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

The problem shows the system oscillator does not initialization successfully.

In the FREEDOM BOARD / CORTEX M0+ GETTING STARTED page with below info:

ERRATA!!! 

While working with a large number of Freedom boards in a course,  it was observed that the InitClockRoutines would *sometimes* not work.    *Some* of the crystals on the freedom boards do NOT like "HIGH_GAIN" mode.  The new code is uploaded to this page but you could also change the code yourself:

  pll_init(8000000, HIGH_GAIN, CRYSTAL, 4, 24, MCGOUT);

to

  pll_init(8000000, LOW_POWER, CRYSTAL, 4, 24, MCGOUT);


If you could change the external crystal clock work mode to low power mode and check if it works or not?

Wish it helps.

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
861件の閲覧回数
zoromoth
Contributor II

Thanks a lot. I too had the same problem. Setting the low power mode solves the issue.

Regards,

Bharat

0 件の賞賛
862件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

The problem shows the system oscillator does not initialization successfully.

In the FREEDOM BOARD / CORTEX M0+ GETTING STARTED page with below info:

ERRATA!!! 

While working with a large number of Freedom boards in a course,  it was observed that the InitClockRoutines would *sometimes* not work.    *Some* of the crystals on the freedom boards do NOT like "HIGH_GAIN" mode.  The new code is uploaded to this page but you could also change the code yourself:

  pll_init(8000000, HIGH_GAIN, CRYSTAL, 4, 24, MCGOUT);

to

  pll_init(8000000, LOW_POWER, CRYSTAL, 4, 24, MCGOUT);


If you could change the external crystal clock work mode to low power mode and check if it works or not?

Wish it helps.

0 件の賞賛
860件の閲覧回数
noahhuetter
Contributor I

Oops sorry this is my bad. I thought I tried LOW_POWER mode.

It's working :smileygrin: Thanks!

0 件の賞賛