2020-12-12 02:16 AM
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.
2020-12-12 03:12 PM
The generated code is the same, but you can add your own C++ code in a C++ project.
2020-12-12 03:16 PM
MENU>File >new>c/c++project and add your cpp files