MCF51JM128 get freeze on the PLL loops

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

MCF51JM128 get freeze on the PLL loops

3,602 次查看
michalpl
Contributor I

hello.

I have a demojm board with a mcf51jm128 cpu. My OS is Win7 x64, and I'm using the latest version of CW.

The problem is clock configuration function, the CPU freezes on the following loops:

 

while(MCGSC_IREFST != 0U)

while(MCGSC_PLLST == 0U)

while(MCGSC_LOCK == 0U)

(MCUinit.c file)

 

If I comment these lines the CPU is working correctly.

How to solve that problem? If It's needed I can send you a clock configuration preset from CW (*.dev file).

Thanks.

 

Edit:

 

I upload preset screenshot and Processor Expert dev file.

 

edit:

Original Attachment has been moved to: preset.dev.zip

OSZAR »
标签 (1)
0 项奖励
回复
2 回复数

3,294 次查看
kef
Specialist I

Looks like your crystal oscillator doesn't start.

OSZAR »
0 项奖励
回复

3,294 次查看
michalpl
Contributor I

I'm using the default quartz on the DEMOJM Board.

Changing External oscillator to External crystal nothing change. The CPU is looping on the "/* Wait until external reference is stable */" loop.

IT WORKS ;-)

You must change the "external ref clock for peripherials" to enable state.

OSZAR »
0 项奖励
回复
OSZAR »