This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Recommended way to share project config when using GUI in emStudio for configuration.

When using emStudio and configuring a project via the GUI menu (Project -> Configure nRF Connect SDK Project), the resulting config is generated in <build_folder>/zephyr/.config.   In a team environment using git for source control, the build folder is not a tracked folder as per best practices.  What is the recommended process for sharing the project configuration?   We have tried saving the file as prj.conf at the application level with some success but with the release of NCS 1.2.0, have found this causes the project to not be loaded properly.

Parents
  • Hi David,

    The reason you get an error when opening the project with some new settings in the prj.conf file is most likely caused by having different settings in the .config file in the build folder.

    If you delete the build folder before opening up the project, you should not get this error and it will also include the new configurations in the prj.conf file.

    note: You can check the box "Clean Build Directory" to make sure you have a clean build folder when you open a new project.


    The following figure is described in the NCS tutorial:

    I would recommend you to only use the "Configure nRF Connect SDK Project" feature to see which configurations you are able to set and then set those configurations in the prj.conf file so they will permanently change (and easily shared). 

    The way that SES is changing .config instead directly in the prj.conf is a limitation that causes this issue. 
    I will discuss this further internally so we hopefully can change that functionality.

    Best regards,
    Martin L.

  • Thank you for your clear explanation, Martin.  I understand the limitations of the GUI better now and appreciate you looking into possibly improving it. 

Reply Children
Related