EMBEDDED DEV TOOLS / HM-DT-030
HM-DT-030 · datasheet
STM32 AutoDebug Universal Kit
Closed-loop STM32 toolchain for AI agents: build with Keil, flash over SWD, check a pass token on the serial port and map HardFaults to a source line, with an optional MCP stdio server
01 · What it does
- Build a Keil MDK project and return compile and link errors with file and line
- Flash over ST-Link, DAP-Link or CMSIS-DAP and control the core (halt, run)
- Capture serial output and decide pass or fail from a firmware pass token
- Read fault registers after a HardFault and map the crash to a source line
- Run the full build, flash and verify loop with a fix hint from one tool
02 · Install
$ git clone https://github.com/TaoCosmo-Dev/STM32_AutoDebug_Universal_Kit.git
$ cd STM32_AutoDebug_Universal_Kit
$ powershell -ExecutionPolicy Bypass -File setup_env.ps1
$ python mcp_server.py test- README is in Chinese. The command line is the default way to use it; the MCP server is optional and documented in docs/ADVANCED.md (11 tools per its self-test)
- Windows-focused: needs Keil MDK5 (AC5 or AC6) and an existing Keil project; it does not generate projects. A template project is included for the STM32F103C8
- The setup script installs pyocd, pyelftools, pyserial and an agent skill for Claude Code, Cursor and Codex. Release v2.4.5 (Sep 30)
03 · Client config (from README)
{
"mcpServers": {
"stm32-copilot": {
"command": "python",
"args": ["C:\\path\\to\\STM32_AutoDebug_Universal_Kit\\mcp_server.py"]
}
}
}
Install steps taken from the project README (its recommended path first). Placeholders are the maintainer's. Not bench-tested by HardwareMCP yet.
Weekly bulletin
New hardware MCP servers, notable releases and setup notes. One email, Mondays.