This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: Selecting HFXT as master clock source fails to check back the result

Part Number: MSP432P401R

Tool/software: Code Composer Studio

I am using the following function to configure my clock-tree:

void CLK_config()
{
    uint32_t mclk, smclk;

    bool b;

    CS_setExternalClockSourceFrequency(LF_XT_CLK_F, HF_XT_CLK_F);

    PCM_setCoreVoltageLevel(PCM_VCORE1);
    FlashCtl_setWaitState(FLASH_BANK0, 1);
    FlashCtl_setWaitState(FLASH_BANK1, 1);
    b = CS_startHFXT(false);

    CS_initClockSignal(CS_MCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_1);
    CS_initClockSignal(CS_SMCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_2);

    mclk = CS_getMCLK();
    smclk = CS_getSMCLK();
}

with:

/* Clock settings */
#define LF_XT_CLK_F                         32768
#define HF_XT_CLK_F                         48000000

The resulting local variables values, according to debugger, are:

but I would expect MCLK to be 48 MHz, and SMCLK 24 MHz.

Does anybody see what's wrong?

( using simplelink_msp432p4_sdk_2_30_00_14 )

**Attention** This is a public forum