Skip to main content
CH_bot_
Associate II
May 26, 2021
Solved

C++ for firmware development - how do I get started?

  • May 26, 2021
  • 4 replies
  • 4876 views

I have decided to implement my firmware in C++ on an STM32 Arm Cortex M4 microcontroller. However, I find it difficult to get started. I lack good examples and learning tools.

Does anyone know good examples of firmware in C++?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    You can't find any STM32 C++ examples on the interwebs?

    https://www.youtube.com/results?search_query=stm32+c%2B%2B

    4 replies

    Technical Moderator
    May 26, 2021

    Hello @CH_bot_​ ,

    Let me first welcome you to the STM32 Community :smiling_face_with_smiling_eyes:,

    I advise you to use STM32CubeIDE which is an all-in-one multi-OS development tool, and is part of the STM32Cube software ecosystem. It contains an advanced C/C++ development platform supporting software development of STM32-based products.

    You can start from the working example under STM32CubeXX firmware package, in the context of understanding the tools and the structure of the project.

    So, you can modify the application depending on your needs.

    I highly recommend to start with step-by-step wiki article and "Getting started" manuals which allow you to go step by step to install tools and start your project.

    Here are some useful links that can help you on your development:

    Hope my answer helped you!

    Please mark my answer as best by clicking on the "Select as Best" button if it helped :).

    If you still need help, don't hesitate to come back to the Community either with new threads or as a continuity of this one (when related to same initial topic).

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    May 26, 2021

    You can't find any STM32 C++ examples on the interwebs?

    https://www.youtube.com/results?search_query=stm32+c%2B%2B

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    TDK
    Super User
    May 26, 2021

    Even "C++ projects" typically have some source files in C and assembly, particularly for startup and low-level functionality. There is no need to modify those, you can just write the user part of the code in C++ as you see fit.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    CH_bot_
    CH_bot_Author
    Associate II
    May 27, 2021

    Thank you for the links