Hi - still babbling away to myself here it seems.
Ake from Freescale prooved that it all works fine on a demoboard that uses a canned oscillator for the clock.
So I connected an oscillator and wrote a similar test programme to his.
Everything works fine as per the book.
Lower the voltage, at about 4.2volts it goes into reset.
Raise the voltage and when it gets to 4.3ish it comes out of reset and the LVI bit is st in SRSR.
Also disabling the reset allows you just to read the LVI status from the LVISR register just like it says in the datasheet.
Now if I add some PLL setup code and go back to using the 32kHz crystal I start to get some strange results but not as before. Now the LVI bit works but the POR bit only gets set sometimes.
Still needs further work to make the test code more like the original code and hopefully bring on the original symptoms.
However the problem seems to be the slow startup of the crystal oscillator and how quickly you read the SRSR after the code gets going and the PLL gets fired up.
Still hoping somebody can help me out here.....
Ake is hopefully going to test again with the 32kHz oscillator on his demoboard fired up.