AnsweredAssumed Answered

[MKW01Z128] Low Power Module

Question asked by Giancarlo Zanuz on Dec 2, 2016
Latest reply on Dec 19, 2016 by Mario Ignacio Castaneda Lopez

Hi, I've encountered a few problems with the LowPower module from the connectivity software:



I'm using the following code to enter in deep sleep:


PWRLib_WakeupReason_t wakeupReason;
    wakeupReason = PWR_EnterLowPower();


But after wakeup it seems that the clock is not properly adjusted anymore. When I call the function:




It takes a lot longer to exit.



I'm using a 32khz external xtal, but I can't configure it in PWR_Configuration.h. When i put:


#define cPWR_LPTMRClockSource                   cLPTMR_Source_Ext_ERCLK32K


It appears in compilation:


"*** ERROR: cPWR_LPTMRClockSource has to be set to cLPTMR_Source_Int_LPO_1KHz"


Why I can't change the clock source?


Thanks in advance!