cancel
Showing results for 
Search instead for 
Did you mean: 

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

PoChun0311
Associate

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 1
TDK
Super User

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".