2025-07-31 7:31 AM
Hi there,
I try to create a C++ project for Nucleo-u575ZI-Q using STM32CubeIDE but seems only C files are generated. I always choose C++ in Targeted Language, like the image shown below, when starting a new project.
I just wonder if there is something missing.
Thanks for the help!
2025-07-31 7:34 AM - edited 2025-07-31 7:34 AM
CubeMX only generates C files. Setting the project type to C++ will allow you to add *.cpp files and have them be compiled, but it does not change the files that CubeMX generates. This is the intended behavior and there's no way to change it.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.