Skip to main content
Jjesu.1
Associate
December 11, 2020
Question

How to create an STM32CubeIDE project programatically from command line ? I know it is possible to use stm32cubeide executable to perform a headless build of an existing project, but I would like to also create a project programatically from command

  • December 11, 2020
  • 2 replies
  • 1065 views

..

This topic has been closed for replies.

2 replies

Cartu38 OpenDev
Graduate II
December 11, 2020

Not documented. So not supported I guess.

Jjesu.1
Jjesu.1Author
Associate
December 11, 2020

That is my reasoning too, I wouldn't go this route if undocumented, hence not supported even if there would be a hacky way to do it.

Cartu38 OpenDev
Graduate II
December 11, 2020

I'm not aware if STM32CubeIDE. Maybe you can rely on STM32CubeMX generating data setting STM32CubeIDE as outputs target.

Headless project creation is documented if STM32CubeMX. See user guide: https://www.st.com/resource/en/user_manual/dm00104712-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf

0693W000006FS24QAG.jpg

Ozone
Principal
December 11, 2020

> How to create an STM32CubeIDE project programatically from command line ?

I suppose you did not mean what you said.

Instead, you want to build a Cube project from command line.

I don't use CubeIDE myself (for good reasons), but most Eclipse-based IDEs offer an option to create make-file based projects. Such a make file is intended to be executed from command line.

Even builds of common projects are usually realized as nested make-files. I never tried a make from outside the IDE, though.

Alternatively, you could get a proper toolchain.