Debugging & Toolchain · Interview question

You connect a probe but can't talk to the target. What do you check?

A strong answer

Several common causes, roughly in order. First, the OpenOCD (or vendor) configuration: you need the correct interface file matching your actual probe (ST-Link vs J-Link vs CMSIS-DAP) and the correct target file for your exact MCU; a wrong or missing config gives "no target found." Second, the physical/electrical connection: the probe usually senses the target's logic voltage via the VTref pin rather than powering the board, so you must power the target separately, share a common ground between probe and target, and connect VTref so the probe drives the SWD lines at the right voltage, missing VTref or GND is a leading "won't connect." Check the SWDIO/SWCLK wiring and the reset line too. Third, firmware locking out debug: if the application reconfigures the SWD pins as GPIO, enters a low-power mode that gates the debug clock early, or readout protection (RDP) is enabled, the debugger can't attach to a running target, the fix is often "connect under reset," which halts the core at reset before the firmware disables debug, or lowering the adapter clock speed if the connection is flaky due to wiring. Fourth, adapter speed too high for the wiring causes intermittent failures, so reduce it. And confirm the probe itself is recognized by the host (drivers/permissions). The systematic approach is: verify config (probe + chip), verify power/VTref/GND/wiring, try reset-and-halt / connect-under-reset, and lower the clock, most failures are config or VTref/ground.

What a weak answer sounds like

You know the answer. Do you know what gets you dinged?

Pro breaks down the answer most candidates actually give to this question — and the specific reason an interviewer marks it down. It’s the difference between sounding correct and sounding senior, on all 472 questions.

From the lesson

On-Chip Debugging: JTAG & SWD

How GDB physically reaches into a running chip: built-in debug logic accessed via JTAG (4-5 pins) or ARM's 2-pin SWD, through a debug probe, enabling halt/run, memory access, flashing, and trace.

More On-Chip Debugging: JTAG & SWD questions

Browse all 472 interview questions
You connect a probe but can't talk to the target. What do you check? | EmbeddedPrep.io