2020-12-02 05:17 PM
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 ?
Solved! Go to Solution.
2020-12-03 05:56 AM
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".
2020-12-02 06:21 PM
Window -> Preferences -> General -> Workspace -> Build order
2020-12-03 05:56 AM
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".
2020-12-07 10:07 PM
thanks for your help