bfd-cubemx-codegen

Regenerate STM32CubeMX project files from an existing .ioc without altering configuration.

27|1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Sonder4/STM32-BFD-Kit --skill bfd-cubemx-codegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bfd-cubemx-codegen
Source: https://github.com/Sonder4/STM32-BFD-Kit/tree/main/skills/claude/bfd-cubemx-codegen
Command: npx skills add https://github.com/Sonder4/STM32-BFD-Kit --skill bfd-cubemx-codegen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Regenerate CubeMX-managed project files from an existing .ioc without altering the current configuration.

Core Features & Use Cases

  • Regenerates code in place for projects that already have a CubeMX .ioc file.
  • Preserves clock, pin, peripheral, and toolchain settings while updating generated sources.
  • Useful when updating codegen artifacts after CubeMX changes or re-exports.

Quick Start

Provide the path to an existing .ioc with --ioc or --project-root and run the script to regenerate code without altering CubeMX configuration.

Frequently Asked Questions about bfd-cubemx-codegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I regenerate STM32CubeMX code without changing configuration?

To regenerate STM32CubeMX code without changing configuration, provide the path to an existing .ioc file and run the generation script headlessly. This refreshes generated project sources while preserving clock, pin, peripheral, and toolchain settings.

What is headless CubeMX code generation used for?

Headless CubeMX code generation is used to update codegen artifacts from an existing .ioc file via command line. It refreshes generated sources after updates or re-exports without requiring the CubeMX GUI or altering the original setup.

Can I refresh CubeMX generated files in place after updating an existing project?

Yes, you can refresh CubeMX generated files in place by providing an existing .ioc file. The tool performs a hash-check to ensure configuration integrity and automatically restores settings if the hash changes during regeneration.

Does regenerating code from an .ioc file modify my clock and pin settings?

Regenerating code from an .ioc file does not modify your clock, pin, peripheral, or toolchain settings. It updates generated sources while ensuring configuration integrity through a hash-check of the .ioc file.

What do I need to run a headless CubeMX codegen for an STM32 project?

To run headless CubeMX codegen, you need an existing STM32 project with a valid .ioc file. You provide the path to this file using the --ioc or --project-root argument to trigger script-based regeneration.