Skip to main content
nbobovnikov
Associate
December 29, 2016
Question

Option to generate C++ project (for SW4STM32)

  • December 29, 2016
  • 6 replies
  • 1446 views
Posted on December 29, 2016 at 11:21

Hello,

Currently, there is a possibility to generate C projects for different IDEs including SW4STM32, which uses gcc for compilation. But one can also use C++ code with g++ compiler supporting cool c++11/14 features, and there may be a number of people who would like to utilize this. Right now there is no possibility to create C++ project from STM32Cube and one needs to rename main.c to main.cpp and setup compiler manually. So I suggest to add an option to generate C++ project from STM32 Cube, so that *.cpp files are generated (at least main.cpp) and 

g++ compiler is used in project settings. I didn't find bug/feature tracking system, so I post this suggestion here

Regards,

Nikolay
    This topic has been closed for replies.

    6 replies

    kopf
    Associate
    January 3, 2017
    Posted on January 03, 2017 at 04:46

    +1

    Nesrine M_O
    Associate
    January 3, 2017
    Posted on January 03, 2017 at 09:28

    Hi

    Bobovnikov.Nikolay

    ‌,

    Thanks for the suggestion! I will forward this to our team.

    -Nesrine-

    We are looking for your wishes about our STM32 products,ecosystem and community:

    https://community.st.com/community/stm32-community/stm32-forum/blog/2016/12/30/2017-stm32-wish-list

    Evgeny Erlihman
    Associate III
    October 20, 2017
    Posted on October 20, 2017 at 21:16

    Hi

    ELMHIRI.Syrine

    Any plans of adding C++ support to the Cube?

    Thanks,

    Evgeny

    J F
    Visitor II
    May 13, 2017
    Posted on May 13, 2017 at 21:59

    +1

    Evgeny Erlihman
    Associate III
    October 17, 2017
    Posted on October 17, 2017 at 19:29

    Hey Nikolay,

    Have you figured out a way of keeping the C++ related settings when the code is regenerated?

    Thanks,

    Evgeny

    Jeanne Joly
    Associate
    January 18, 2018
    Posted on January 18, 2018 at 15:23

    Hi

    Bobovnikov.Nikolay

    ,

    Musskopf.Mike

    ,

    evgeny.erlihman

    and

    Felix.Jose

    ,

    We do understand the need for you to generate C++project and this need is well known internally.

    However, for the moment, with the success of STM32CubeMX, we have a lot of requests/suggestions to study andmanyimprovements to integrate.

    And the C++ generation project item is not yet under study currently.

    Sorry, for the inconvenience it may cause.

    BR. Jeanne

    Thomas Hoppe
    Associate III
    April 4, 2018
    Posted on April 04, 2018 at 19:46

    +1