Setting up the crystal on a MSP430F1612, trying to get the SMCLK to source from XTL1 in HF mode. I can get it to output the DCO on the SMCLK pin but not XTL1. The data sheet says that when XTL2 is not present, that setting SELS in BCSCTL2 will have SMCLK sourced from XTL1. MCLK sources the 8MHz just fine.
void initClockModule()
{
unsigned int cnt;
BCSCTL1 |= XTS + XT2OFF; // XT1 high frequency (8MHz). Insure XT2 is off
BCSCTL2 &= 0; // Make sure MCLK is not divided
do {
IFG1 &= ~OFIFG; // Clear fault flag
for(cnt=1;cnt;cnt++); // Count 256 times
} while (IFG1 & OFIFG); // If flag still cleared, all is well
BCSCTL2 |= SELM_3; // MCLK = XT1
BCSCTL2 |= SELS; // SMCLK = XT1
}