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

nRF9160 DK Connecting problems with nRF Cloud

Hello, I tried to set up my nRF9160 with this tutorial and there is a problem:

https://www.youtube.com/watch?v=jZQcmU3KIMY&t=216s

According to the tutorial, LED 3 and the LED 4 should be blinking after 3 minutes, what means that the board is connected to the nRF Cloud.
However on my nRF9160, the LED 4  never starts blinking, even if I wait 10 minutes longer than required.
I tried to push the reset button a few times, I turned the nRF9160 on and off a few times and I also started the "Add LTE Device" on nRF Cloud a few times.

But LED 4 still remains dark.

There were 2 things different compared to the tutorial video:


1) The Sim Card Registration worked fine, but when I came to the window in the picture below, I had an IMEI, but I found no PIN. So, I tried the option without a pin (Red mark in the picture).

Maybe I need a PIN, but where do I get it? I tried to insert every possible number I found on my nRF9160, but none of them worked. 

I have already installed the latest firmware update for the nRF9160 successfully. So what did I do wrong? Or how can I finally connect the nRF9160 to the nRF Cloud?

- Thanks for your answers

- Bergmann

  • Am I doing this right?: 

    I open the prj.conf file in the editor, add the lines to the bottom of the file and save it.

    Then I try to load the asset tracker in the Segger Embedded Studio, there is an error message:

    Loading solution asset_tracker.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Maturaprojekt/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns -HC:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/SES/arm_segger_embedded_studio_v418_win_x86_nordic/html/configure_nordic_project_menuconfig.py
    -- Using application from 'C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker'
    Zephyr version: 1.14.99
    -- Selected BOARD nrf9160_pca10090
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.0", minimum required is "0.5.6")
    -- Cache files will be written to: C:\Users\Benjamin Bergmann\AppData\Local/.cache/zephyr
    USING OUT OF TREE BOARD
    -- Loading C:/Maturaprojekt/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying C:/Maturaprojekt_Oktober/ncs/zephyr/dts/common/common.dts
    
    C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/prj.conf:61: warning: malformed string literal in assignment to NRF_CLOUD_STATIC_IPV4_ADDR (defined at ..\nrf\subsys\net\lib\nrf_cloud\Kconfig:17). Assignment ignored.
    Parsing Kconfig tree in C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/Kconfig
    Loading C:/Maturaprojekt/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig as base
    Merging C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/prj.conf
    
    C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/prj.conf:64: warning: attempt to assign the value 'y' to the undefined symbol LTE_NETWORK_MODE_NBIOT_GPS
    
    C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/prj.conf:65: warning: attempt to assign the value 'n' to the undefined symbol LTE_NETWORK_MODE_LTE_M_GPS
    
    warning: BSD_LIBRARY (defined at ..\nrf\lib\bsdlib\Kconfig:8) has direct dependencies TRUSTED_EXECUTION_NONSECURE with value n, but is currently being y-selected by the following symbols:
    - MODEM_INFO (defined at ..\nrf\lib\modem_info\Kconfig:7), with value y, direct dependencies "y" (value: y)
    
    Error: Aborting due to non-whitelisted Kconfig warning
    'C:/Maturaprojekt_Oktober/ncs/nrf/applications/asset_tracker/prj.conf:61: warning: malformed string
    literal in assignment to NRF_CLOUD_STATIC_IPV4_ADDR (defined at
    ..\nrf\subsys\net\lib\nrf_cloud\Kconfig:17). Assignment ignored.'. Note: If this warning doesn't
    point to an actual problem, you can add it to the whitelist at the top of
    C:/Maturaprojekt_Oktober/ncs/zephyr/scripts/kconfig/kconfig.py.
    
    CMake Error at C:/Maturaprojekt_Oktober/ncs/zephyr/cmake/kconfig.cmake:200 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Maturaprojekt_Oktober/ncs/zephyr/cmake/app/boilerplate.cmake:529 (include)
    CMakeLists.txt:11 (include)
    
    
    -- Configuring incomplete, errors occurred!
    Project load failed
    Reported error: solution load command failed (1)

    If I load the asset_tracker without changing the prj.conf file, it loads and runs without errors. Do I have to change something else too? 

    Thanks for your answers!

  • The configurations I gave you are only defined on the master branch of ncs, not the v1.0.0 tag. Make sure you're on the master branch when building. 

  • So do I have to setup the SDK again, but this time with 

    git checkout master

    command instead of 

    git checkout v1.0.0

    ? Or does I have to change the 

    west init -m github.com/.../fw-nrfconnect-nrf

    command?

    Or how do I get to the master branch?

    Thanks for your answers! 

  • To get to the master branch just run 

    git checkout master
    west update
  • OK, adding the 4 lines 

    CONFIG_LTE_LEGACY_PCO_MODE=y
    CONFIG_NRF_CLOUD_STATIC_IPV4=y
    CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y
    CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=n

    to the prj.conf file worked and I could flash the nrf with it for a test.

    When I add the line 

    CONFIG_NRF_CLOUD_STATIC_IPV4_ADDR=52.87.36.155

    to the other lines in the prj.conf then I get this error message:

    Loading solution asset_tracker.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090ns -DBOARD_DIR=C:/Maturaprojekt_Master/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns -HC:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/SES/arm_segger_embedded_studio_v418_win_x86_nordic/html/configure_nordic_project_menuconfig.py
    -- Using application from 'C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker'
    Zephyr version: 2.0.99
    -- Selected BOARD nrf9160_pca10090ns
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.2", minimum required is "0.6.0")
    -- Cache files will be written to: C:\Users\Benjamin Bergmann\AppData\Local/.cache/zephyr
    USING OUT OF TREE BOARD
    -- Loading C:/Maturaprojekt_Master/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
    -- Overlaying C:/Maturaprojekt_Master/ncs/zephyr/dts/common/common.dts
    Device tree configuration written to C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns/zephyr/include/generated/generated_dts_board.conf
    
    C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker/prj.conf:90: warning: malformed string literal in assignment to NRF_CLOUD_STATIC_IPV4_ADDR (defined at C:/Maturaprojekt_Master/ncs/nrf\subsys\net\lib\nrf_cloud/Kconfig:17). Assignment ignored.
    Parsing Kconfig tree in C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker/Kconfig
    C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker\src/ui/Kconfig:27: WARNING: dt_str_val is deprecated.
    C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker\src/ui/Kconfig:31: WARNING: dt_int_val is deprecated.
    Loaded configuration 'C:/Maturaprojekt_Master/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig'
    Merged configuration 'C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker/prj.conf'
    
    Error: Aborting due to non-whitelisted Kconfig warning
    'C:/Maturaprojekt_Master/ncs/nrf/applications/asset_tracker/prj.conf:90: warning: malformed string
    literal in assignment to NRF_CLOUD_STATIC_IPV4_ADDR (defined at
    C:/Maturaprojekt_Master/ncs/nrf\subsys\net\lib\nrf_cloud/Kconfig:17). Assignment ignored.'. Note: If
    this warning doesn't point to an actual problem, you can add it to the whitelist at the top of
    C:/Maturaprojekt_Master/ncs/zephyr/scripts/kconfig/kconfig.py.
    
    CMake Error at C:/Maturaprojekt_Master/ncs/zephyr/cmake/kconfig.cmake:223 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Maturaprojekt_Master/ncs/zephyr/cmake/app/boilerplate.cmake:560 (include)
    CMakeLists.txt:11 (include)
    
    
    -- Configuring incomplete, errors occurred!
    Project load failed
    Reported error: solution load command failed (1)
     

    Is it right, that I use the first IP here?:

    Or do I have to use some of the other listed IPs?

Related