openocd-jtag

Configure OpenOCD for JTAG and SWD debugging with GDB.

159|20|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill openocd-jtag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openocd-jtag
Source: https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/embedded/openocd-jtag
Command: npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill openocd-jtag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of configuring and using OpenOCD for embedded hardware debugging, enabling efficient firmware flashing and GDB integration.

Core Features & Use Cases

  • JTAG/SWD Configuration: Guides users through setting up OpenOCD for various debug probes (J-Link, CMSIS-DAP) and microcontroller targets.
  • Firmware Flashing: Provides commands to flash ELF or binary firmware files to target MCUs.
  • GDB Integration: Details how to connect GDB to a running OpenOCD instance for bare-metal debugging.
  • Hardware Breakpoints/Watchpoints: Explains the use of hardware-assisted debugging features.
  • Use Case: You're developing firmware for an STM32 microcontroller and need to flash it and debug it using GDB. This skill will help you configure OpenOCD, connect GDB, and set breakpoints.

Quick Start

Use the openocd-jtag skill to connect GDB to your MCU via OpenOCD.

Frequently Asked Questions about openocd-jtag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OpenOCD for JTAG and SWD interfaces with an STM32 microcontroller?

Configuring OpenOCD for JTAG and SWD interfaces involves loading Tcl configuration scripts that define your debug probe, such as J-Link or CMSIS-DAP, and your STM32 target. This sets up the hardware connection for GDB integration and bare-metal debugging.

Can I flash ELF or binary firmware files directly to a target MCU using OpenOCD?

Yes, you can flash ELF or binary firmware files directly to a target MCU using OpenOCD. The skill provides specific commands to write firmware images to microcontroller flash memory, streamlining the deployment process for embedded hardware.

How do I connect GDB to a running OpenOCD instance for bare-metal debugging?

To connect GDB to a running OpenOCD instance for bare-metal debugging, you launch the GDB client and target the remote OpenOCD server port. This allows you to set hardware breakpoints and inspect memory on the microcontroller.

Does this OpenOCD configuration support hardware breakpoints and watchpoints for embedded debugging?

Yes, this OpenOCD configuration supports hardware breakpoints and watchpoints for embedded debugging. It utilizes Tcl configuration scripts and GDB commands to enable hardware-assisted debugging features on supported microcontroller targets.

What debug probes are supported for configuring OpenOCD with JTAG and SWD?

OpenOCD configuration supports common debug probes for JTAG and SWD interfaces, including J-Link and CMSIS-DAP. The skill guides you through setting up these specific hardware probes to establish a connection with your microcontroller target.

When do I need OpenOCD for embedded hardware debugging instead of a standard software debugger?

You need OpenOCD for embedded hardware debugging when working with bare-metal microcontroller targets that require direct hardware access. It bridges GDB to physical JTAG or SWD interfaces, enabling on-chip firmware flashing and hardware breakpoints that software debuggers cannot access.