I isolated the problem, but didn't find a workaround. The DCO calibration is as given below: void DCOconfig(void) { CS->KEY = 0x695A; //CS->CTL0 = 0; CS->CTL0 = CS_CTL0_DCORSEL_5; CS->CTL1 = CS_CTL1_SELA__REFOCLK| // ACLK = REFOCLK CS_CTL1_SELS__DCOCLK| // SMCLK = DCOCLK CS_CTL1_DIVS__16| // SMCLK = DCOCLK/16 = 03MHz CS_CTL1_SELM__DCOCLK; // MCLK = DCO CS->KEY = 0; } somehow in the line CS->CTL0 = CS_CTL0_DCORSEL_5; get the microcontroller to fault handling routines. I searched the MSP432P401R Device Erratasheet in hope that it has some workaround, but there isn't.
↧