I need to implement a "Sleep" functionality in my S32K312 project which will switch the MCU to a low power mode and wake up using a signal interrupt.
I have successfully implemented the basic functionality and I am switching to Standby mode as of now and waking up using a switch. I am utilising the POWER and WKPU module to achieve this.
The problem is after wake up the code begins running from the beginning of the project. I suspect it is due to a reset. However I need the code to run from the point right after the last executed line. Essentially, I do not want the mcu to "reset" after going to standby mode.
Is there any other power mode that I can switch to instead of "STANDBY" mode that will achieve this? Or is there any other settings I can change to do the same?
Hello,
There are following modes:
For more details please refer to :
Best regards,
Peter