本帖最后由 FSL_TICS_A 于 2014-11-26 20:26 编辑
MKL16编译环境 IAR 7.2。
为什么进入低功耗模式后编译环境就崩溃了?!
demo:
void enter_vlps(void)
{
volatile U32 dummyread;
SMC_PMPROT = SMC_PMPROT_AVLP_MASK;
SMC_PMCTRL &= ~SMC_PMCTRL_STOPM_MASK;
SMC_PMCTRL |= SMC_PMCTRL_STOPM(0x2);
dummyread = SMC_PMCTRL;
deepsleep();
}
|