Skip to content

EricSun787/stm32-development-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

STM32 Development Workflow

A Claude Code skill for STM32 firmware development using STM32CubeCLT toolchain.

Description

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)

When to Use This Skill

  • 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

How to Invoke

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"

Capabilities

1. Toolchain Setup

  • STM32CubeCLT installation guidance
  • Environment variable configuration
  • Path setup for Windows/Unix

2. Project Structure

  • Recommended directory layout
  • HAL library organization
  • CMSIS integration

3. Build Configuration

  • HAL module selection (hal_conf.h)
  • Compiler flags and MCU options
  • Linker script configuration
  • GCC ARM toolchain options

4. Build Automation

  • Shell script templates
  • Makefile examples
  • CI/CD integration

5. Flash Programming

  • ST-Link connection verification
  • Firmware upgrade procedures
  • STM32CubeProgrammer CLI usage
  • SWD programming commands

6. Troubleshooting

Common errors and solutions:

  • Undefined HAL module errors
  • Missing system files
  • Linker script issues
  • Clock configuration mismatches

Example Workflow

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

Requirements

  • STM32CubeCLT installed
  • ST-Link debugger hardware
  • Target STM32 board

Output Format

Responses include:

  • Ready-to-use shell scripts
  • Code snippets with explanations
  • Step-by-step procedures
  • Troubleshooting tables

Author

EricSun

Version

1.0.0

License

MIT

About

A Claude Code skill for STM32 firmware development using STM32CubeCLT toolchain.

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors