C++ for firmware development - how do I get started?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-26 6:02 AM
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++?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-26 7:00 AM
You can't find any STM32 C++ examples on the interwebs?
https://www.youtube.com/results?search_query=stm32+c%2B%2B
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-26 6:45 AM
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:
- UM2609 STM32CubeIDE user guide
- STM32CubeIDE introduction
- wiki articles to start with an STM32 MCU board and help developing applications with the software programming tools.
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-26 7:00 AM
You can't find any STM32 C++ examples on the interwebs?
https://www.youtube.com/results?search_query=stm32+c%2B%2B
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-26 2:05 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-05-27 1:24 AM
Thank you for the links
