I have two different 5529 boards, and I'm using the "XT1 sources ACLK" sample code. It initializes XT1, waits for the oscillator flags to clear:
do
{
UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG); // Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG; // Clear fault flags
}while (SFRIFG1&OFIFG); // Test oscillator fault flag
My old board gets through this fine, but the new board hangs in this loop because XT1LFOFFG won't clear. I put a scope on P1.0 and there is a nice 32kHz square wave.
Any ideas what could be happening?
-Lee Gordon