Build STM32CubeIDE project using command line prompts from Python
Hi,
We are developing a desktop application on Python using Qt's PySide6 library and one of our goals is to build a STM32CubeIDE project from this application. I have read that we can achieve this via command line. I can successfully run command line prompts from Python but what I wanted to ask is that should we use `stm32cubeide` from command line, which makes STM32CubeIDE is a dependency for our project, or should we use another compiler like `gcc` or `eclipse` headless builds? These options could achieve what we are trying to do but I wanted to take your opinions on this matter.
Here are some of the examples I found so far in ST Community Forum and in web:
In this link for Eclipse headless builds we can achieve the build with something like:
$ eclipse \
--launcher.suppressErrors \
-nosplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-data /path/to/workspace \
-cleanBuild "project/configuration"In another post in the forum it is mentioned that we can use `stm32cubeide` from command:
<stm32CubeIde Installation path>/STM32CubeIDE_1.19.0/stm32cubeide \
--launcher.suppressErrors \
-nosplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-data "./" \
-build helloWorldAnother thought is that to use make rules of makefile generated by STM32CubeIDE:
cd <ProjectPath>/Debug
# or
cd <ProjectPath>/Release
make all
Thanks and best regards,
Furkan
