Hi tuomas aaltio,
What the KL25 code you are using? KSDK2.0-FRDM-KL25?
I didn't find the KSDK for KL25 using SMC_PostExitStopModes, so you can comment it, when the interrupt happens, the code will exit stop mode. if SMC_PostExitStopModes is used for the clock mode switch, fore example, PBE to PEE, because just as I have said, PEE enter STOP, wakeup will be PBE, clock switch to PEE need time. If you you don't want to do this clock switch, you can use other clock mode to enter STOP, then you don't need to do the clock mode switch after waking up.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------