← 返回 Skills 市场
yeyeeyeeee

STM32 AI Assistant

作者 yeyeeyeeee · GitHub ↗ · v5.0.0 · MIT-0
cross-platform ⚠ suspicious
65
总下载
0
收藏
0
当前安装
42
版本数
在 OpenClaw 中安装
/install stm32-ai-assistant
功能描述
STM32嵌入式开发AI助手MCP Server。让AI编码助手直接查询STM32寄存器定义、生成HAL初始化代码。支持GPIO/USART/SPI/I2C/ADC/TIM/EXTI等外设。触发词:STM32、嵌入式、单片机、寄存器、HAL代码生成。
使用说明 (SKILL.md)

STM32 AI Assistant — MCP Server

让 AI 编码助手直接理解 STM32 寄存器,生成正确的 HAL 代码。

功能

  • 📖 寄存器查询 — "GPIO 的 MODER 寄存器有哪些位?" → 返回完整定义
  • 📋 外设列表 — "STM32F407 有哪些外设?" → 32个外设、81个实例
  • 🔧 代码生成 — "PA5 配置为推挽输出" → 完整 HAL 初始化代码
  • 📊 外设详情 — "USART 的所有寄存器" → 全部寄存器+访问类型

已支持芯片

芯片 外设 实例 寄存器
STM32F407 32 81 317

代码模板

GPIO / USART / TIM PWM / SPI / I2C / ADC / EXTI

使用方式

作为 MCP Server

{
  "mcpServers": {
    "stm32": {
      "command": "python3",
      "args": ["stm32-ai-assistant/src/mcp_server.py"]
    }
  }
}

通过 OpenClaw 对话

帮我配置 STM32F407 的 USART1,115200 波特率,PA9 TX PA10 RX

安装

clawhub install stm32-ai-assistant

完整版

完整版含更多芯片(STM32F103/H743/ESP32)、位域定义、代码校验。

  • 微信咨询:a175311344(备注:嵌入式AI)

License

MIT

安全使用建议
Install only if you are comfortable reviewing generated embedded code before using it. Treat any FLASH output as advanced and hardware-specific: verify the target sector/address, backups, linker layout, calibration data, and erase/program return values before compiling or flashing it to a board.
能力标签
crypto
能力评估
Purpose & Capability
The skill’s main purpose is STM32 register lookup and HAL code generation, which matches most artifacts, but it also exposes FLASH generation that unlocks flash, erases sector 7, and writes words despite FLASH not being clearly listed in the main template scope.
Instruction Scope
The generated flash template has no warning, bounds checks, address allowlist, or return-value handling around irreversible erase/program operations; the LPTIM template also has misleading naming and timing comments.
Install Mechanism
Installation and use are disclosed as a Python stdio MCP server, with no dependency install hooks or hidden setup behavior found.
Credentials
Runtime behavior appears limited to reading bundled knowledge, templates, and user-supplied MCP requests; no network access, credential access, broad filesystem scanning, or command execution was found.
Persistence & Privilege
The skill does not persist on the host beyond normal MCP use, but it can generate embedded code that performs persistent destructive writes to MCU flash without clear user-facing safety framing.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install stm32-ai-assistant
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /stm32-ai-assistant 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v5.0.0
新增TIM外部时钟计数器模板,共39个
v4.9.0
新增GPIO位带操作模板,共38个
v4.8.0
新增TIM Hall传感器模板,共37个
v4.7.0
新增GPIO开漏驱动模板,共36个
v4.6.0
新增看门狗对比模板,共35个
v4.5.0
新增低功耗定时器模板,共34个
v4.4.0
新增RTC闹钟模板,共33个
v4.3.0
新增TIM单脉冲模板,共32个
v4.2.0
新增TIM输出比较模板,共31个
v4.1.0
新增ADC DMA模板,共30个
v4.0.0
新增I2C DMA模板,共29个
v3.9.0
新增UART DMA模板,共28个
v3.8.0
新增SPI DMA传输模板,共27个
v3.7.0
新增TIM PWM输入模板,共26个
v3.6.0
新增TIM编码器模式模板,共25个
v3.5.0
新增TIM输入捕获模板,共24个
v3.4.0
新增GPIO中断模板,共23个
v3.3.0
新增NVIC中断管理模板,共22个
v3.2.0
新增printf重定向模板,共21个
v3.1.0
新增FreeRTOS模板,共20个代码模板
元数据
Slug stm32-ai-assistant
版本 5.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 42
常见问题

STM32 AI Assistant 是什么?

STM32嵌入式开发AI助手MCP Server。让AI编码助手直接查询STM32寄存器定义、生成HAL初始化代码。支持GPIO/USART/SPI/I2C/ADC/TIM/EXTI等外设。触发词:STM32、嵌入式、单片机、寄存器、HAL代码生成。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 65 次。

如何安装 STM32 AI Assistant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install stm32-ai-assistant」即可一键安装,无需额外配置。

STM32 AI Assistant 是免费的吗?

是的,STM32 AI Assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

STM32 AI Assistant 支持哪些平台?

STM32 AI Assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 STM32 AI Assistant?

由 yeyeeyeeee(@yeyeeyeeee)开发并维护,当前版本 v5.0.0。

💬 留言讨论