MCF51JM128 get freeze on the PLL loops

cancel
Showing results for 
Search instead for 
Did you mean: 

MCF51JM128 get freeze on the PLL loops

562 Views
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

Labels (1)
0 Kudos
2 Replies

254 Views
kef
Specialist I

Looks like your crystal oscillator doesn't start.

0 Kudos

254 Views
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.

0 Kudos