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

Changes to prj.conf not propogating to autoconf.h

I'm trying to modify the lwm2m_client sample with my network APN and Operator details so am adding the following to prj.conf

CONFIG_LTE_PDP_CMD=y
CONFIG_LTE_PDP_CONTEXT="1,\"IP\",\"ep.inetd.gdsp\""
CONFIG_LTE_LOCK_PLMN=y
CONFIG_LTE_LOCK_PLMN_STRING="27201"

Making these changes and doing a "Build Solution" does not import these changes.

The only way I can get these values to be taken is to do "Open nRF Connect SDK project" and Select "Clean Build Directory"

Is there another way, or am I missing a step?

I have tried "Configure nRF SDK project" but there is a bug there which doesn't allow writing of PDP Context string - JSON error

Thanks!

Parents
  • 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.

    I don't have a complete overview of this, and don't know if there is a way to incorporate the changes in prj.conf files into your project without using File→Open nRF Connect SDK Project..

    A workaround regarding the problem with "Configure nRF SDK project", is to modify the .config file directly. It is located inside <your_project>\<build_folder>\zephyr\.config. It will have the same effect, since this is the file that is modified when changing configurations in "Configure nRF SDK project".

    Best regards,

    Simon

  • Thanks Simon.

    As mentioned above, there is a bug in Project→Configure nRF Connect SDK Project.. when it comes to setting the PDP context. It's probably related to the escape characters, although I am not sure. It's a JSON parse issue.

Reply Children
No Data
Related