OpenOCD provides JTAG-based programming, flashing, and source-level debugging for embedded targets, exposed through telnet, Tcl, and GDB server interfaces.
Overview
OpenOCD offers on-chip programming and debugging with layered JTAG and TAP support. It can play back (X)SVF for automated boundary scan and FPGA or CPLD programming, drive debug targets such as ARM and MIPS with stepping and breakpoints, and program many flash types through chip-specific drivers. An embedded Tcl interpreter supports scripting automation.
Users interact via telnet, Tcl, or a GDB remote server so GNU GDB and compatible tools can treat the probe as a remote embedded target. Quick start flows load board or adapter-plus-target configuration files, then attach GDB to the advertised port. Binary installs are commonly available through Linux distribution packages, Homebrew on macOS, and MSYS2 on Windows, while packagers produce release builds separate from day-to-day development on the main branch.
Hardware coverage spans numerous USB and parallel JTAG adapters from many vendors, plus broad CPU, SoC, and board configuration scripts for microcontrollers, application processors, and development boards. Flash driver support includes vendor families used in consumer, industrial, and maker boards. Network-facing server enhancements and RTOS awareness (including Zephyr) extend typical bare-metal debug sessions.
The tool targets firmware engineers, hardware bring-up teams, and IDE integrators who need a single open debugger stack across adapters and silicon rather than proprietary probe software tied to one vendor.
Key features
- JTAG adapter and TAP support
- GDB remote debug server
- Telnet and Tcl control interfaces
- Flash programming drivers
- Embedded Tcl scripting
- Automated boundary scan playback
- Wide adapter hardware support
- Many embedded and SoC target configs
Use cases
- Firmware debugging with GDB
- Flashing internal or external flash
- FPGA and CPLD boundary scan programming
- Board bring-up on new silicon
- IDE-integrated embedded debug sessions