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

Unable to load Asset Tracker as nRF Connect SDK Project in Segger Embedded Studio

Hi!

I have recently setup the development environment for my Thingy 91 on Windows 10 environment using nRF Connect Getting Started Assistant. But I am having some trouble importing this application in the Segger Embedded Studio as a nRF Connect SDK project. The output from the execution of loading commands is shown below:

Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca20035ns -DBOARD_DIR=C:/Users/Haris/OneDrive - TalTech/Autumn 2019/Master's Thesis/Nordic Semi/nrf9160dk/ncs/nrf/boards/arm/nrf9160_pca20035 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Tools ARM Embedded/8 2019-q3-update -BC:/Users/Haris/OneDrive - TalTech/Autumn 2019/Master's Thesis/Nordic Semi/nrf9160dk/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns -HC:/Users/Haris/OneDrive - TalTech/Autumn 2019/Master's Thesis/Nordic Semi/nrf9160dk/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Program Files/arm_segger_embedded_studio_v430c_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Zephyr version: 2.1.99
-- Selected BOARD nrf9160_pca20035ns
-- Found west: C:/Python38/Scripts/west.exe (found suitable version "0.6.3", minimum required is "0.6.0")
CMake Error at C:/Users/Haris/OneDrive - TalTech/Autumn 2019/Master's Thesis/Nordic Semi/nrf9160dk/ncs/zephyr/cmake/kconfig.cmake:160 (message):
  File not found: C:/Users/Haris/OneDrive/nrf9160_pca20035ns_defconfig
Call Stack (most recent call first):
  C:/Users/Haris/OneDrive - TalTech/Autumn 2019/Master's Thesis/Nordic Semi/nrf9160dk/ncs/zephyr/cmake/app/boilerplate.cmake:461 (include)
  CMakeLists.txt:12 (include)


-- Configuring incomplete, errors occurred!
Project load failed
Reported error: solution load command failed (1)

Can someone help me with this issue?

Thanks.

Regards,

Haris Ahmed

  • Hi.

    Can you send me a picture of the "Open nRF Connect SDK Project..." window, showing the paths you have entered?

    Other than that, I can see two other potential problems:

    1. There are spaces in your path. Not all tools are able to handle that.

    2. Your path is long. Windows has a limit on the length of the file path, which can cause "file not found" errors. Try to move the ncs folder closer to the file system root ("C:").

    Best regards,

    Didrik

  • Thank you for your response.

    Following your feedback I moved ncs folder to C: and then tried to import the project with the following parameters:

    Now I am getting following errors:

    Loading solution asset_tracker.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca20035 -DBOARD_DIR=C:/ncs/nrf/boards/arm/nrf9160_pca20035 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/Program Files (x86)/GNU Tools ARM Embedded/8 2019-q3-update -BC:/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns -HC:/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Program Files/arm_segger_embedded_studio_v430c_win_x64_nordic/html/configure_nordic_project_menuconfig.py
    -- Zephyr version: 2.1.99
    -- Selected BOARD nrf9160_pca20035
    -- Found west: C:/Python38/Scripts/west.exe (found suitable version "0.6.3", minimum required is "0.6.0")
    -- Loading C:/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035.dts as base
    Devicetree configuration written to C:/ncs/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/zephyr/include/generated/devicetree.conf
    
    warning: BSD_LIBRARY (defined at C:/ncs/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 C:/ncs/nrf\lib\modem_info/Kconfig:7), with value y, direct dependencies y (value: y)
    Parsing C:/ncs/nrf/applications/asset_tracker/Kconfig
    C:/ncs/nrf\lib\fprotect/Kconfig:20: WARNING: dt_int_val is deprecated.
    C:/ncs/bootloader/mcuboot/zephyr/Kconfig:37: WARNING: dt_int_val is deprecated.
    
    error: Aborting due to Kconfig warnings
    
    Loaded configuration 'C:/ncs/nrf/boards/arm/nrf9160_pca20035/nrf9160_pca20035_defconfig'
    Merged configuration 'C:/ncs/nrf/applications/asset_tracker/prj.conf'
    CMake Error at C:/ncs/zephyr/cmake/kconfig.cmake:216 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/zephyr/cmake/app/boilerplate.cmake:461 (include)
      CMakeLists.txt:12 (include)
    
    
    -- Configuring incomplete, errors occurred!
    Project load failed
    Reported error: solution load command failed (1)
    
    Can you tell what is the issue now?

    Thanks.

  • It does not look like the log and the picture matches.

    In the picture, you select the board nrf9160_pca20035ns, while the log uses nrf9160_pca20035 (not "ns").

    Were the picture and the log taken at the same attempt?

    Could you try to import the project again, making sure that you use the non-secure version of the board (nrf9160_pca20035ns)?

  • You are correct. There was a mismatch between the log and the picture. After selecting the (nrf9160_pca20035ns), I am able to load the project successfully.

    Thank you very much for your help.

    Regards,

    Haris Ahmed

Related