2025-07-25 2:30 AM
When I use cubeide, it is OK to select c++ as targeted language. However, I can not find such a option in cubemx. Does cubemx support to generate c++ project with cmake? If not, could it be supported in the future?
2025-07-25 7:13 AM
CubeMX generates C code. There is no way to make it generate C++ code.
You can use C++ in your project by creating a different *.cpp file and calling a function in there from main().