A Claude Code skill for STM32 firmware development using STM32CubeCLT toolchain.
This skill provides expert guidance for STM32 embedded development without relying on Keil MDK or STM32CubeIDE. It covers the complete workflow from toolchain installation to firmware flashing via command line.
Supported MCUs: STM32F1, STM32F4, STM32H7 series (and compatible)
- Setting up STM32CubeCLT development environment
- Creating build scripts for STM32 projects
- Configuring HAL library and compiler options
- Troubleshooting compilation and linking errors
- Flashing firmware via ST-Link using command line
- Understanding project structure and startup files
Mention STM32 development in your request:
- "Help me set up an STM32 project"
- "How do I build STM32 firmware without IDE?"
- "stm32 build script"
- "stm32 flash programming"
- "stm32 cubeclt configuration"
- STM32CubeCLT installation guidance
- Environment variable configuration
- Path setup for Windows/Unix
- Recommended directory layout
- HAL library organization
- CMSIS integration
- HAL module selection (hal_conf.h)
- Compiler flags and MCU options
- Linker script configuration
- GCC ARM toolchain options
- Shell script templates
- Makefile examples
- CI/CD integration
- ST-Link connection verification
- Firmware upgrade procedures
- STM32CubeProgrammer CLI usage
- SWD programming commands
Common errors and solutions:
- Undefined HAL module errors
- Missing system files
- Linker script issues
- Clock configuration mismatches
User: "Help me create an STM32F4 build script"
Skill will provide:
1. Complete build.sh template
2. HAL configuration guidance
3. Compiler flag recommendations
4. Flash command examples
- STM32CubeCLT installed
- ST-Link debugger hardware
- Target STM32 board
Responses include:
- Ready-to-use shell scripts
- Code snippets with explanations
- Step-by-step procedures
- Troubleshooting tables
EricSun
1.0.0
MIT