This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430F6779 OFIFG fault flag

Hi, I have msp439F6779 on my board.And I am using 32Khz external chrystal for heart beat.But I think I have a problem about clock.When I try to blink leds without checking OFIFG flag.it is ok.The code is working and seems no problem for me.But when I add a code block for check OFIFG flag like :

while (SFRIFG1 & OFIFG) { // check OFIFG fault flag
UCSCTL7 &= ~(DCOFFG + XT1LFOFFG + XT2OFFG);
SFRIFG1 &= ~OFIFG; // Clear OFIFG fault flag
}

my program can not go out this while.The OFIFG flag remains set everytime.I  tried 12pf parallel capacitors with my oscilator.But the result is same.Can anyone help me about that?

 

**Attention** This is a public forum