Hello,
Now your problem is logged, someone from FSL will look into it.
The last point is interesting.
If the manual mode tells you that the PLL does not lock, it could be because of a PLL filter issue.
The fact that it stops working could simply be because you put an infinite loop waiting for this bit, therefore the CPU is working but waiting on this bit. Have you checked this ?
You can observe the bus speed of the MCU to see how the clock is changing.
To do so, configure a Timer/PWM channel to output the fastest square wave (50% duty cycle).
Then probe the pin with an oscilloscope and show the Frequency of that square signal (1/t).
When you set the PLL, you will see the frequency rising to the target and then oscillating towards it.
As you do the setup, you know the target frequency.
From the scope trace, you can see:
- The trace never gets close to the target: either your PLL range/multiplier selector is incorrect OR PLL problem.
- The trace goes close but oscillates a lot (greater than +-5% from the target). The PLL does its job, but the filter is too coarse, put a lower capacitor.
- The trace goes close and oscillates a little (lower than +-3% from the target). The LOCK bit is defective OR LOCK bit not read properly in software.
Cheers,
Alban.