Debug jlink

From LeoKemp223/embed-ai-tool · View interactive version

Debug jlink is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 J-Link GDB Server 启动或附着 GDB 会话,完成固件下载、在线调试或崩溃现场检查时使用。

How to use this skill

Skill file

J-Link GDB 调试

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测,还是执行调试会话。
  2. 若不确定环境是否就绪,先运行自带脚本 scripts/jlink_debugger.py 的 --detect 模式确认。
  3. 根据用户意图选择调试模式:download-and-halt(默认)、attach-only 或 crash-context。
  4. 使用 --elf + --device 启动调试,可选 --interface 和 --port。
  5. 需要 SWO 输出时,使用 --swo 参数。
  6. 读取脚本输出的调试结果,重点关注寄存器状态、回溯帧和 Fault 寄存器。

失败分流

平台说明

输出约定

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.