Home | Projects | Notes > ARM Cortex-M3/M4 Processor > Exception Entry/Exit Sequence

Exception Entry/Exit Sequence

 

Exception Entry Sequence

  1. Pending bit set

  2. Stacking and vector fetch

    • Stacking - pushing the necessary registers onto stack

    • Vector fetch - fetching the address of the exception handler from the vector table

  3. Entry into the handler, and Interrupt Active Bit set

  4. Pending status clear (processor does it automatically)

  5. Processor mode changes to hander mode

  6. Handler execution

  7. MSP will be used for any stack operations inside the handler

 

Exception Exit Sequence

 

Exception Entry/Exit Sequence

 

exception-entry-exit-sequence

 

 

 

References

Nayak, K. (2022). Embedded Systems Programming on ARM Cortex-M3/M4 Processor [Video file]. Retrieved from https://www.udemy.com/course/embedded-system-programming-on-arm-cortex-m3m4/