Dominic I use the following code fragment to wait for the crystal osc to stabilize. It works with IAR but has not been used with mspgcc/gdb. You might give it a try.
// Wait for (LF)XT1 oscillator to come up // Clear OSC fault flag & set delay count // Exit loop when no fault for delay count for (IFG1 &= ~OFIFG, delay = 255; delay; ) { if (IFG1 & OFIFG) // check OSC fault flag { // it's set IFG1 &= ~OFIFG; // clear OSC fault flag delay = 255; // reset delay count } else --delay; // clear, decrement delay } Regards -Bill Knight R O SoftWare