Skip to main content
Visitor II
July 24, 2026

STM32CubeMX2: Limited export capabilities

  • July 24, 2026
  • 2 replies
  • 40 views

Missing Makefile export capability. Missing option to export only minimum necessary files. Unfortunately this leads to bloated projects. The previous version of STM32CubeMX have these features. Clean and self-contain and not bloated project was the main reason to use STM32 in our company.

2 replies

Amel NASRI
ST Technical Moderator
August 18, 2026

Moved from Introducing STM32CubeMX2, a new flavor of STM32CubeMX tool for tracking and follow-up purposes.

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
ST Employee
August 20, 2026

Thanks for the feedback!

Exporting only the files your configuration actually uses is on the roadmap.
Today the full pack gets copied in, which is exactly the bloat you're
describing. No release date to give you yet.

Makefile export as its own target isn't on the roadmap. The direction is CMake,
and from a generated CMake project you can get a Makefile build:

    cmake -B build -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=<toolchain>
    cmake --build build

Not identical to what you had, but it works today.

Mads
CubeMX2 Product Marketing