IT lexicon › Hardware › Vector catch

Vector catch

Hardware På svenska → Updated: 2026-11-05

A debug feature that halts the core the instant a chosen exception is taken, before any handler gets to run.

An ordinary breakpoint only helps if you know where to put it. Vector catch puts it on the exception itself. On Cortex-M the control bits live in the DEMCR debug register: VC_CORERESET halts the core straight after reset, before the first instruction, and VC_HARDERR halts on a HardFault. Further bits cover bus faults, usage faults and NVIC-related errors. None of them uses up one of the scarce hardware breakpoints.

It is how a debugger seizes a chip whose firmware crashes within microseconds of power-up, and how OpenOCD can stop at reset even when flash is full of garbage. The idea predates Cortex: ARM7 and ARM9 had the same thing in their EmbeddedICE logic. Anyone wondering why the debugger keeps stopping in a fault handler they never set a breakpoint in has usually just met this feature.

← Back to the lexicon