Hi All,
I have cw10.4 and MQX4.0.1. And I add some code in my main task to control the MK60FN1M0VLQ12 to enter the VLLS3 power mode.
The code is as following:
MCG_C6 &= ~(0x20u);
/* Write to PMPROT to allow VLLS3 power modes */
SMC_PMPROT = SMC_PMPROT_AVLLS_MASK;
/* Set the STOPM field to 0b100 for VLLS3 mode*/
SMC_PMCTRL &= ~(SMC_PMCTRL_STOPM_MASK);
SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x4) ;
SMC_VLLSCTRL = SMC_VLLSCTRL_VLLSM(3); // set VLLSM = 0b11
/* Now execute the stop instruction to go into VLLS3 */
SCB_SCR |= SCB_SCR_SLEEPDEEP_MASK;
asm("WFI");
_task_block();
But I measure the current drop from MCU, it does not enter the VLLS3 mode.
Any suggestions about this?
Thank you.
-Daniel