2022-10-26 9:55 AM
When I use CubeMX, the default language of my genereted code is C. I would like to develop in C++, as I can do in STM32CubeIDE. (I want to use VSCode to program)
Is there any option to do this? I've tried just change the main.c to main.cpp, but it didn't work.
(I'm a noob. So, if this questions is elementar, please, let me know likewise).
Solved! Go to Solution.
2025-08-05 2:18 PM
As CUBE-MX does have C++ option when using it in CUBEIDE, this is a valid question.
With several KB sized flash memories as standard, the object oriented benefits of C++ are specialy usefull to new generation with more having C++ background then C.So question needs to be reopened