18.4.5.2.2 Hot-Plugging
Hot-plugging is the detection of a debugger probe when the system is not reset. Hot-plugging detection occurs when the external Reset pin is not asserted and at least three SWCLK rising edges are detected, as shown in the figure. A hot-plugging debug session terminates on a Brown-out Reset, including an assertion of the external Reset. Hot-plugging is only possible if the device PORTMUX selects the SWCLK function. If the SWCLK function is changed, the hot-plugging feature is disabled until a power Reset or external Reset occurs. The availability of the hot-plugging feature can be read from the Hot-Plugging Status bit of the Status B (STATUSB.HPS) register.
The presence of a debugger probe is detected when either hot-plugging or cold-plugging is detected. Once detected, the Debugger Present bit of the Status B (STATUSB.DBGPRES) register is set.
