stm32-hal-development
Installation
SKILL.md
STM32 HAL Development
Treat this skill as the working playbook for CubeMX-based STM32 projects.
Workflow
- Read references/core-guidelines.md first.
- Keep all custom code inside
USER CODEregions unless the project has an explicit non-CubeMX extension point. - Configure peripherals in CubeMX, regenerate code, then add application or BSP logic.
- Read additional references only as needed:
- references/peripheral-driver-guide.md for sensor and bus drivers
- references/hal-quick-reference.md for API lookups
- references/troubleshooting-guide.md for failure analysis
- references/usage-examples.md for implementation patterns
- Reuse assets/bsp-template.c and assets/bsp-template.h when starting a new BSP module.
Notes
Related skills
More from leokemp223/embed-ai-tool
debug-platformio
当需要通过 PlatformIO 内置调试功能对目标板进行 GDB 调试时使用,支持下载暂停、附加和崩溃现场分析。
20peripheral-driver
当需要为外部设备(传感器、存储器、显示屏等)开发 BSP 驱动时使用。提供开源驱动搜索策略、质量评估、代码适配工具和常见设备适配要点。
18serial-monitor
当需要识别正确串口、调用自带脚本抓取日志,并分析嵌入式固件运行状态时使用。
18visa-debug
当需要调试 GPIB/USB/TCP/Serial VISA 仪器通信时使用,支持 SCPI 命令收发、波形捕获、截图和持续监控。
18flash-openocd
当需要使用已探测或显式指定的产物与探针配置,调用自带脚本通过 OpenOCD 烧录嵌入式固件时使用。
18build-iar
当需要通过 IAR Embedded Workbench 命令行编译嵌入式工程,调用自带脚本解析工程文件、执行构建并定位固件产物时使用。
18