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.

  • 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 ..

  • Yes I tried it. Verified variables:

    And then the build:

    So it seem to be the same error for building via cmd as well

  • While verifying the variables you only need to run the command as "echo %ZEPHYR_BASE%" and the output should point your folder regarding with variable. in your case it should be "C:/Users/sjonsson2/new_git/ncs/zephyr"

    By the way before doing you need to run "zephyr-env.cmd" in your zephyr folder. That script will setup your variables

  • After checking and verifying my variables and changing my folder name for my new install it works. When running cmake it was looking for files in a path that didn't exist anymore (It did not look in the path specified in the variables for some reason but got the old path). So I just renamed my folder to the old name.

    Anyway it works now, thank you for your help!

  • Hi Samuel,

    I am getting the same error as you were getting. I dint install it twice. so i dont think it has anything to do with the folder names. 

    C:\Users\jnai\OneDrive\Documents\MyScripts\Nordic_NBIot\ncs\nrf\samples\nrf9160\spm\build>cmake -DBOARD=nrf9160_pca10090 -GNinja ..
    -- Using application from 'C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/nrf/samples/nrf9160/spm'
    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
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.5.8", minimum required is "0.5.6")
    -- Cache files will be written to: C:\Users\jnai\AppData\Local/.cache/zephyr
    -- Loading C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/zephyr//dts/common/common.dts
    -- Overlaying C:/Users/jnai/OneDrive
    -- Overlaying -
    -- Overlaying /Documents/MyScripts/Nordic_NBIot/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
    arm-none-eabi-gcc.exe: error: CreateProcess: No such file or directory
    CMake Error at C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/zephyr/cmake/dts.cmake:94 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Users/jnai/OneDrive/Documents/MyScripts)/Nordic_NBIot/ncs/zephyr/cmake/app/boilerplate.cmake:486 (include)
    CMakeLists.txt:3 (include)


    -- Configuring incomplete, errors occurred!

    I was not able to do   git checkout c1939d963fe2c18013ffb8de0bd8f6fc1d91724d

    error: The following untracked working tree files would be overwritten by checkout:

    The process was getting aborted.

    Can you please suggest how to fix this? Thanks in advance!

Reply
  • Hi Samuel,

    I am getting the same error as you were getting. I dint install it twice. so i dont think it has anything to do with the folder names. 

    C:\Users\jnai\OneDrive\Documents\MyScripts\Nordic_NBIot\ncs\nrf\samples\nrf9160\spm\build>cmake -DBOARD=nrf9160_pca10090 -GNinja ..
    -- Using application from 'C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/nrf/samples/nrf9160/spm'
    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
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.5.8", minimum required is "0.5.6")
    -- Cache files will be written to: C:\Users\jnai\AppData\Local/.cache/zephyr
    -- Loading C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/zephyr//dts/common/common.dts
    -- Overlaying C:/Users/jnai/OneDrive
    -- Overlaying -
    -- Overlaying /Documents/MyScripts/Nordic_NBIot/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
    arm-none-eabi-gcc.exe: error: CreateProcess: No such file or directory
    CMake Error at C:/Users/jnai/OneDrive/Documents/MyScripts/Nordic_NBIot/ncs/zephyr/cmake/dts.cmake:94 (message):
    command failed with return code: 1
    Call Stack (most recent call first):
    C:/Users/jnai/OneDrive/Documents/MyScripts)/Nordic_NBIot/ncs/zephyr/cmake/app/boilerplate.cmake:486 (include)
    CMakeLists.txt:3 (include)


    -- Configuring incomplete, errors occurred!

    I was not able to do   git checkout c1939d963fe2c18013ffb8de0bd8f6fc1d91724d

    error: The following untracked working tree files would be overwritten by checkout:

    The process was getting aborted.

    Can you please suggest how to fix this? Thanks in advance!

Children
Related