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

getting started: can't load project file: 'solution load command failed (-1)'

Hello.  I'm just trying to get going with the nRF9160 DK which just arrived.

Using macOS.

Followed Getting Started and then nRF Connect Getting Started Assistant, and everything was going quite well.

However, when I got to the point of Open nRF Connect SDK Project, regardless of whether I try it with the asset_tracker or the secure_boot, immediately after filling out the paths in that initial dialog, I get "Can't load project file" / "The project file '/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build/secure_boot.emProject' is invalid.

The reported error is 'solution load command failed (-1)'

I've verified all the paths, etc., and all seems fine.

Screen shot below.

Any ideas how to move forward?

Thanks.

Parents
  • Hey Ray, I had a similar issue. Check the File Paths for CMakeLists.txt and Build Directory. What worked for me was I placed the nrf9160 folder from samples into the samples directory for zephyr and was able to get the project to load.  

    For example: 

    C:/Nordic/ncs/zephyr/samples/nrf9160/asset_tracker/CMakeLists.txt

    C:/Nordic/ncs/zephyr/samples/nrf9160/asset_tracker/build

  • Hi Ray,

    Could you please switch the Tab in the Output window from Tasks to Output like shown below & upload the screenshot? This can often help finding the cause of the issue.

    Also, which version of the gnuarmemb toolchain did you download? v7 or v8?

  • I downloaded:

    gcc-arm-none-eabi-8-2018-q4-major-mac.tar.bz2

  • Here is full output:

    Loading solution secure_boot.emProject
    Executing load commands
    /usr/local/bin/cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/rozzie/dev/nrf/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -B/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build -H/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -DDTC_OVERLAY_FILE=/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/nrf9160_pca10090.overlay
    -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7.2", minimum required is "3.4") 
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in /Users/rozzie/dev/nrf/ncs/zephyr/Kconfig
    Loading /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build/zephyr/.config as base
    -- Loading /Users/rozzie/dev/nrf/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /Users/rozzie/dev/nrf/ncs/zephyr/dts/common/common.dts
    -- Overlaying /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/nrf9160_pca10090.overlay
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/adc@0x5000e000: unit name should not have leading "0x"
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/ficr@00ff0000: unit name should not have leading 0s
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50008000: duplicate unit-address (also used in node /soc/i2c@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50009000: duplicate unit-address (also used in node /soc/i2c@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000a000: duplicate unit-address (also used in node /soc/i2c@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000b000: duplicate unit-address (also used in node /soc/i2c@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50008000: duplicate unit-address (also used in node /soc/spi@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@50008000: duplicate unit-address (also used in node /soc/spi@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50009000: duplicate unit-address (also used in node /soc/spi@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@50009000: duplicate unit-address (also used in node /soc/spi@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000a000: duplicate unit-address (also used in node /soc/spi@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@5000a000: duplicate unit-address (also used in node /soc/spi@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000b000: duplicate unit-address (also used in node /soc/spi@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@5000b000: duplicate unit-address (also used in node /soc/spi@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/clock@50005000: duplicate unit-address (also used in node /soc/power@50005000)
    -- Cache files will be written to: /Users/rozzie/Library/Caches/zephyr
    -- The C compiler identification is GNU 8.2.1
    -- The CXX compiler identification is GNU 8.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    CMake Warning (dev) at /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:837 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        -mabi=aapcs
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:1055 (target_link_libraries_ifdef)
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:115 (target_ld_options)
      /Users/rozzie/dev/nrf/ncs/zephyr/arch/arm/CMakeLists.txt:20 (zephyr_ld_options)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Warning (dev) at /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:837 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        -march=armv8-m.main+dsp
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:1055 (target_link_libraries_ifdef)
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:115 (target_ld_options)
      /Users/rozzie/dev/nrf/ncs/zephyr/arch/arm/CMakeLists.txt:20 (zephyr_ld_options)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build
    /Applications/SEGGER NORDIC/bin/ninja_import zephyr/zephyr.elf zephyr/liboffsets.a zephyr/liboutput_lib.a zephyr/libpriv_stacks_output_lib.a zephyr/app_sizing_prebuilt.elf zephyr/zephyr_prebuilt.elf zephyr/zephyr_app_sizing_prebuilt.elf zephyr/priv_stacks_prebuilt.elf
    Project load failed
    Reported error: solution load command failed (-1)
    
  • Most likely the issue is that you are using v8 of the armemb toolchain. There is a bug when compiling nRF91 examples from Nordic Connect SDK with this version which has already been reported. The solution for now is to download & use the v7 (q2 2018) of the armemb toolchain. That should most likely make this error disappear.

  • I just rm -rf'ed the old sdk, and downloaded and replaced it with:
    gcc-arm-none-eabi-7-2018-q2-update-mac.tar.bz2

    I then restarted segger.   Same failure:

    Loading solution secure_boot.emProject
    Executing load commands
    /usr/local/bin/cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/rozzie/dev/nrf/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -B/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build -H/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -DDTC_OVERLAY_FILE=/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/nrf9160_pca10090.overlay
    -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7.2", minimum required is "3.4") 
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in /Users/rozzie/dev/nrf/ncs/zephyr/Kconfig
    Loading /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build/zephyr/.config as base
    -- Loading /Users/rozzie/dev/nrf/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /Users/rozzie/dev/nrf/ncs/zephyr/dts/common/common.dts
    -- Overlaying /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/nrf9160_pca10090.overlay
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/adc@0x5000e000: unit name should not have leading "0x"
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/ficr@00ff0000: unit name should not have leading 0s
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50008000: duplicate unit-address (also used in node /soc/i2c@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50009000: duplicate unit-address (also used in node /soc/i2c@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000a000: duplicate unit-address (also used in node /soc/i2c@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000b000: duplicate unit-address (also used in node /soc/i2c@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50008000: duplicate unit-address (also used in node /soc/spi@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@50008000: duplicate unit-address (also used in node /soc/spi@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50009000: duplicate unit-address (also used in node /soc/spi@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@50009000: duplicate unit-address (also used in node /soc/spi@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000a000: duplicate unit-address (also used in node /soc/spi@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@5000a000: duplicate unit-address (also used in node /soc/spi@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000b000: duplicate unit-address (also used in node /soc/spi@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@5000b000: duplicate unit-address (also used in node /soc/spi@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/clock@50005000: duplicate unit-address (also used in node /soc/power@50005000)
    -- Cache files will be written to: /Users/rozzie/Library/Caches/zephyr
    -- The C compiler identification is GNU 7.3.1
    -- The CXX compiler identification is GNU 7.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    CMake Warning (dev) at /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:837 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        -mabi=aapcs
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:1055 (target_link_libraries_ifdef)
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:115 (target_ld_options)
      /Users/rozzie/dev/nrf/ncs/zephyr/arch/arm/CMakeLists.txt:20 (zephyr_ld_options)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Warning (dev) at /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:837 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        -march=armv8-m.main+dsp
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:1055 (target_link_libraries_ifdef)
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:115 (target_ld_options)
      /Users/rozzie/dev/nrf/ncs/zephyr/arch/arm/CMakeLists.txt:20 (zephyr_ld_options)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build
    /Applications/SEGGER NORDIC/bin/ninja_import zephyr/zephyr.elf zephyr/liboffsets.a zephyr/liboutput_lib.a zephyr/libpriv_stacks_output_lib.a zephyr/app_sizing_prebuilt.elf zephyr/zephyr_prebuilt.elf zephyr/zephyr_app_sizing_prebuilt.elf zephyr/priv_stacks_prebuilt.elf
    Project load failed
    Reported error: solution load command failed (-1)
    

Reply
  • I just rm -rf'ed the old sdk, and downloaded and replaced it with:
    gcc-arm-none-eabi-7-2018-q2-update-mac.tar.bz2

    I then restarted segger.   Same failure:

    Loading solution secure_boot.emProject
    Executing load commands
    /usr/local/bin/cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/rozzie/dev/nrf/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -B/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build -H/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc -DDTC_OVERLAY_FILE=/Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/nrf9160_pca10090.overlay
    -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.7.2", minimum required is "3.4") 
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in /Users/rozzie/dev/nrf/ncs/zephyr/Kconfig
    Loading /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build/zephyr/.config as base
    -- Loading /Users/rozzie/dev/nrf/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying /Users/rozzie/dev/nrf/ncs/zephyr/dts/common/common.dts
    -- Overlaying /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/nrf9160_pca10090.overlay
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/adc@0x5000e000: unit name should not have leading "0x"
    nrf9160_pca10090.dts_compiled: Warning (unit_address_format): /soc/ficr@00ff0000: unit name should not have leading 0s
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50008000: duplicate unit-address (also used in node /soc/i2c@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50009000: duplicate unit-address (also used in node /soc/i2c@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000a000: duplicate unit-address (also used in node /soc/i2c@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000b000: duplicate unit-address (also used in node /soc/i2c@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50008000: duplicate unit-address (also used in node /soc/spi@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@50008000: duplicate unit-address (also used in node /soc/spi@50008000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@50009000: duplicate unit-address (also used in node /soc/spi@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@50009000: duplicate unit-address (also used in node /soc/spi@50009000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000a000: duplicate unit-address (also used in node /soc/spi@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@5000a000: duplicate unit-address (also used in node /soc/spi@5000a000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/uart@5000b000: duplicate unit-address (also used in node /soc/spi@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/i2c@5000b000: duplicate unit-address (also used in node /soc/spi@5000b000)
    nrf9160_pca10090.dts_compiled: Warning (unique_unit_address): /soc/clock@50005000: duplicate unit-address (also used in node /soc/power@50005000)
    -- Cache files will be written to: /Users/rozzie/Library/Caches/zephyr
    -- The C compiler identification is GNU 7.3.1
    -- The CXX compiler identification is GNU 7.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    CMake Warning (dev) at /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:837 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        -mabi=aapcs
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:1055 (target_link_libraries_ifdef)
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:115 (target_ld_options)
      /Users/rozzie/dev/nrf/ncs/zephyr/arch/arm/CMakeLists.txt:20 (zephyr_ld_options)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    CMake Warning (dev) at /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:837 (target_link_libraries):
      Policy CMP0079 is not set: target_link_libraries allows use with targets in
      other directories.  Run "cmake --help-policy CMP0079" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.
    
      Target
    
        zephyr_interface
    
      is not created in this directory.  For compatibility with older versions of
      CMake, link library
    
        -march=armv8-m.main+dsp
    
      will be looked up in the directory in which the target was created rather
      than in this calling directory.
    Call Stack (most recent call first):
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:1055 (target_link_libraries_ifdef)
      /Users/rozzie/dev/nrf/ncs/zephyr/cmake/extensions.cmake:115 (target_ld_options)
      /Users/rozzie/dev/nrf/ncs/zephyr/arch/arm/CMakeLists.txt:20 (zephyr_ld_options)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/rozzie/dev/nrf/ncs/nrf/samples/nrf9160/secure_boot/build
    /Applications/SEGGER NORDIC/bin/ninja_import zephyr/zephyr.elf zephyr/liboffsets.a zephyr/liboutput_lib.a zephyr/libpriv_stacks_output_lib.a zephyr/app_sizing_prebuilt.elf zephyr/zephyr_prebuilt.elf zephyr/zephyr_app_sizing_prebuilt.elf zephyr/priv_stacks_prebuilt.elf
    Project load failed
    Reported error: solution load command failed (-1)
    

Children
No Data
Related