Debug probes and bench instruments
Tools for seeing inside a running chip and on the wires around it: JTAG, SWD, GDB, logic analysers and oscilloscopes.
Key points
- JTAG (IEEE 1149.1) was created for board testing and is widely used for debugging; Arm's Serial Wire Debug (SWD) provides debug access with just two signals, clock and data.12
- Open-source tools such as OpenOCD connect a debug probe to GDB, giving breakpoints, single-stepping and memory inspection on the target chip.3
- A logic analyser records many digital lines and decodes protocols such as I²C and SPI; an oscilloscope shows the analog shape of a few signals, revealing ringing, slow edges and noise that a logic analyser hides.45
Spotted a mistake, or found this useful?
Tell usSources
- IEEE 1149.1-2013: Standard for Test Access Port and Boundary-Scan Architecture · IEEE · Standard
- Arm Debug Interface Architecture Specification ADIv5.0 to ADIv5.2 (IHI 0031E) · Arm · Standard
- OpenOCD User's Guide · OpenOCD project · Project docs
- sigrok: Protocol decoders · sigrok project · Project docs
- Logic Analyzer vs Oscilloscope · Keysight Technologies · Vendor page