What problem does it solve?
This Skill provides step-by-step guidance to configure OpenOCD and debug microcontroller targets over JTAG or SWD, flash firmware, and attach GDB for bare-metal debugging to reduce setup friction and common connection errors.
Core Features & Use Cases
- Configuration guidance: How to select and compose interface and target configuration files for CMSIS-DAP, J-Link, ST-Link and common MCU families.
- Flashing and GDB integration: Methods to program ELF or raw binaries via OpenOCD or GDB and how to connect and control a GDB session to the OpenOCD remote target.
- Hardware breakpoints & troubleshooting: How to use hardware breakpoints and watchpoints, common OpenOCD monitor commands, and fixes for frequent errors such as "unable to find JTAG device".
- Use Case: Flash and debug an STM32F4 or nRF52 using a CMSIS-DAP or J-Link adapter, run break-on-reset, and set hardware watchpoints for peripheral debugging.
Quick Start
Use the openocd-jtag skill to generate a minimal OpenOCD configuration and the exact GDB steps to flash and start a debug session for an STM32F4 target.