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

NRF9160 : SES Processing of proj.conf

I have successfully setup the build environment for SES using the NRF Connect Getting Started Guide.      I verified operation of my board with the at_client and mqtt_simple projects.

In the samples folders a proj.conf files.    This look like the magically turn into C header files somewhere.   It appears that a running cmake from the command line will trigger a build that will process changes in the proj.conf file. 

It does not appear that a SES project processes changes to the proj.conf.     What is the appropriate workflow?    Should I be following instructions in the official Zephyr documentation?  Or Should I be looking in the NRF Connect SDK documentation?

  • It does not appear that a SES project processes changes to the proj.conf.     What is the appropriate workflow?    Should I be following instructions in the official Zephyr documentation?  Or Should I be looking in the NRF Connect SDK documentation?

    The build process is split into two stages, the configuration stage and the build stage. During the configuration stage, all the CMakeLists.txt files runs, and generates a build system where configurations from e.g. prj.conf and different configuration files are merged into .config. Read more about in the Zephyr Documentation.

    When you open a new project through File→Open nRF Connect SDK Project.. this first stage will be executed, and when you try to rebuild it through Build Solution, it will use the already generated Build System and the configurations from .config.

    In order to implement the changes from the prj.conf into your application, you have to open your project again (through File→Open nRF Connect SDK Project..).

    Best regards,

    Simon

Related