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

" cant load Project file" in Segger studio

Hi! Im just getting started With the NRF9160 DK. I have followed the instructions on "getting started Assistant" for NRF Connect (Windows 10). when im trying to build my Project in Segger studio, i get the " cant load Project file".


Output:

Loading solution spm.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/sourcecode_root/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/sourcecode_root/ncs/nrf/samples/nrf9160/spm/build -HC:/sourcecode_root/ncs/nrf/samples/nrf9160/spm -DDTC_OVERLAY_FILE=C:/sourcecode_root/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
Zephyr version: 1.14.0
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.3", minimum required is "3.4")
-- Selected BOARD nrf9160_pca10090
-- Loading C:/sourcecode_root/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
-- Overlaying C:/sourcecode_root/ncs/zephyr/dts/common/common.dts
-- Overlaying C:/sourcecode_root/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
Parsing Kconfig tree in C:/sourcecode_root/ncs/zephyr/Kconfig
Traceback (most recent call last):
  File "C:/sourcecode_root/ncs/zephyr/scripts/kconfig/kconfig.py", line 231, in <module>
    main()
  File "C:/sourcecode_root/ncs/zephyr/scripts/kconfig/kconfig.py", line 32, in main
    kconf = Kconfig(args.kconfig_root, warn_to_stderr=False)
  File "C:\sourcecode_root\ncs\zephyr\scripts\kconfig\kconfiglib.py", line 973, in __init__
    self._parse_block(None, self.top_node, self.top_node)
  File "C:\sourcecode_root\ncs\zephyr\scripts\kconfig\kconfiglib.py", line 2652, in _parse_block
    prev = self._parse_block(None, parent, prev)
  File "C:\sourcecode_root\ncs\zephyr\scripts\kconfig\kconfiglib.py", line 2652, in _parse_block
    prev = self._parse_block(None, parent, prev)
  File "C:\sourcecode_root\ncs\zephyr\scripts\kconfig\kconfiglib.py", line 2652, in _parse_block
    prev = self._parse_block(None, parent, prev)
  File "C:\sourcecode_root\ncs\zephyr\scripts\kconfig\kconfiglib.py", line 2692, in _parse_block
    self._parse_block(_T_ENDMENU, node, node)
  File "C:\sourcecode_root\ncs\zephyr\scripts\kconfig\kconfiglib.py", line 2639, in _parse_block
    if self.srctree else "unset or blank"))
kconfiglib.KconfigError: subsys\debug\Kconfig:275: 'subsys/debug/Kconfig.segger' not found (in 'source "subsys/debug/Kconfig.segger"'). Check that environment variables are set correctly (e.g. $srctree, which is set to 'C:/sourcecode_root/ncs/zephyr'). Also note that unset environment variables expand to the empty string.
CMake Error at C:/sourcecode_root/ncs/zephyr/cmake/kconfig.cmake:191 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/sourcecode_root/ncs/zephyr/cmake/app/boilerplate.cmake:397 (include)
  CMakeLists.txt:3 (include)

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

Regards,
Ivar
Parents Reply Children
No Data
Related