IT lexicon › Hardware › CFSR (Configurable Fault Status Register)

CFSR (Configurable Fault Status Register)

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

The 32-bit Cortex-M register that tells you why the processor crashed, provided you read it before anything clears it.

CFSR sits at 0xE000ED28 in the System Control Block and is really three registers in a trench coat: MMFSR in the low byte for MemManage, BFSR in the next byte for BusFault, and UFSR in the top sixteen bits for UsageFault. Next to it is HFSR, whose FORCED bit means one of the finer-grained faults escalated to HardFault because it wasn't enabled, so the real answer is in CFSR. The address registers MMFAR and BFAR only mean something when their VALID bits are set, and on some implementations they share the same physical storage.

The bits are sticky and cleared by writing a one to them. A fault handler that saves CFSR, HFSR and the stacked PC to a RAM area that survives reset produces better diagnostics than most bug reports from the field.

← Back to the lexicon