Skip to main content
PSand.1052
Visitor II
November 12, 2019
Question

How do I build STM32CubeIDE project(s) using the command line and a continuous integration engine?

  • November 12, 2019
  • 2 replies
  • 3259 views

I have to build some projects that were developed in STM32CubeIDE using a continuous integration engine. This involves checking out the Git repo containing a project, then issuing commands to generate the Makefiles and make the relevant targets. This is a C++ project using the Gnu Make builder, and the build host is headless.

The help center offers no insight into this, an Internet search was not helpful, and I could not find a mention of continuous integration in the ST communities.

What command(s) should I issue to generate the project's Makefiles?

Many thanks in advance,

Paul

This topic has been closed for replies.

2 replies

Tom V
Associate
November 12, 2019

My build server runs a command like:

/opt/st/stm32cubeide_1.1.0/stm32cubeide --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data workspace -import demo -cleanBuild demo/DebugBuild

GreenGuy
Senior III
April 20, 2020

I am running 1.3.0 in linux LMint version 19.3 and the answer given does not work. Perhaps somethings have changed since the IDE version 1.1.0.

Tom V can you point to where you obtained the information that lead to the command line you use?

Pavel A.
Super User
April 21, 2020

Check headless.sh in the same directory with CubeIDE executable

-- pa