When I read below thread in arm forum, I still not clear which one is the safety way. Cortex-M4: guaranteed wakeup from WFI? There're two solutions mentioned above, using WFE instead of WFI, and swap __WFI() and __enable_irq(). I can
↧