Hi Folks,
I am using device having MSP432P401 uc which is running FreeRTOS application. I have following configuration to run the device at 48MHz.
PowerMSP432_PerfLevel MyCustomPerfLevels =
{
.activeState = PCM_AM_DCDC_VCORE1,
.VCORE = 1,
.DCORESEL = CS_DCO_FREQUENCY_48,
.SELM = CS_HFXTCLK_SELECT,
.DIVM = CS_CLOCK_DIVIDER_1,
.SELS = CS_HFXTCLK_SELECT,
.DIVHS = CS_CLOCK_DIVIDER_1,
.DIVS = CS_CLOCK_DIVIDER_4,
.SELB = CS_LFXTCLK_SELECT,
.SELA = CS_LFXTCLK_SELECT,
.DIVA = CS_CLOCK_DIVIDER_1,
.flashWaitStates = 3,
.enableFlashBuffer = true,
.MCLK = 48000000,
.HSMCLK = 48000000,
.SMCLK = 12000000,
.BCLK = 32768,
.ACLK = 32768
};
const PowerMSP432_ConfigV1 PowerMSP432_config = {
.policyInitFxn = &PowerMSP432_initPolicy,
.policyFxn = &PowerMSP432_sleepPolicy,
.initialPerfLevel = 4,
.enablePolicy = true,
.enablePerf = true,
.enableParking = true,
.numCustom = 1,
.useExtendedPerf = 1,
.customPerfLevels = &MyCustomPerfLevels,
.HFXTFREQ = CS_48MHZ,
.LFXTDRIVE = CS_LFXT_DRIVE3,
.configurePinHFXT = true,
.bypassHFXT = false,
.configurePinLFXT = true,
.bypassLFXT = false,
};
While reading clock and flash wait state it shows follwing.
Power Get Performance Level : 0
MCLK Frequency: 6000000
HSMCLK Frequency: 3000000
SMCLK Frequency: 3000000
ACLK Frequency: 32768
BCLK Frequency: 32768
DCO Frequency: 6000000
Am I doing something wrong while doing configuration? Is there anything else required to configuration properly?
Regards,
Amit