Hi,
I'm working with the new red MSP432P401R Rev. C Launchpad (with rev. C chips on the boards) I received last week and I believe there is a problem with the LFXT oscillator on the board, or hopefully there's just something I haven't figured out yet.
I'm using the same code that I've been developing on the Black Rev. B Launchpad and I've made success in loading and stepping through the beginning of my program with that code on the red board. But when I get to setting up clocks, using code taken from an MSPWare example, I consistently get LFXT oscillator faults pulling me into faultISR() when I try to clear bits associated with selecting the MCLK source, in these lines below:
// DCO = 48 MHz; MCLK = source CS->KEY = CS_KEY_VAL; // Unlock CS module for register access CS->CTL0 = CS_CTL0_DCORSEL_5 | CS_CTL0_DCOEN; // Set DCO to 48MHz CS->CTL1 &= ~(CS_CTL1_SELM_MASK | CS_CTL1_DIVM_MASK) | CS_CTL1_SELM__DCOCLK; // Select DCO as MCLK source CS->KEY = 0;
On the 4th line I get thrown into faultISR() because the LFXT fault IFG flag is flipped. I don't know if there is another reason, but I know for sure that the LFXT fault flag is flipped. This is in the first function I call at the start of main.
What makes me think this is a board-specific is because I then loaded this exact same code base into my black Rev. B board and it's working the same as usual, with no faultISR()'s in the beginning.
Thanks for any help you can give,