Skip to main content
slu.7
Associate II
December 3, 2020
Solved

How to make all projects in a solution built one after one automatically ? how to configurate the STM32cubeIDE?

  • December 3, 2020
  • 3 replies
  • 1356 views

we set up three projects for one solution . these projects share the same driver and third-party code. what we want to ​do is that ,when we build one project ,the other projects would be built one after one automatically after the first one . how to configurate the STM32cubeIDE? or any script ?

This topic has been closed for replies.
Best answer by mattias norlander

What Pavel suggests can work. It will build the active build configuration for all projects that are currently "open" in the workspace.

Another approach if you have more than the three projects in the workspace. But want to make sure that ONLY these three projects are built in a well-defined order is to setup dependencies between the projects.

Select the project which is built last in your chain. Properties > C/C++ General > Paths and Symbols > References.

Here you can select which project and which build configuration depend on and use "Move Up/Down" to select order.

That said, Pavels solution may be simpler assuming your workspace contains only those three projects or any other projects are "closed".

3 replies

Pavel A.
December 3, 2020

Window -> Preferences -> General -> Workspace -> Build order

mattias norlander
ST Employee
December 3, 2020

What Pavel suggests can work. It will build the active build configuration for all projects that are currently "open" in the workspace.

Another approach if you have more than the three projects in the workspace. But want to make sure that ONLY these three projects are built in a well-defined order is to setup dependencies between the projects.

Select the project which is built last in your chain. Properties > C/C++ General > Paths and Symbols > References.

Here you can select which project and which build configuration depend on and use "Move Up/Down" to select order.

That said, Pavels solution may be simpler assuming your workspace contains only those three projects or any other projects are "closed".

slu.7
slu.7Author
Associate II
December 8, 2020

thanks for your help