← Back to Skills Marketplace
yeyeeyeeee

STM32 AI Assistant

by yeyeeyeeee · GitHub ↗ · v5.0.0 · MIT-0
cross-platform ⚠ suspicious
65
Downloads
0
Stars
0
Active Installs
42
Versions
Install in OpenClaw
/install stm32-ai-assistant
Description
STM32嵌入式开发AI助手MCP Server。让AI编码助手直接查询STM32寄存器定义、生成HAL初始化代码。支持GPIO/USART/SPI/I2C/ADC/TIM/EXTI等外设。触发词:STM32、嵌入式、单片机、寄存器、HAL代码生成。
README (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

Usage Guidance
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.
Capability Tags
crypto
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stm32-ai-assistant
  3. After installation, invoke the skill by name or use /stm32-ai-assistant
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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个代码模板
Metadata
Slug stm32-ai-assistant
Version 5.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 42
Frequently Asked Questions

What is STM32 AI Assistant?

STM32嵌入式开发AI助手MCP Server。让AI编码助手直接查询STM32寄存器定义、生成HAL初始化代码。支持GPIO/USART/SPI/I2C/ADC/TIM/EXTI等外设。触发词:STM32、嵌入式、单片机、寄存器、HAL代码生成。 It is an AI Agent Skill for Claude Code / OpenClaw, with 65 downloads so far.

How do I install STM32 AI Assistant?

Run "/install stm32-ai-assistant" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is STM32 AI Assistant free?

Yes, STM32 AI Assistant is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does STM32 AI Assistant support?

STM32 AI Assistant is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created STM32 AI Assistant?

It is built and maintained by yeyeeyeeee (@yeyeeyeeee); the current version is v5.0.0.

💬 Comments