17.4.2 NMI (Non-Maskable Interrupt)

The NMI exception is handled by the function NonMaskableInt_Handler with IRQ number NonMaskableInt_IRQn. It is always enabled and has a higher priority than any other interrupt except Reset. Hardware typically triggers an NMI, although software can trigger one using the following code.

SCB->ICSR = SCB_ICSR_NMIPENDSET_Msk;