STM32 Interrupts
1. Processor Mode The processor mode can change when exceptions occur. And it can be in one of the following modes: Thread Mode: Which is entered on reset. Handler Mode: Which is entered on all other exceptions. 2. Exception Types Exceptions can be fired by various events including: Internal Exceptions External Exceptions 3. Internal Exceptions Exceptions that get fired by an internal source to the system and not by any external hardware or peripherals. And this includes: Reset : This is the handler routine that gets executed when the processor gets out of a reset state whatever the source is. System Service Call (SVC) : Similar to SVC instruction on other ARM cores. it allows non-privileged software to make system calls. This provides protection for critical system functionalities. Pended System Call (PendSV) : Operates with SVC to ease RTOS development as it’s intended to be an interrupt for RTOS use. Non-Maskable Interrupt (NMI) : As the name suggest...