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

Problems getting the SDK up and running

I just got my nRF9160 DK. Unfortunately the out of the box demo didn't work: 

LTE LC config ...
[00:00:01.029,876] [1;31m<err> net_if.net_if_init: There is no network interface to work with!

However I saw on the forums that this was a known issue in The Netherlands since 2 months ago... iBasis didn't fix this yet?

So my next step was to try to build and flash the firmware. I also ran in to trouble here.
I followed this guide to install the SDK: http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_ins_linux.html#installing-the-required-tools

I checkout out the master branch. Ran `west update`. Then i tried to open a project in Segger Embedded Studio(SES). This is where it fails.

Segger gives me the following error message:

Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/ingmar/dev/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=~/dev/compilers/gcc-arm-none-eabi-8-2018-q4-major -B/Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/build -H/Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker
Zephyr version: 1.14.0
-- Found PythonInterp: /Users/ingmar/.local/share/virtualenvs/nRF9160-wppBJUNg/bin/python (found suitable version "3.7.2", minimum required is "3.4") 
-- Selected BOARD nrf9160_pca10090
-- Loading /Users/ingmar/dev/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
-- Overlaying /Users/ingmar/dev/nRF9160/ncs/zephyr/dts/common/common.dts
Parsing Kconfig tree in /Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/Kconfig
Loading /Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/build/zephyr/.config as base

warning: the value '' is invalid for FLIP_INPUT (defined at /Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/Kconfig:116), which has type int -- assignment ignored

warning: the value '' is invalid for TEMP_SIM_BUTTON (defined at /Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/Kconfig:265), which has type int -- assignment ignored

Error: Aborting due to non-whitelisted Kconfig warning 'warning: the value '' is invalid for
FLIP_INPUT (defined at /Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/Kconfig:116),
which has type int -- assignment ignored'. Note: If this warning doesn't point to an actual problem,
you can add it to the whitelist at the top of
/Users/ingmar/dev/nRF9160/ncs/zephyr/scripts/kconfig/kconfig.py.

-- Configuring incomplete, errors occurred!
See also "/Users/ingmar/dev/nRF9160/ncs/nrf/applications/asset_tracker/build/CMakeFiles/CMakeOutput.log".
CMake Error at /Users/ingmar/dev/nRF9160/ncs/zephyr/cmake/kconfig.cmake:169 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /Users/ingmar/dev/nRF9160/ncs/zephyr/cmake/app/boilerplate.cmake:402 (include)
  CMakeLists.txt:9 (include)


Project load failed
Reported error: solution load command failed (1)

Looks like some configuration mismatch between repositories? So I tried reverting to the latest tag: v0.3.0. However then there is no `west` available. Checking out all repositories manually for that tag. Zephyr doesn't have that same tag.. and I couldn't find versions that work together.

So now I am stuck. Which versions are supposed to work together? Is it even supposed to work? 


I am on macOS 10.14.3

Parents
  • Could you please download nrf connect for desktop & run the nRF Getting Started Guide like described here (Section Getting started with development). In the documentation you provided, there is this note:

    "The latest state of development is on the master branch of the fw-nrfconnect-nrf repository. To ensure a usable state, the fw-nrfconnect-nrf repository defines the compatible states of the other repositories. However, this state is not necessarily tested. For a higher degree of quality assurance, check out a tagged release."

    The nRF Getting Started Guide installs the v0.3.0 tag of Nordic Connect SDK. Then, you should be able to build via Segger Embedded Studio.

  • Thank you, I managed to import and compile the project with the following tags:

    nrf: v0.3.0

    nrfxlib: v0.3.0

    zephyr: v1.13.99-ncs2

    When I run the asset tracket demo I do not get the error anymore, but the board also does not seem to connect to a network. With the AT firmware the LTE icon just keeps blinking yellow-red(connecting). However the device does find two networks:

    - KPN NL

    - Vodafone/Libertel

    I assume the iBasis SIM is supposed to roam on one of those? Is there anything I can do to force a connection? Otherwise I will just check back later when a new release is available. 

Reply
  • Thank you, I managed to import and compile the project with the following tags:

    nrf: v0.3.0

    nrfxlib: v0.3.0

    zephyr: v1.13.99-ncs2

    When I run the asset tracket demo I do not get the error anymore, but the board also does not seem to connect to a network. With the AT firmware the LTE icon just keeps blinking yellow-red(connecting). However the device does find two networks:

    - KPN NL

    - Vodafone/Libertel

    I assume the iBasis SIM is supposed to roam on one of those? Is there anything I can do to force a connection? Otherwise I will just check back later when a new release is available. 

Children
  • Yes, the iBasis SIM should connect to one of those two base stations in theory. With the at_client hex file programmed to the board (just program the example via SES, SES will automatically do a sectorerase of the flash), you should be able to connect. You could try watching this video, resetting the board via the RESET button and/or pressing the AT+CFUN? button to speed things up. Also, it may be necessary to press Ctrl + R to refresh the link monitor application if you reset the board.

Related