AnsweredAssumed Answered

VLPS to run mode in s32k148 controller

Question asked by shinu bepu on Feb 27, 2019
Latest reply on Feb 28, 2019 by Daniel Martynek

Hi,

 

I was trying to change the power mode to VLPS to RUN. before going to deep sleep I am enabling the gpio pin interrupt and setting a flag. while wake up in the isr I am checking the flag and using the below function to change to RUN mode.

POWER_SYS_SetMode(RUN, POWER_MANAGER_POLICY_AGREEMENT);

but this is not working. I am getting the interrupt but the code is not running.

My sleep sequence is given below

 

sleep:

   

  POWER_SYS_Init(&powerConfigsArr, POWER_MODES, &powerStaticCallbacksConfigsArr, 0);

  //disabling interrupt

  //disable watchdog 

  //Enabling gpio interrupt
  POWER_SYS_SetMode(VLPS, POWER_MANAGER_POLICY_AGREEMENT);

Is it possible to change the state from VLPS to RUN without resetting the MCU?

 

Can anyone help me to share the example code to change the power mode from VLPS to RUN? 

 

Thanks in advance.

 

Regards,

Shinod A K

Outcomes