17.4 Exception Handlers
Cortex-M cores support exception handlers for internal events, although the specific set of internal events depends on the architecture. All internal and external exception handlers—except for the Reset handler—have a weak default implementation. This default implementation executes __builtin_software_breakpoint()
in a debug build and goes into an infinite loop in a production build. The default implementation is a weak function called Dummy_Handler;
you may override it if you wish to define your own default handler.
For convenience, the common set of exception handlers for internal events are briefly described below. See the appropriate architecture reference manual for the list of all internal events and how they are triggered.