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

nRF9160 SES project load

Hi Team,

May I know your kind advice on the following issue when I tried to Open the SDK project in SES. I have seen some discussions on line but none of them works for me. I am using Win10 64bit OS. Thanks.

Loading solution at_client.emProject

Executing load commands

cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/ncs/nrf/samples/nrf9160/at_client/build -HC:/ncs/nrf/samples/nrf9160/at_client

Project load failed

Reported error: solution load command failed (-1) 

Thanks.

  • Could you please change to the Target & Output window in Segger Embedded Studio & upload the log here? Which version of gnuarmemb are you using? If you are using the Q4 one, I would recommend changing to the Q2 version (the second to last version). There is a compiling bug in the latest version (Q4). Did you setup everything like explained in the nRF91 Getting Started Guide?

  • I'm having the same issue.

    • SES: V4.14,
    • OS: Mac OS 10.14.2
    • Python:  3.7.2
    • GCC: Gnu 7.3.1

    I've set up the project as instructed in Getting Started assistant 0.5.1. So far I've tried steps here, here and here

    • GCC is rolled back to 2018 q2
    • I've tried compiling the samples under zephyr directory
    • I've unset ZEPHYR_SDK_INSTALL_DIR and sourced zephyr_env.sh (and ran SES with the same terminal)

    The getting started assistant fails verifying cmake and python3, however the programs are found by `which cmake` and `which python3`

    My SES Target & Output log:

    Loading solution asset_tracker.emProject
    Executing load commands
    /usr/local/bin/cmake  -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/otsojousimaa/git/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/local/gcc-arm-none-eabi-7-2018-q2-update -B/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/build -H/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc
    Project load failed
    Reported error: solution load command failed (-1)

    My asset_tracker.emProject, note the `"` and `&` in the file: 

    <!DOCTYPE CrossStudio_Project_File>
    <solution cmakelists_end_section="# NORDIC SDK APP END" cmakelists_file_name="/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/CMakeLists.txt" cmakelists_project="asset_tracker;build;libapp.a" target="8" version="2" source_directory="/Users/otsojousimaa/git/ncs/zephyr" board_directory="/Users/otsojousimaa/git/ncs/zephyr/boards/arm/nrf9160_pca10090" dts_compiled_file_name="/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/build/zephyr/nrf9160_pca10090.dts_compiled" build_directory="/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/build" dts_overlay_file_name="/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/nrf9160_pca10090.overlay" load_command_environment="ZEPHYR_BASE=/Users/otsojousimaa/git/ncs/zephyr" cmakelists_start_section="# NORDIC SDK APP START" Name="asset_tracker" load_command=""/usr/local/bin/cmake " -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/otsojousimaa/git/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH="/opt/local/gcc-arm-none-eabi-7-2018-q2-update" -B"/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/build" -H"/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker" -DPYTHON_EXECUTABLE="/usr/local/bin/python3" -DCMAKE_MAKE_PROGRAM="/usr/local/bin/ninja" -DDTC="/usr/local/bin/dtc" && $(StudioDir)/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">
      <configuration properties_filter="Debug" arm_target_device_name="nRF9160" debug_target_connection="J-Link" debug_register_definition_file="$(PackagesDir)/nRF/Device/Registers/nrf9160.svd" arm_architecture="v8M_Mainline" external_link_command=""$(ToolChainDir)/arm-none-eabi-gcc" $(Objects) $(LinkOptions) -o "$(RelTargetPath)"" arm_core_type="Cortex-M33" external_assemble_command=""$(ToolChainDir)/arm-none-eabi-gcc" $(AsmOptions) -MD -MF "$(RelDependencyPath)" -o "$(RelTargetPath)" -c "$(RelInputPath)"" Name="Common" external_c_compile_command=""$(ToolChainDir)/arm-none-eabi-gcc" $(COptions) -MD -MF "$(RelDependencyPath)" -fno-diagnostics-show-caret -o "$(RelTargetPath)" -c "$(RelInputPath)"" arm_fpu_type="FPv5-SP-D16" external_archive_command=""$(ToolChainDir)/arm-none-eabi-ar" -rcs "$(RelTargetPath)" $(Objects)" linker_section_placements_segments="FLASH RX 0x00000000 0x00100000;RAM RWX 0x20000000 0x00040000" source_code_control_directory="/Users/otsojousimaa/git/ncs/zephyr" build_toolchain_directory="/opt/local/gcc-arm-none-eabi-7-2018-q2-update/bin" debug_start_from_entry_point_symbol="No" arm_target_interface_type="SWD"/>
      <folder path="/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker" filter="nrf9160_pca10090.overlay" Name="dts files">
        <configuration Name="Common" c_user_include_directories="/Users/otsojousimaa/git/ncs/zephyr/dts/common" c_system_include_directories="/Users/otsojousimaa/git/ncs/zephyr/include;/Users/otsojousimaa/git/ncs/zephyr/dts/arm;/Users/otsojousimaa/git/ncs/zephyr/dts"/>
        <file file_name="/Users/otsojousimaa/git/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts"/>
        <file file_name="/Users/otsojousimaa/git/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.yaml"/>
        <file file_name="/Users/otsojousimaa/git/ncs/zephyr/dts/common/common.dts"/>
        <file file_name="/Users/otsojousimaa/git/ncs/nrf/samples/nrf9160/asset_tracker/build/zephyr/nrf9160_pca10090.dts_compiled"/>
      </folder>
      <import can_modify_solution="No" file_name="build.emProject"/>
    </solution>
    

    I can run the SES load command to configure the project and then `ninja` in terminal to compile the project without errors, although I've not flashed the binary to dk. 

  • Same issue:

    • Windows 10.
    • SES: V4.14
    • Phyton: 3.7.2
    • GNUA Arm Embedded toolchain 7-2018-q2-update

    Everything setup like explained in the Getting Started Assistant v2.6.1. All checks are ok.

    Loading solution asset_tracker.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=E:/Nordic/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BE:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker/build -HE:/Nordic/ncs/nrf/samples/nrf9160/asset_tracker
    Project load failed
    Reported error: solution load command failed (-1)

    Thanks

  • Hi Bjørn, thanks for your prompt response. Please see the screen shot below - similar to others'. I tried a couple of GNU versions as well. I did setup as indicated in the guide. Thanks.

  • This applies to all three of you. I find it weird that you all receive so little logging information. Normally, you can easily see where the error lies. If you have recently downloaded the Nordic Connect SDK (around the12.2.2019), I believe the cause of this may be that we are now using west, Zephyr's meta-tool. There is more documentation here that may be helpful. Could you try to download west, update to the newest repositories & then try opening the SES examples again? Hopefully, you will then receive more logging information that can help you debug the issue.

Related