Skip to main content
Explorer
July 31, 2025
Question

Using STM32CubeIDE to generate C++ code for Nucleo-U575ZIQ

  • July 31, 2025
  • 1 reply
  • 163 views

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. 

PoChun0311_0-1753972080827.png

I just wonder if there is something missing. 

Thanks for the help!

 

1 reply

TDK
Super User
July 31, 2025

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.

"If you feel a post has answered your question, please click ""Accept as Solution""."