[SOLVED] multiple project with different configurations in a single solution

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] multiple project with different configurations in a single solution

    Hello,

    It is possible to have a single solution which contains multiple projects, each with its own build configuration?

    I would like to combine an application project with a boot loader project in a single solution. However this means you must be able to all the build parameters for each project independently.

    TIA
  • Hello TIA,

    Thank you for your inquiry.
    Yes this is possible.

    To try it out easiest would be to simply create a new project in a new solution.
    Then create a second project but select "Add the project to the current solution".

    How private and public build configs can inherit from each other is explained here:
    wiki.segger.com/Embedded_Studi…blic_Build_Configurations
    studio.segger.com/ide_project_…s_and_property_values.htm


    Best regards,

    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Just to be clear,

    This is a Nordic solution. Each project in the solution will require its own flash_placement.xml, sdk_config.h, compiler options, build targets (debug and release).... Almost no inheritance.

    Is it a matter of rearranging the XML everything is moved into the "project" tag?

    Thanks
  • Hello,

    Yes that works in the same fashion. The inheritance is just an additional feature that helps to create many configs that are similar quickly.
    But you can of course specify multiple projects in one solution where each has its own unique set of settings.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • I think I have the same problem:

    I have two projects in one solution. Both projects should have their own build configurations. Let's say project1 has build configurations buildconfig1 and buildconfig2 based on commonbuildconfig1, and project2 has build configurations buildconfig3 and buildconfig4 based on commonbuildconfig2.

    How can this be accomplished?
    It seems the build configurations are always on a solution level somehow. For example, if the selected build configuration (in the UI) is buildconfig1, both project1 and project2 will be built with build configuration buildconfig1, although this build configuration is only relevant for project1.

    Best regards,
    bds
  • Hello bds,

    Your issue seems to be different
    See above for links explaining how private/public configs work.

    SEGGER - Nino wrote:

    How private and public build configs can inherit from each other is explained here:
    wiki.segger.com/Embedded_Studi…blic_Build_Configurations
    studio.segger.com/ide_project_…s_and_property_values.htm

    To not get off topic this thread will be closed now.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.