cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate C++ based project from STM32 Cube IDE v1.4.0

DChan.5
Associate

Hi There,

I want to generate a project template for STM32F103 based mcu, but the template/project should be C++ based not C based. I tried to mark C++ while creating a new project but still the end result was c based project only. main.c was created instead of main.cpp.

Kindly help me out in figuring how main.cpp or c++ based project be generated from STM32 Cube IDE.

2 REPLIES 2
KnarfB
Principal III

The generated code is the same, but you can add your own C++ code in a C++ project.

MENU>File >new>c/c++project and add your cpp files