Part Number:MSP430FR4133
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. 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