STM32CubeIDE - want create new C++ executable (File > New > STM32 Project), takes me to STM32CubeMX, after configuration, next step?
Requirement: I need to create a basic C++ project (into which I'll insert files from an embedded C++ project built for another platform, then begin port testing.) The specifics are using a STM32F051R8 with "LL" low level support, but I don't think my problem is specific to the device. The C++ project is necessary for this task, and when I tried just changing main.c to main.cpp in my prior attempt(s), the project would not build (could not find main() to link from the .s startup file, even though main() was clearly present.)
What I tried before: I tried using STM32CubeMX to generate a trivial (light one LED using LL code generation setting), and that works, until I change the name of main.c to main.cpp, then when I try to build, main() can't be found (bl main in the .s file doesn't find main() in main.cpp)
What I'm trying now: I am now trying to use STM32CubeIDE as the starting point (File > New > STM32 Project); I specify the requested project name and set as C++, executable, STM32Cube project type (in "Setup STM32 project" dialog box), then click Finish.) After a time in "perform project creation", I see the new project folder (and some of it's folders/files) in STM32CubeIDE project explorer, and (now familiar) STM32CubeMX appears, allowing me to make hardware configuration selections, which I complete.
Where I'm stuck: After configuring the device hardware settings in the STM32CubeMX session, I don't see a way to finish the STM32CubeMX session, and no src/ directory is created in STM32CubeIDE's project explorer entry for the new project.
Questions:
- What am I missing when interacting with STM32CubeMX when it's launched from STM32CubeIDE as part of creating a new project?
- Is there something more to specifying a C++ project at the outset? My inability to solve the error (to the effect) "main()" not found is the root problem I'm seeking to solve.
Thanks for any advice or any requests for clarifying information!
Dave