AnsweredAssumed Answered

"KEAZN64M", (WFI Command not working ) IAR Compiler

Question asked by Mohammed Aboelnasr on Sep 13, 2017
Latest reply on Sep 14, 2017 by Mark Butcher


1- How can I make sure that the "WFI" command is working and the MCU enters the wait "low power" mode ? I mean is there a certain register i can watch to check that I'm in the wait mood ?
2- How can i go out of the wait mode using KBI interrupt noting that before entering the Wait mode the interrupts are disabled and PRIMASK.PM is set to 1 ? 
This is the Macro i used to define the wait instruction 
#define WAIT_FOR_INTERRUPTS()  asm("wfi")