Hi DPB,
Yes, you are correct, the other node is completely OK, while this node doesn't work which means that the failure probably lies inside the MCU.
I tried different 4MHz crystals - same result - but not different ones. Or right to say, I tried it with this 80MHz oscillator, but the PLL doesn't lock.
Yes, CGMTESTi = 0 all the time.
No, the LOCKIF doesn't get set, not even for momentarily. So there is no loss of lock, there is no lock at all. The UNLOCKF flag is always 0.
Anyway, I tried this 80 MHz oscillator that I bought yesterday, and it seems that the MCU works. I will try if the FR works also tomorrow.
By the way, the ECRG.POSTDIV register is missing from all the attached demo codes. Simply there is no such define in the S12XECRG.H file.
By the way, it is a little bit weird that the RM says that the CGM PLL should be programmed to 80MHz while in the low speed examples, it is set to 10 MHz only. I think the RM is quite ridiculous. Ok, unreliable, better said. Either FR works with several other clocks (probable since FR standard allows lower baudrates), or, the programmer of the demos, Jaime Orozco, is too creative. Not talking about PLL VCO frequency range...
Not even talking about the MCU product brief document, which is still preliminary. Since 2006 ....
//Attila