Jlink

•
45
•

Enables AI assistants to debug embedded ARM Cortex-M devices by providing a comprehensive interface for flashing, halting, stepping, streaming RTT logs, and decoding faults via J-Link, OpenOCD, and Black Magic probes.

jlink-mcp connects AI assistants like Claude and Copilot to your embedded hardware through SEGGER J-Link debug probes, leveraging the Model Context Protocol. This server allows LLMs to perform complex embedded debugging tasks without manual command entry, including reading registers and memory, flashing firmware, streaming RTT logs with advanced filtering, diagnosing crashes by automatically decoding ARM Cortex-M fault registers, controlling execution flow (halt, step, resume, breakpoints), and starting GDB servers for comprehensive debugging sessions. It extends its support beyond J-Link to include OpenOCD (for ST-Link, CMSIS-DAP, FTDI) and Black Magic Probe backends, providing a unified AI-driven interface for various embedded development environments.

主要功能

01Integrates with SEGGER J-Link, OpenOCD, and Black Magic Probe debug probes.
02Read and decode peripheral registers and their bit fields using CMSIS-SVD files.
03Flash firmware, halt, step, resume, and reset embedded device execution.
0424 GitHub stars
05Stream and search Real-Time Transfer (RTT) logs with parsing for levels, modules, and regex.
06Automated ARM Cortex-M crash diagnosis and fault decoding with stack frame analysis.

使用案例

01AI-assisted embedded system debugging and development workflows.
02Automated crash analysis and diagnosis of Cortex-M microcontrollers.
03Hardware-in-the-loop (HIL) testing and verification orchestrated by LLMs.