Hi Martin,
Thanks for the clarification! Kinetis devices execute the "WFI" instruction to enter low power modes, but WFI is a conditional instruction, so you may define a macro for this instruction with a condition, and change the condition to FAIL in the ISR which happens right before this intruction, so that this instruction does not execute at all in such case. Please kindly refer to the following for more details.


Hope that helps,
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------