There are only two functions sleep() end Deepsleep() but i'm need my proj. LLS or VLLS mode,
Np i'm write the functions but aftert weakup, go to reset continuous.
For proper operation I had to change SystemInit() in the files "system_MKL46Z4.c" as follows
void SystemInit (void) {
-if (DISABLE_WDOG)
Disable the WDOG module
SIM_COPC: COPT=0,COPCLKS=0,COPW=0
SIM->COPC = (uint32_t)0x00u;
-endif (DISABLE_WDOG)
if(PMC->REGSC & PMC_REGSC_ACKISO_MASK) { -> must clear this bit if a reset after VLLS
PMC->REGSC |= PMC_REGSC_ACKISO_MASK;
}
Sorry but my english is not good.
There are only two functions sleep() end Deepsleep() but i'm need my proj. LLS or VLLS mode, Np i'm write the functions but aftert weakup, go to reset continuous.
For proper operation I had to change SystemInit() in the files "system_MKL46Z4.c" as follows
void SystemInit (void) { -if (DISABLE_WDOG) Disable the WDOG module SIM_COPC: COPT=0,COPCLKS=0,COPW=0 SIM->COPC = (uint32_t)0x00u; -endif (DISABLE_WDOG)
if(PMC->REGSC & PMC_REGSC_ACKISO_MASK) {
-> must clear this bit if a reset after VLLSPMC->REGSC |= PMC_REGSC_ACKISO_MASK; }Sorry but my english is not good.