cancel
Showing results for 
Search instead for 
Did you mean: 

NMI priority

gbigden
Associate III
Posted on September 16, 2015 at 12:29

Looking at the reference manual it shows the priority as -2 What does this mean - is it high or low? and can code running under the NMI be interrupted?

#interrupts
3 REPLIES 3
Danish1
Lead II
Posted on September 16, 2015 at 13:29

The following comes from the ''cortex architecture reference manual'' ARM DDI 0405C which is available from arm themselves, and ST might have a link as well:

NMI priority is very high (-2). It an only be interrupted by Reset (priority -3)

NMI is even higher priority than HardFault (-1) (that's something I didn't know but I guess it makes sense).

Hope this helps,

Danish

gbigden
Associate III
Posted on September 16, 2015 at 14:21

Thanks. When a routine is running under NMI can it be interrupted?

Posted on September 16, 2015 at 17:25

Only by a reset...

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..