OpenOCD / JTAG Debugging Purpose Guide agents through configuring OpenOCD for JTAG and SWD targets, flashing firmware to microcontrollers, attaching GDB for bare-metal debugging, setting hardware watchpoints, and configuring J-Link and CMSIS-DAP adapters. Triggers - "How do I connect GDB to my MCU with OpenOCD?" - "How do I flash firmware using OpenOCD?" - "How do I set up J-Link with OpenOCD?" - "What's the difference between JTAG and SWD?" - "How do I set a hardware watchpoint in GDB?" - "OpenOCD says 'Error: unable to find JTAG device' — how do I fix it?" Workflow 1. JTAG vs SWD | Feature…