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 Reply Children
  • 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)

  • I think you have an issue with GNU, which version do you have? I know it's not working with latest version you need to have "2017 q2".

  • I have 7-2018-q2-update as suggested in the getting started guide, it is not the latest version. Is that the one you mean or is it a 2017 release that must be used?

  • Sorry my bad I meant 2018, I still cannot accept that we are in 2019 Slight smile
    Have you tried to build it with command prompt?

    And before building can you check variables are set right by 

    echo %ZEPHYR_BASE%
    c:\Nordic\ncs\zephyr\
    
    echo %ZEPHYR_TOOLCHAIN_VARIANT%
    gnuarmemb
    
    echo %GNUARMEMB_TOOLCHAIN_PATH%
    C:\gnuarmemb
    
    mkdir build & cd build
    cmake -DBOARD=nrf9160_pca10090 -GNinja ..

Related