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

Can't open project in Segger Embedded Studio - project file is invalid

Things were working ok yesterday but today I can't open any projects. For some reason now, it fails and says the project file is invalid. Here is the output

Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Nordic/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build -HC:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker
-- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.2", minimum required is "3.4")
-- Selected BOARD nrf9160_pca10090
Zephyr version: 1.13.99
Parsing Kconfig tree in C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/Kconfig
Loading C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build/zephyr/.config as base
-- Loading C:/Nordic/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
-- Overlaying C:/Nordic/ncs/zephyr/dts/common/common.dts
nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/adc@0x4000e000: unit name should not have leading "0x"
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)
-- Cache files will be written to: C:\Users\matth\AppData\Local/.cache/zephyr
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Failed
CMake Error at C:/Nordic/ncs/zephyr/cmake/extensions.cmake:1076 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
C:/Nordic/ncs/zephyr/CMakeLists.txt:28 (assert)


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

Parents
  • -- Configuring incomplete, errors occurred!
    See also "C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build/CMakeFiles/CMakeOutput.log".
    See also "C:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build/CMakeFiles/CMakeError.log".
    Project load failed

    When you say you can't open "any projects", do you actually mean any SES project (i.e. even the SDK bundled examples) or do you just mean the one you've been working on?

    Did you make any changes to your system or toolchain setup between the last successful project load and the first failure?

    Have you tried cleaning the project of previous builds?

    Also what do those log files have to say about the error(s)?

  • Ah yes. Read it and follow the instructions. The log says:

    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    Build flags:
    Id flags:

    The output was:
    1
    arm-none-eabi-gcc.exe: error: CreateProcess: No such file or directory

    I had renamed the directory. I imagine that the PATH variable was not updated and hence this problem.

    I'm able to open it now.

Reply
  • Ah yes. Read it and follow the instructions. The log says:

    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    Build flags:
    Id flags:

    The output was:
    1
    arm-none-eabi-gcc.exe: error: CreateProcess: No such file or directory

    I had renamed the directory. I imagine that the PATH variable was not updated and hence this problem.

    I'm able to open it now.

Children
No Data
Related