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

SEGGER emStudio build project failure

Hi,

After trying to work out why one of our nrf9160 DK:s cannot execute any AT commands using the at_client sample I tried redoing the getting started guide to make sure it is purely a problem with the board. After doing that SEGGER emStudio stopped working and when I try to build a project I get the following error:

This is the same for all samples and I can't figure out why, how can I fix this?

Kind regards 

Samuel

Parents
  • Hi,

    thanks for the tip Gurkan. I tried doing as the link you provided suggested:

    git checkout c1939d963fe2c18013ffb8de0bd8f6fc1d91724d

    west update

    But unfortunately the same problem is still present.

  • Can you share the output log of Segger when you get the error? That might help to point the issue

  • I get the following output:

    Loading solution spm.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Users/sjonsson2/git_nrf/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=c:/gnuarmemb -BC:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090 -HC:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm -DDTC_OVERLAY_FILE=C:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Users/sjonsson2/arm_segger_embedded_studio_v416_win_x64_nordic/html/configure_nordic_project_menuconfig.py
    CMake Error at CMakeLists.txt:3 (include):
    include could not find load file:

    C:/Users/sjonsson2/new_git/ncs/zephyr/cmake/app/boilerplate.cmake


    -- The C compiler identification is GNU 8.2.1
    -- The CXX compiler identification is unknown
    -- Check for working C compiler: C:/Users/sjonsson2/arm_segger_embedded_studio_v416_win_x64_nordic/bin/cc.exe
    -- Check for working C compiler: C:/Users/sjonsson2/arm_segger_embedded_studio_v416_win_x64_nordic/bin/cc.exe -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - failed
    -- Detecting C compile features
    -- Detecting C compile features - failed
    CMake Error at CMakeLists.txt:4 (project):
    No CMAKE_CXX_COMPILER could be found.

    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.


    -- Configuring incomplete, errors occurred!
    See also "C:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090/CMakeFiles/CMakeError.log".
    Project load failed
    Reported error: solution load command failed (1)

Reply
  • I get the following output:

    Loading solution spm.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Users/sjonsson2/git_nrf/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=c:/gnuarmemb -BC:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090 -HC:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm -DDTC_OVERLAY_FILE=C:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Users/sjonsson2/arm_segger_embedded_studio_v416_win_x64_nordic/html/configure_nordic_project_menuconfig.py
    CMake Error at CMakeLists.txt:3 (include):
    include could not find load file:

    C:/Users/sjonsson2/new_git/ncs/zephyr/cmake/app/boilerplate.cmake


    -- The C compiler identification is GNU 8.2.1
    -- The CXX compiler identification is unknown
    -- Check for working C compiler: C:/Users/sjonsson2/arm_segger_embedded_studio_v416_win_x64_nordic/bin/cc.exe
    -- Check for working C compiler: C:/Users/sjonsson2/arm_segger_embedded_studio_v416_win_x64_nordic/bin/cc.exe -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - failed
    -- Detecting C compile features
    -- Detecting C compile features - failed
    CMake Error at CMakeLists.txt:4 (project):
    No CMAKE_CXX_COMPILER could be found.

    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.


    -- Configuring incomplete, errors occurred!
    See also "C:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/sjonsson2/git_nrf/ncs/nrf/samples/nrf9160/spm/build_nrf9160_pca10090/CMakeFiles/CMakeError.log".
    Project load failed
    Reported error: solution load command failed (1)

Children
Related