Skip to main content
Glenn Rosendahl
Associate II
September 3, 2026
Question

creating CMSIS and DFP bare metal project in STM32CubeIDE 2.2

STM32CubeIDE v2.2 has left all of our code in question. We need guidance with the CMake since we no longer have any helper dialogs of the old IDE to create a project within the new framework that matches the old IDE. list of helpful guides

No HAL is needed

a CMSIS and DFP environment for the selected processor

CMake snippets that allow us to create and include legacy library code (adjusted for new processor)

methods to control code optimization for code sections and files

directory structure methods

basic commands to show what size of code we just compiled and output formats ie .hex

We believe this would be a great tutorial to ease the transition. I’m sure I have missed many other features of the old environment that you will quickly attend to.

Any guidance that doesn’t require 200 hours of head banging appreciated. 

Glenn

1 reply

Pavel A.
September 3, 2026

If you prefer Eclipse-based CubeIDE rather than VS Code with cmake, you can just tell CubeMX to generate the project for CubeIDE. Unless you have STM32C5 or other very new MCU, you can even use CubeIDE 1.9.x and stay in the comfort zone.