Hi,
I have tried a lot of combinations but I couldn't start 8Mhz crystal connected to XT2. I changed load capacitance, I also tried 4Mhz, but no change..
32.768kHz connected to XT1 is working fine, MCU Vdd is 3.4V and stable. Can it be a silicon bug?
#include <msp430x471x7.h>
void main(void)
{
volatile unsigned int i;
WDTCTL = WDTPW+WDTHOLD; // Stop WDT
_BIS_SR(OSCOFF + SCG0 + GIE); // Disable LFXT1 xtal osc & FLL loop
FLL_CTL2 = XT2S_2; // 3 to 16-MHz crystal or resonator
FLL_CTL1 &= ~XT2OFF; // Activate XT2 high freq xtal
// Wait for xtal to stabilize
do
{
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 5; i > 0; i--); // Time for flag to set
}
while ((IFG1 & OFIFG)); // OSCFault flag still set?
FLL_CTL1 |= SELM1; // MCLK = XT2
P1DIR |= BIT1; // P1.1 output direction
P1SEL |= BIT1; // P1.1 option select
while(1);
}