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

nRF9160 Cannot make Kconfig options have an effect in Segger Embedded Studio

I have a nRF9160 DK and I'm adapting the asset tracker to connect to our own AWS cloud solution.

I see the code nrf_cloud uses defines coming from the Kconfig at \nrf\subsys\net\lib\nrf_cloud\Kconfig.
For example: NRF_CLOUD_HOST_NAME, NRF_CLOUD_PORT, NRF_CLOUD_PROVISION_CERTIFICATES, NRF_CLOUD_CERTIFICATES_FILE etc

How do I make changes to the Kconfig have an effect when building in Segger Embedded Studio? No matter what I do, changes to this Kconfig doesn't have an effect to the built result.

Am I missing the point, how it's supposed to work perhaps?
Anyone who can educate me, how to work "correctly" with this, would be appreciated.

I tried to build from commandline, but couldn't make it work, so I'm sticking with Segger Embedded Studio so far.
Build platform: win7

Johan

Parents
  • Hi Johan,

    (I am also adding information on how you can build/flash via command line.)

    • There will come a working tag in the very near future with regard to using that west command you used,

    but for now the correct way to use the v0.4.0-rc2, is to:

    :

    cd ncs/nrf
    git checkout master
    git pull
    west update
    
    git checkout v0.4.0-rc2
    west update

    • When building the application it has to be set as ns = non-secure and the 'spm' will be secure.

    This is described in the documentation here.

    Best Regards,

    Martin L.

  • Martin, I have now done a few steps, and have questions.

    * I verified V4.16 setup is correct.
    * I flashed the merged.hex instead, and it seems to start correctly now.

    The output from the lte_ble_gateway shows problems.
    See log below.
    Where do I enable extensive debug printing? ie Log level debug.

    LOG OUTPUT (putty)
    SPM: NS image at 0x8000
    SPM: NS MSP at 0x2002b060
    SPM: NS reset vector at 0x10c6d
    SPM: prepare to jump to Non-Secure image.
    ***** Booting Zephyr OS v1.14.99-ncs1-rc2 *****
    Application2 started
    Initializing Bluetooth..
    Establishing LTE link (this may take some time) ...
    ASSERTION FAIL [err == 0] @ ../src/main.c:515
    LTE link could not be established.
    ***** Kernel Panic! *****
    Current thread ID = 0x20022620
    Faulting instruction address = 0x2e22a

Reply
  • Martin, I have now done a few steps, and have questions.

    * I verified V4.16 setup is correct.
    * I flashed the merged.hex instead, and it seems to start correctly now.

    The output from the lte_ble_gateway shows problems.
    See log below.
    Where do I enable extensive debug printing? ie Log level debug.

    LOG OUTPUT (putty)
    SPM: NS image at 0x8000
    SPM: NS MSP at 0x2002b060
    SPM: NS reset vector at 0x10c6d
    SPM: prepare to jump to Non-Secure image.
    ***** Booting Zephyr OS v1.14.99-ncs1-rc2 *****
    Application2 started
    Initializing Bluetooth..
    Establishing LTE link (this may take some time) ...
    ASSERTION FAIL [err == 0] @ ../src/main.c:515
    LTE link could not be established.
    ***** Kernel Panic! *****
    Current thread ID = 0x20022620
    Faulting instruction address = 0x2e22a

Children
Related