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.

MSP430FR2355: OFIFG flag never clearing on development board??

Part Number: MSP430FR2355

I am running an 8MHz MCLK via DCO using an example program from TI Resource Explorer....I am running on an MSP430FR2355 Development board.  My simple code hangs at the front end in the do while loop:

The dev board has a crystal on it.  My code hangs on the loop below and I see XT1OFFG is set and I see OFIFG is set....If I remark out this it works.  Can someone tell me (aside from removing the loop) how to fix this? 

        do
        {
            CSCTL7 &= ~(XT1OFFG | DCOFFG);  //Clear XT1 and DCO fault flag
            SFRIFG1 &= ~OFIFG;
        } while (SFRIFG1 & OFIFG);                   // Test oscillator fault flag

**Attention** This is a public forum