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.

CCS/MSP430FR4133: Error in the Clock section.

Part Number: MSP430FR4133
Other Parts Discussed in Thread: TIDM-FRAM-WATERMETER

Tool/software: Code Composer Studio

Hi, I am using the custom MSP430FR4133 board for Water meter which is similar to the one provided in the site, the only difference is LCD pins are not used in my Watermeter. And i also used the same source code given in the site but the problem is the code getting stuck in the clock loop

void CLOCK_Config()
{
P4SEL0 |= BIT1 + BIT2; // Select pin4.1 pin4.2 as crystal function
do
{
CSCTL7 &= ~(XT1OFFG + DCOFFG); // Clear XT1 and DCO fault flag
SFRIFG1 &= ~OFIFG;                                                                                             // the code gets stuck here.......
}while (SFRIFG1 & OFIFG); // Test oscillator fault flag

CSCTL4 = SELA__XT1CLK; // IMPORTANT. Select ACLK = XT1 = 32768Hz
}

I am not getting any errors but the code is not running. Anyone one knows What may be the problem.?

the board schematics and the source code is provided in the below link

TIDM-FRAM-WATERMETER - www.ti.com/.../TIDM-FRAM-WATERMETER

**Attention** This is a public forum