From the reference manual and the application note I understand that the MCU resets(even if we use the wakeup unit to exit) everytime we exit Standby mode and enter RUN mode. I have a big project that runs multiple peripherals all the time. But I want to have SLEEP mode where I make the MCU to go to sleep(low power mode) and start execution from where I last stopped. But my RAM contents are lost due to the reset on standby exit and my program counter starts from main.
Is there any provision to have this functionality that I have described without losing my RAM contents.