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

Segger Embedded Studio for RF9160 DK - solution load command failed (1)

Hi,

I've used the 'Getting Started with nRF9160 DK' tutorial to setup a development environment, I have a problems with loading asset_tracker project. My output:

Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca10090ns -DBOARD_DIR=C:/My_Designs/nRF Connect SDK/V1_1_0/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/My_Designs/nRF Connect SDK/V1_1_0/ncs/nrf/applications/asset_tracker/build_nrf9160_pca10090ns -HC:/My_Designs/nRF Connect SDK/V1_1_0/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/arm_segger_embedded_studio_v430c_win_x64_nordic/html/configure_nordic_project_menuconfig.py
Failed to create ConsoleBuf!
setActiveInputCodepage failed!
Failed to create ConsoleBuf!
setActiveInputCodepage failed!
-- Using application from 'C:/My_Designs/nRF Connect SDK/V1_1_0/ncs/nrf/applications/asset_tracker'
Zephyr version: 2.0.99
-- Selected BOARD nrf9160_pca10090ns
-- Found west: C:/Python38/Scripts/west.exe (found suitable version "0.6.3", minimum required is "0.6.0")
-- Cache files will be written to: C:\Users\bertiew\AppData\Local/.cache/zephyr
USING OUT OF TREE BOARD
CMake Error at C:/My_Designs/nRF Connect SDK/V1_1_0/ncs/zephyr/cmake/kconfig.cmake:168 (message):
File not found: C:/My_Designs/nRF/nrf9160_pca10090ns_defconfig
Call Stack (most recent call first):
C:/My_Designs/nRF Connect SDK/V1_1_0/ncs/zephyr/cmake/app/boilerplate.cmake:567 (include)
CMakeLists.txt:11 (include)

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

BTW, During the installation, I verified every steps and working fine except Clone nRF Connect SDK with ERROR "update failed for project civetweb". But was fixed by downgrade git 2.24 to 2.23 and doing all again.

Thanks,

Bertie

  • Hi Bertie,
    I want you to check some different things for me.

    Did you do a "west update" after checking out tag v1.1.0?

    e.g.

    cd ncs/nrf
    git checkout master
    git pull
    git checkout v1.1.0
    west update

    • Make sure that the requirements are successfully installed:
    cd <sourcecode_root>\ncs
    pip3 install -r zephyr\scripts\requirements.txt
    pip3 install -r nrf\scripts\requirements.txt
    pip3 install -r mcuboot\scripts\requirements.txt
    •  Please check the 'nrfjprog' version in the command line:
    "nrfjprog -v"
     
     
    • Make sure these paths are correct:

     
    • Try to delete the build folder for asset_tracker and re-open the SES project.
    • Then double-check the correct paths when opening the project:

    Best regards,

    Martin L.

  • Hi Martin,

    Thanks for your reply, 

    I did "west update" as :

    C:\My_Designs\nRF Connect SDK\V1_1_0\ncs>west init -m github.com/.../fw-nrfconnect-nrf --mr v1.1.0

    C:\My_Designs\nRF Connect SDK\V1_1_0\ncs>west update

    The three requirements were successfully installed, but notice "pip3 install -r nrf\scripts\requirements.txt" have two package ignored:

    Ignoring pygit2: markers 'python_version < "3.8"' don't match your environment
    Ignoring editdistance: markers 'python_version < "3.8"' don't match your environment

    is it a problem?

    The 'nrfjprog' version:

    SES paths:

    When open project, the path:

    Please help and see what is wrong. Thank you.

  • Hi Bertiew,


    It looks like there may be two issues in your setup.

    1).

    You are using a too old version of 'nrfjprog'.
    Please download the latest one 



    2).
    It looks like you are using a version of Python that may not be supported in the toolchain yet. 
    From the "Getting Started Assistant" you install Python 3.7.1 with the command 'choco install python', but you may already have python v3.8.1 installed?

    So let's check which version of python you have in the command line: 'python --version'

    You can also check if you have several versions installed on your computer by: 'where python'

    So if you have something else than "Python37" at the top path please change this in your "Environment Variables". (System properties --> Environment Variables):


    After you have done that, please try to install the required Python modules:

    cd <sourcecode_root>\ncs
    pip3 install -r zephyr\scripts\requirements.txt
    pip3 install -r nrf\scripts\requirements.txt
    pip3 install -r mcuboot\scripts\requirements.txt


    Please let me know how it goes.

    Best regards,

    Martin L.

  • Hi Martin,

    I updated 'nrfjprog' and down graded python to V3.7.1 by "choco install python --version=3.7.1 --allow-downgrade"

    Environment Variables "Python37" at the top path :

    When did "pip3 install -r zephyr\scripts\requirements.txt", there were a few similar warnings:

    "west 0.6.3 has requirement setuptools>=v40.1.0, but you'll have setuptools 39.0.
    1 which is incompatible."

    "The script pygmentize.exe is installed in 'c:\python37\Scripts' which is not on PATH.
    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location."

    When did "nrf\scripts\requirements.txt" "mcuboot\scripts\requirements.txt",  similar warnings

    After that, still got same error when tried Open nRF Connect SDK Project.

    So what I did was to Clone nRF Connect SDK to a new folder, and did following again:

        C:\Windows\system32>pip3 install west

        C:\Windows\system32>python -m pip install --upgrade pip

        C:\My_Designs\nRF Connect SDK\V_110\ncs>west init -m github.com/.../fw-nrfconnect-nrf --mr v1.1.0

        C:\My_Designs\nRF Connect SDK\V_110\ncs>west update

        C:\My_Designs\nRF Connect SDK\V_110\ncs>pip3 install -r zephyr\scripts\requirements.txt

        C:\My_Designs\nRF Connect SDK\V_110\ncs>pip3 install -r nrf\scripts\requirements.txt

        C:\My_Designs\nRF Connect SDK\V_110\ncs>pip3 install -r mcuboot\scripts\requirements.txt

    NOT any warning at all this time, still got same error when tried Open Project in new SDK folder nRF Connect SDK\V_110\ncs\nrf\applications\asset_tracker

    Thanks,

    Bertie

  • Hi Bertie,
    The issue may be that it is a too long path or that there is a space between "nRF Connect":

    Could you try to change: "C:/My_Designs/nRF Connect SDK/V1_1_0/ncs/zephyr/boards/arm/nrf9160_pca10090"

    to" C:/My_Designs/ncs/zephyr/boards/arm/nrf9160_pca10090"

    so remove: /nRF Connect SDK/V1_1_0/ from path.

Related