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

nRF9160 Asset Tracker: 'Project load failed'

On my macOS Mojave, I have followed the 'Getting Started Assistant' in setting up the development environment for the nRF9160 but I am unable to load the asset tracker project. I'm on the master branch for the various repo folders for the nRF Connect SDK.

I loaded the project using SEGGEER Embed Studio 4.16 and have tried both the secure and non-secure board configurations before loading the project but I still met with the same issue. I have provided the output logs.

Loading solution asset_tracker.emProject Executing load commands /usr/local/bin/cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/wilfred/nrf-connect-sample/ncs_master/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/Users/wilfred/gnuarmemb -B/Users/wilfred/nrf-connect-sample/ncs_master/nrf/applications/asset_tracker/build_nrf9160_pca10090 -H/Users/wilfred/nrf-connect-sample/ncs_master/nrf/applications/asset_tracker -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -D WEST=/Users/wilfred/Library/Python/3.7/bin/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Users/wilfred/arm_segger_embedded_studio_v416_macos_x64_nordic/html/configure_nordic_project_menuconfig.py -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7.3", minimum required is "3.4") -- Selected BOARD nrf9160_pca10090 Zephyr version: 1.13.99 Parsing Kconfig tree in /Users/wilfred/nrf-connect-sample/ncs_master/nrf/applications/asset_tracker/Kconfig -- Configuring incomplete, errors occurred! Traceback (most recent call last): File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfig.py", line 200, in main() File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfig.py", line 32, in main kconf = Kconfig(args.kconfig_root, warn_to_stderr=False) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 960, in __init__ self._parse_block(None, self.top_node, self.top_node) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2582, in _parse_block self._parse_block(_T_ENDMENU, node, node) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2542, in _parse_block prev = self._parse_block(None, parent, prev) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2542, in _parse_block prev = self._parse_block(None, parent, prev) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2562, in _parse_block self._parse_block(_T_ENDIF, node, node) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2562, in _parse_block self._parse_block(_T_ENDIF, node, node) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2487, in _parse_block self._parse_properties(node) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2695, in _parse_properties while self._next_line(): File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 1825, in _next_line self._tokens = self._tokenize(self._line) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 1963, in _tokenize name, s, i = self._expand_name(s, i) File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 2240, in _expand_name self._parse_error("macro expanded to blank string") File "/Users/wilfred/nrf-connect-sample/ncs/zephyr/scripts/kconfig/kconfiglib.py", line 3437, in _parse_error self._line.strip(), msg)) kconfiglib.KconfigError: /Users/wilfred/nrf-connect-sample/ncs_master/zephyr/boards/arm/nrf9160_pca10090/Kconfig.defconfig:53: couldn't parse 'default $(dt_hex_val,DT_CODE_PARTITION_SIZE)': macro expanded to blank string CMake Error at /Users/wilfred/nrf-connect-sample/ncs/zephyr/cmake/kconfig.cmake:159 (message): command failed with return code: 1 Call Stack (most recent call first): /Users/wilfred/nrf-connect-sample/ncs/zephyr/cmake/app/boilerplate.cmake:259 (include) CMakeLists.txt:11 (include) Project load failed Reported error: solution load command failed (1)
  • Could you retry it using tag v0.4.0. The master branch is constantly under development and is considered unreliable.

    Best regards,

    Simon

  • Thanks for the reply Simon.

    I've tried tag v0.4.0 but the issue still persists.

    (Edit)

    I got the project to load. It was due to the 'ncs' folder pointing to the v0.3.0 version as I have multiple ncs folders. Switching the folders solved the issue.

    However, this brings me to another problem. I can't build the project due to a compilation error as shown.

    In file included from /Users/wilfred/nrf-connect-sample/ncs/zephyr/include/toolchain.h:21:0,
    1>                  from zephyr/misc/generated/configs.c:7:
    1> /Users/wilfred/nrf-connect-sample/ncs/zephyr/include/toolchain/gcc.h:325:51: error: expected expression before ')' token
    1> zephyr/misc/generated/configs.c:22:1: note: in expansion of macro 'GEN_ABSOLUTE_SYM'
    1> /Users/wilfred/nrf-connect-sample/ncs/zephyr/include/toolchain/gcc.h:325:51: error: expected expression before ')' token
    1> zephyr/misc/generated/configs.c:29:1: note: in expansion of macro 'GEN_ABSOLUTE_SYM'
    3> Compiling ?soc.c?
    Build failed

    (Edit 2)

    I could build the project using the board name with 'ns' (which I'm assuming it stands for 'Non-Secure') appended, but not for the board name without 'ns'. But being able to debug using the 'ns' board is good enough Slight smile

Related