IT lexicon › Hardware › DebugMonitor (monitor-mode debugging)

DebugMonitor (monitor-mode debugging)

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

A way to stop at a breakpoint without stopping the processor, so the interrupts keeping a motor or a radio link alive carry on running.

Cortex-M debugging is normally done in halting mode. A breakpoint freezes the whole core, and the debugger reads registers over SWD or JTAG. That works fine until the program is commutating a brushless motor or running a Bluetooth stack with tight timing windows. Then a frozen core means a fried driver stage or a dropped connection. Monitor mode, enabled with the MON_EN bit in DEMCR, makes breakpoints and watchpoints raise exception 12, DebugMonitor, instead.

That exception has an ordinary configurable priority. Higher-priority code keeps running while everything else waits in the monitor handler, which talks to the debugger. The feature exists on Cortex-M3 and up, not on M0. SEGGER sells support for it as part of J-Link, and Nordic recommends it for anyone debugging radio firmware.

← Back to the lexicon