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 - solution load command failed (1)

Hi,

I've used the nRF connect 'Getting Started' software and tutorial to setup a development environment, however i am having problems with the "Set up a project in SEGGER Embedded Studio" stage.

When doing "Open nRF Connect SDK Project." i get an error saying the asset_tracker.emProject failed to load,..

Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=D:/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BD:/nrf9160/ncs/nrf/samples/nrf9160/asset_tracker/build -HD:/nrf9160/ncs/nrf/samples/nrf9160/asset_tracker
-- Selected BOARD nrf9160_pca10090
Zephyr version: 1.13.99
Parsing Kconfig tree in D:/nrf9160/ncs/nrf/samples/nrf9160/asset_tracker/Kconfig
Loading D:/nrf9160/ncs/nrf/samples/nrf9160/asset_tracker/build/zephyr/.config as base
-- Loading D:/nrf9160/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
-- Overlaying D:/nrf9160/ncs/zephyr/dts/common/common.dts
nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/adc@0x4000e000: unit name should not have leading "0x"
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40008000: duplicate unit-address (also used in node /soc/i2c@40008000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40009000: duplicate unit-address (also used in node /soc/i2c@40009000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000a000: duplicate unit-address (also used in node /soc/i2c@4000a000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000b000: duplicate unit-address (also used in node /soc/i2c@4000b000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40008000: duplicate unit-address (also used in node /soc/spi@40008000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@40008000: duplicate unit-address (also used in node /soc/spi@40008000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40009000: duplicate unit-address (also used in node /soc/spi@40009000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@40009000: duplicate unit-address (also used in node /soc/spi@40009000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000a000: duplicate unit-address (also used in node /soc/spi@4000a000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@4000a000: duplicate unit-address (also used in node /soc/spi@4000a000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000b000: duplicate unit-address (also used in node /soc/spi@4000b000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@4000b000: duplicate unit-address (also used in node /soc/spi@4000b000)
nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/clock@40005000: duplicate unit-address (also used in node /soc/power@40005000)
Traceback (most recent call last):
File "D:/nrf9160/ncs/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
CMake Error at D:/nrf9160/ncs/zephyr/cmake/dts.cmake:193 (message):
command failed with return code: 1
Call Stack (most recent call first):
D:/nrf9160/ncs/zephyr/cmake/app/boilerplate.cmake:295 (include)
CMakeLists.txt:9 (include)


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

-------------------------------------

It looks like "import yaml ModuleNotFoundError: No module named 'yaml'" might be the problem,. have i missed a setup, or is the documentation missing a step ?

regards, Matthew.

  • Hi,

    It looks like you are missing the yaml module, which should have been installed by the following command "pip3 install -r scripts\requirements.txt", called from the zephyr directory. Can you try to install the requirements and see if that solves the issue?

  • Hi,

    Correct answer.

    I ran that previously, but running it a second time showed PyYAM being downloaded and installed,.. strange as all the other packages are cached as they had been downloaded and installed before.

    D:\nrf9160\ncs\zephyr>pip3 install -r scripts\requirements.txt
    Collecting wheel==0.30.0 (from -r scripts\requirements.txt (line 1))
    Using cached files.pythonhosted.org/.../wheel-0.30.0-py2.py3-none-any.whl
    Collecting breathe==4.9.1 (from -r scripts\requirements.txt (line 2))
    Using cached files.pythonhosted.org/.../breathe-4.9.1-py2.py3-none-any.whl
    Collecting sphinx==1.7.5 (from -r scripts\requirements.txt (line 3))
    Using cached files.pythonhosted.org/.../Sphinx-1.7.5-py2.py3-none-any.whl
    Collecting docutils==0.14 (from -r scripts\requirements.txt (line 4))
    Using cached files.pythonhosted.org/.../docutils-0.14-py3-none-any.whl
    Collecting sphinx_rtd_theme (from -r scripts\requirements.txt (line 5))
    Using cached files.pythonhosted.org/.../sphinx_rtd_theme-0.4.2-py2.py3-none-any.whl
    Collecting sphinxcontrib-svg2pdfconverter (from -r scripts\requirements.txt (line 6))
    Using cached files.pythonhosted.org/.../sphinxcontrib_svg2pdfconverter-0.1.0-py3-none-any.whl
    Collecting junit2html (from -r scripts\requirements.txt (line 7))
    Using cached files.pythonhosted.org/.../junit2html-022.tar.gz
    Collecting PyYAML>=3.12 (from -r scripts\requirements.txt (line 8))
    Downloading files.pythonhosted.org/.../PyYAML-3.13-cp37-cp37m-win_amd64.whl (206kB)
    100% |████████████████████████████████| 215kB 2.6MB/s

  • I too have the same issue, reinstalled the pip3 requirements, everything appears to have been satisifed, however, during the load I have the following.

    Loading solution asset_tracker.emProject
    Executing load commands
    /usr/local/bin/cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/tscribne/Work/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb/gcc-arm-none-eabi-8-2018-q4-major -B/Users/tscribne/Work/ncs/nrf/samples/nrf9160/asset_tracker/build -H/Users/tscribne/Work/ncs/nrf/samples/nrf9160/asset_tracker -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc
    -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7.1", minimum required is "3.4") 
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in /Users/tscribne/Work/ncs/nrf/samples/nrf9160/asset_tracker/Kconfig
    Loading /Users/tscribne/Work/ncs/nrf/samples/nrf9160/asset_tracker/build/zephyr/.config as base
    -- Loading /Users/tscribne/Work/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /Users/tscribne/Work/ncs/zephyr/dts/common/common.dts
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/adc@0x4000e000: unit name should not have leading "0x"
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40008000: duplicate unit-address (also used in node /soc/i2c@40008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40009000: duplicate unit-address (also used in node /soc/i2c@40009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000a000: duplicate unit-address (also used in node /soc/i2c@4000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000b000: duplicate unit-address (also used in node /soc/i2c@4000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40008000: duplicate unit-address (also used in node /soc/spi@40008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@40008000: duplicate unit-address (also used in node /soc/spi@40008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@40009000: duplicate unit-address (also used in node /soc/spi@40009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@40009000: duplicate unit-address (also used in node /soc/spi@40009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000a000: duplicate unit-address (also used in node /soc/spi@4000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@4000a000: duplicate unit-address (also used in node /soc/spi@4000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@4000b000: duplicate unit-address (also used in node /soc/spi@4000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@4000b000: duplicate unit-address (also used in node /soc/spi@4000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/clock@40005000: duplicate unit-address (also used in node /soc/power@40005000)
    Traceback (most recent call last):
      File "/Users/tscribne/Work/ncs/zephyr/scripts/dts/extract_dts_includes.py", line 15, in 
        import yaml
    ModuleNotFoundError: No module named 'yaml'
    -- Configuring incomplete, errors occurred!
    CMake Error at /Users/tscribne/Work/ncs/zephyr/cmake/dts.cmake:193 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /Users/tscribne/Work/ncs/zephyr/cmake/app/boilerplate.cmake:295 (include)
      CMakeLists.txt:9 (include)
  • I have a similar problem with Python module installation.  I'm using Win7 with Python 3.6.4 and pip 18.1.  The zephyr script ran fine but when I run the nrf script...

    pip3 install -r nrf\scripts\requirements.txt

    ...I get the following error...

    C:\Users\rob\Documents\nrf_sdk\ncs>pip3 install -r nrf\scripts\requirements.txt
    Collecting git+github.com/.../mscgen.git@python3 (from -r nrf\scr
    ipts\requirements.txt (line 2))
    Cloning github.com/.../mscgen.git (to revision python3) to c:\u
    sers\rob\appdata\local\temp\pip-req-build-vnjs2p3d
    Switched to a new branch 'python3'
    Branch 'python3' set up to track remote branch 'python3' from 'origin'.
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\setuptools\__init__.py", line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\setuptools\extern\__init__.py", line 1, in <module>
    from pkg_resources.extern import VendorImporter
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 3017, in <module>
    @_call_aside
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 3045, in _initialize_master_working_set
    dist.activate(replace=False)
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 2577, in activate
    declare_namespace(pkg)
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 2151, in declare_namespace
    _handle_ns(packageName, path_item)
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 2091, in _handle_ns
    _rebuild_mod_path(path, packageName, module)
    File "c:\users\rob\appdata\local\programs\python\python36\lib\site-package
    s\pkg_resources\__init__.py", line 2120, in _rebuild_mod_path
    orig_path.sort(key=position_in_sys_path)
    AttributeError: '_NamespacePath' object has no attribute 'sort'

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in C:\Users\rob\AppD
    ata\Local\Temp\pip-req-build-vnjs2p3d\

    I continued on to download the Segger IDE, set pathing and built the nrf9160/asset_tracker project.  Everything compiled but I got this error after linking...

    1> Linking ‘zephyr.elf’
    1> Post-link command
    1> C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe: zephyr.hex 64-bit address 0x4b4fa300040000 out of range for Intel Hex file
    1> C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe:zephyr.hex: bad value
    Build failed

    I wasn't given a 64-bit option for the gnu compiler so kinda makes sense.  Any suggestions? 

    -rob

    ps: looks like others are working on it...

    bugs.launchpad.net/.../1810274

  • Hi, 

    I Try to install it again and see that the module is installed. But it still doesn't works. Do you know what happend?

    Kind regards,

    Linh

Related