To enter the low power modes i have used functions like these,
SMC_SetPowerModeProtection(&a ,kSMC_AllowPowerModeAll);
SMC_PreEnterStopModes();
SMC_SetPowerModeLls(&a,&config1);
To exit low power mode i have used functions like
LLWU_EnableInternalModuleInterruptWakup(bas,0,1);
LPTMR_GetDefaultConfig(&con);
//
LPTMR_Init(DEMO_LPTMR_BASE,&con);
LPTMR_SetTimerPeriod(DEMO_LPTMR_BASE,1000);
LPTMR_EnableInterrupts(DEMO_LPTMR_BASE,kLPTMR_TimerInterruptEnable);
EnableIRQ(DEMO_LPTMR_IRQn );
LPTMR_StopTimer(DEMO_LPTMR_BASE);
LPTMR_StartTimer(DEMO_LPTMR_BASE);
Here ,to exit the low power mode i have used a low power timer,and i have configured that in LLWU wakeup unit also.
I am using the SDK is FRDM-KW36(MKW36Z512XXX4),but actually my micro controller part number is like it was written on the IC M36A
W9V4 1N41U CTJQJD (with free scale semiconductor symbole).
Yeah that SDK is BLE demo application only.
Regards ,
Srinivasan V.