You copied the Doc URL to your clipboard.

How can a Cortex-M processor wake up from WFI if interrupts are masked or disabled?

Article ID: 103489919

Published date: 29 Nov 2017

Last updated: -

Applies to: Cortex-M

Question

How can a Cortex-M processor wake up from WFI if interrupts are masked or disabled?

Answer

Please see the section named "Wait for Interrupt" from the ARMv6-M, ARMv7-M or ARMv8-M Architecture Reference Manual.

When interrupts are disabled by use of PRIMASK (CPSID i), the processor will wake up from WFI when it receives an interrupt whose priority would preempt the current execution context if PRIMASK were not set.

The priority level of the NMI interrupt is always sufficient to wake up the processor and to be handled immediately.

A Debug Halt from a debugger or a Reset will also cause the processor to wake up.

Related information

N/A

Was this page helpful? Yes No