MCPInstall

stm32-freertos-developer

STM32 + FreeRTOS 嵌入式开发专家。支持 Cortex-M 全系列,原生 FreeRTOS v10+ 和 CMSIS-RTOS v2 API。用于创建任务/队列/信号量、集成标准库 + HAL 外设、内存优化、低功耗 Tickless 模式、STM32CubeMX 配置、调试分析(SEGGER SystemView / Percep TRACEalyzer)。

Installs
493
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/2939387245/agent-skill_stm32-freertos --skill stm32-freertos-developer
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads stm32-freertos-developer automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

STM32 + FreeRTOS 嵌入式开发专家

AI 使用规则

当用户提出请求时,根据以下规则选择性读取文档。不要一次性读取所有文档,只读取与用户请求相关的文件。

代码生成请求

用户说...读取文件
"创建任务" / "创建队列" / "信号量" / "互斥锁" / "事件组" / "任务通知"EXAMPLES/BASIC.md
"UART 驱动" / "ADC 驱动" / "I2C 驱动" / "TIM 驱动"REFERENCE/HAL_DRIVERS.md + EXAMPLES/DRIVERS.md
"printf 重定向" / "printf 输出" / "ITM"REFERENCE/STD_LIBS.md
"DMA 接收" / "不定长数据"REFERENCE/HAL_DRIVERS.md + EXAMPLES/DRIVERS.md

代码审查/问题排查请求

用户说...读取文件
"中断" / "FromISR" / "portYIELD_FROM_ISR" / "优先级配置"PATTERNS/INTERRUPT.md
"死锁" / "优先级反转" / "堆栈溢出" / "资源泄漏"PATTERNS/TRAPS.md
"生产者-消费者" / "状态机" / "资源池" / "发布-订阅"PATTERNS/DESIGN.md

调试请求

用户说...读取文件
"SystemView" / "TRACEalyzer" / "trace 分析"REFERENCE/DEBUG_TOOLS.md
"任务统计" / "堆栈监控" / "CPU 使用率"REFERENCE/DEBUG_TOOLS.md

高级应用请求

用户说...读取文件
"低功耗" / "Tickless" / "STOP 模式"EXAMPLES/ADVANCED.md
"CubeMX 配置" / "STM32CubeMX"EXAMPLES/ADVANCED.md
"传感器融合" / "多任务"EXAMPLES/ADVANCED.md

API 查询请求

用户说...读取文件
"xTaskCreate 参数" / "API 语法" / "函数说明"REFERENCE/FREERTOS_API.md

使用方法

如果用户请求不够明确,无法判断读取哪个文件:

  1. 先读取 SKILL.md 和 REFERENCE/FREERTOS_API.md
  2. 询问用户具体需求
  3. 根据回答读取正确的文件

不要一次性读取所有文件!只读取与用户请求相关的文件。


技能简介

本技能专为在 STM32 微控制器 上使用 FreeRTOS 实时操作系统 进行嵌入式开发而设计。AI 将作为"嵌入式系统架构师",帮助你编写安全、高效、可维护的 C 代码。

适用场景:

  • 使用 STM32CubeMX 生成的工程
  • ARM Cortex-M 全系列(F0/F1/F3/F4/F7/H7/G0/L0/L4/L5 等)
  • FreeRTOS v10+ 版本
  • 原生 FreeRTOS API 或 CMSIS-RTOS v2 API

使用场景

代码生成

  • 创建任务、队列、信号量、互斥锁
  • 编写外设驱动模板(UART DMA、ADC DMA、I2C 等)
  • 配置低功耗 Tickless 模式
  • 实现 printf 重定向(ITM_SendChar / UART)

代码审查

  • 分析任务优先级配置是否合理
  • 检查中断与任务交互的正确性
  • 排查死锁、优先级反转、资源泄漏
  • 验证 FreeRTOSConfig.h 配置

教学辅导

  • 解释 FreeRTOS 核心概念(任务调度、上下文切换)
  • 演示生产者-消费者、发布-订阅等设计模式
  • 指导调试工具使用(SEGGER SystemView、TRACEalyzer)

核心能力模块

任务管理

  • 创建静态/动态任务(xTaskCreate, xTaskCreateStatic)
  • 设置优先级、堆栈大小、任务名
  • 任务状态监控(uxTaskGetStackHighWaterMark)

任务间通信

  • 队列(Queue):生产者-消费者模型
  • 信号量(Semaphore):二值/计数型
  • 互斥锁(Mutex):避免竞态条件,含优先级继承
  • 事件组(Event Groups):多条件等待
  • 任务通知(Task Notifications):轻量级替代方案

中断与任务交互

  • 在 HAL 回调中使用 xQueueSendFromISR / vTaskNotifyGiveFromISR
  • ISR 中不阻塞,仅发送通知
  • portYIELD_FROM_ISR(xHigherPriorityTaskWoken) 用法

外设集成

  • UART DMA + 队列:不定长数据接收(IDLE 中断)
  • ADC DMA + 任务通知:连续采样
  • I2C 主/从模式:传感器通信
  • TIM 定时器/PWM:周期任务

内存与性能优化

  • 推荐静态分配(避免 heap 碎片)
  • 合理估算堆栈大小
  • 开启 configASSERT() 和 configCHECK_FOR_STACK_OVERFLOW
  • 使用 configUSE_PREEMPTION = 1 提升实时性

调试与诊断

  • 生成任务列表打印代码(vTaskList)
  • SEGGER SystemView(Keil/IAR 环境)
  • Percep TRACEalyzer(FreeRTOS 环境)
  • ITM/SWO 配置与 printf 调试

文件索引

类型文件说明
主文件SKILL.mdAI 唯一自动读取的文件
用户指南USER_GUIDE.md仅用户阅读,不读取
API 参考REFERENCE/FREERTOS_API.mdFreeRTOS API 语法
API 参考REFERENCE/STD_LIBS.md标准库集成
API 参考REFERENCE/HAL_DRIVERS.mdHAL 外设驱动
API 参考REFERENCE/DEBUG_TOOLS.md调试工具配置
代码示例EXAMPLES/BASIC.md基础组件示例
代码示例EXAMPLES/DRIVERS.md外设驱动模板
代码示例EXAMPLES/ADVANCED.md高级应用
设计模式PATTERNS/DESIGN.md设计模式
设计模式PATTERNS/INTERRUPT.md中断最佳实践
设计模式PATTERNS/TRAPS.md常见陷阱

脚本工具

freertos_config_check.py

验证 FreeRTOSConfig.h 关键配置:

python scripts/freertos_config_check.py FreeRTOSConfig.h

输出 JSON 格式,便于 CI 集成。

FAQ

What does the stm32-freertos-developer skill do?

STM32 + FreeRTOS 嵌入式开发专家。支持 Cortex-M 全系列,原生 FreeRTOS v10+ 和 CMSIS-RTOS v2 API。用于创建任务/队列/信号量、集成标准库 + HAL 外设、内存优化、低功耗 Tickless 模式、STM32CubeMX 配置、调试分析(SEGGER SystemView / Percep TRACEalyzer)。

How do I install stm32-freertos-developer?

Run npx skills add https://github.com/2939387245/agent-skill_stm32-freertos --skill stm32-freertos-developer in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/stm32-freertos-developer/ (personal) or .claude/skills/stm32-freertos-developer/ (project).

Which AI agents can use stm32-freertos-developer?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is stm32-freertos-developer safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains stm32-freertos-developer?

It is published by 2939387245 in 2939387245/agent-skill_stm32-freertos. It has 493 recorded installs.

Popular backend & apis skills

View category →

find-skills

vercel-labs/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

OfficialBackend & APIs4.1M installs

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

OfficialBackend & APIs566.7K installs

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).

Backend & APIs514.8K installs

embedded-captions

heygen-com/hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Backend & APIs453.3K installs

entra-agent-id

microsoft/azure-skills

Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).

OfficialBackend & APIs336.6K installs

neon

neondatabase/agent-skills

Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.

Backend & APIs237.1K installs