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

Failed to open zephyr project on MacOS

After following the setup procedure and trying to open emStudio per the following image.

I get the following error:

So I ran the command manually

  zephyr git:(nrf91) cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/spoulsen/Projects/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/usr/local/gcc-arm-none-eabi-7-2018-q2-update -B/Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client/build -H/Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client

-- 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/spoulsen/Projects/ncs/zephyr/Kconfig

Loading /Users/spoulsen/Projects/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig as base

Merging /Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client/prj.conf

warning: GPIO (defined at

/Users/spoulsen/Projects/ncs/zephyr/soc/arm/nordic_nrf/Kconfig.defconfig:17,

soc/arm/nxp_imx/mcimx7_m4/Kconfig.defconfig.mcimx7_m4:29,

soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1052:30,

soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1062:30,

soc/arm/nxp_kinetis/k6x/Kconfig.defconfig.mk64f12:36,

soc/arm/nxp_lpc/lpc54xxx/Kconfig.defconfig.lpc54114_m0:22,

soc/arm/silabs_exx32/efm32hg/Kconfig.defconfig.efm32hg:15,

soc/arm/silabs_exx32/efm32pg12b/Kconfig.defconfig.efm32pg12b:15,

soc/arm/silabs_exx32/efm32wg/Kconfig.defconfig.efm32wg:15,

soc/arm/silabs_exx32/efr32fg1p/Kconfig.defconfig.efr32fg1p:15,

soc/arm/silabs_exx32/efr32mg12p/Kconfig.defconfig.efr32mg12p:15, drivers/gpio/Kconfig:9) was

assigned the value 'n' but got the value 'y'. You can check symbol information (including

dependencies) in the 'menuconfig' interface (see the Application Development Primer section of the

manual), or in the Kconfig reference at

docs.zephyrproject.org/.../CONFIG_GPIO.html (which is updated regularly

from the master branch). See the 'Setting configuration values' section of the Board Porting Guide

as well.

warning: LOG_DEFAULT_LEVEL (defined at subsys/logging/Kconfig:137) was assigned the value '4' but

got the value ''. You can check symbol information (including dependencies) in the 'menuconfig'

interface (see the Application Development Primer section of the manual), or in the Kconfig

reference at docs.zephyrproject.org/.../CONFIG_LOG_DEFAULT_LEVEL.html

(which is updated regularly from the master branch). See the 'Setting configuration values' section

of the Board Porting Guide as well.

warning: NET_RAW_MODE (defined at subsys/net/ip/Kconfig:12) was assigned the value 'y' but got the

value 'n'. This symbol has no prompt, meaning assignments in configuration files have no effect on

it. It can only be set indirectly, via Kconfig defaults (e.g. in a Kconfig.defconfig file) or

through being 'select'ed or 'imply'd (note: try to avoid Kconfig 'select's except for trivial

promptless "helper" symbols without dependencies, as it ignores dependencies and forces symbols on).

You can check symbol information (including dependencies) in the 'menuconfig' interface (see the

Application Development Primer section of the manual), or in the Kconfig reference at

docs.zephyrproject.org/.../CONFIG_NET_RAW_MODE.html (which is updated

regularly from the master branch). See the 'Setting configuration values' section of the Board

Porting Guide as well. It covers Kconfig.defconfig files.

-- Loading /Users/spoulsen/Projects/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base

-- Overlaying /Users/spoulsen/Projects/ncs/zephyr/dts/common/common.dts

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/spoulsen/Projects/ncs/zephyr/scripts/dts/extract_dts_includes.py", line 15, in <module>

    import yaml

ModuleNotFoundError: No module named 'yaml'

CMake Error at /Users/spoulsen/Projects/ncs/zephyr/cmake/dts.cmake:193 (message):

  command failed with return code: 1

Call Stack (most recent call first):

  /Users/spoulsen/Projects/ncs/zephyr/cmake/app/boilerplate.cmake:295 (include)

  CMakeLists.txt:9 (include)

-- Configuring incomplete, errors occurred!

See also "/Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client/build/CMakeFiles/CMakeOutput.log".

  zephyr git:(nrf91)  

Parents
  • I got this warning on pip: 

    You are using pip version 10.0.1, however version 18.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    

    After running pip install --upgrade pip I get this on the retry of Cmake

    ➜  zephyr git:(nrf91) ✗ cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/spoulsen/Projects/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/usr/local/gcc-arm-none-eabi-7-2018-q2-update -B/Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client/build -H/Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client
    
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in /Users/spoulsen/Projects/ncs/zephyr/Kconfig
    Loading /Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client/build/zephyr/.config as base
    -- Loading /Users/spoulsen/Projects/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /Users/spoulsen/Projects/ncs/zephyr/dts/common/common.dts
    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)
    /Users/spoulsen/Projects/ncs/zephyr/scripts/dts/extract_dts_includes.py:496: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
      and isinstance(merge_dct[k], collections.Mapping)):
    -- Cache files will be written to: /Users/spoulsen/Library/Caches/zephyr
    -- The C compiler identification is GNU 7.3.1
    -- The CXX compiler identification is GNU 7.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /usr/local/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    CMake Warning (dev) at /Users/spoulsen/Projects/ncs/zephyr/cmake/extensions.cmake:100 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        /Users/spoulsen/Projects/ncs/nrfxlib/bsdlib/lib/cortex-m33/hard-float/libbsd_nrf9160_xxaa.a
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/spoulsen/Projects/ncs/nrfxlib/bsdlib/CMakeLists.txt:23 (zephyr_link_libraries)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Warning (dev) at /Users/spoulsen/Projects/ncs/zephyr/cmake/extensions.cmake:100 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        /Users/spoulsen/Projects/ncs/nrfxlib/bsdlib/lib/cortex-m33/hard-float/liboberon_2.0.5.a
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/spoulsen/Projects/ncs/nrfxlib/bsdlib/CMakeLists.txt:23 (zephyr_link_libraries)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Warning (dev) at /Users/spoulsen/Projects/ncs/zephyr/cmake/extensions.cmake:100 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        c
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/spoulsen/Projects/ncs/nrfxlib/bsdlib/CMakeLists.txt:23 (zephyr_link_libraries)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/spoulsen/Projects/ncs/nrf/samples/nrf9160/at_client/build
    ➜  zephyr git:(nrf91) 

  • emStudio still gets the same error on opening the project.

  • I am able to open the project by running emStudio in a terminal after setting the environment variable.

     source zephyr-env.sh
    
    ~/arm_segger_embedded_studio_v411_macos_x64_nordic/SEGGER\ Embedded\ Studio\ for\ ARM\ 4.11.app/Contents/MacOS/emStudio

Reply Children
Related