I'm having trouble entering VLLS0 on a KL03. The symptoms are that the processor executes WFI, but doesn't go into sleep. If I have a debugger attached, it lands me in the reset vector ("No source available for "___isr_vector() at 0x0""). Without a debugger, power consumption remains as before (1.44mA).
Here is the exact code sequence I'm using:
SMC->PMPROT = SMC_PMPROT_AVLP_MASK | SMC_PMPROT_AVLLS_MASK; // not actually needed, startup code initializes PMPROT to 0x22
SMC->PMCTRL &= ~SMC_PMCTRL_STOPM_MASK;
SMC->PMCTRL |= SMC_PMCTRL_STOPM(4);
SMC->STOPCTRL = SMC_STOPCTRL_VLLSM(0);
dummyread = SMC->STOPCTRL;
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
Could the lack of a pullup on the RESET pin have something to do with this? (I am not 100% certain that this pullup isn't required)
I attached a complete KL03 project that should do nothing but enter VLLS0 and never wake up.
Any help is much appreciated.
Original Attachment has been moved to: KL03-Test.zip