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

.emproject

I am trying to do the segger development for the 9160 lte ble gateway.  When I do the setup info for segger I keep getting a popup saying it can't find the .emproject file.  I don't see an emproject file in any of the samples?

Parents Reply Children
  • Found my issue. The following commands had failed during the setup. Once this was resolved I was able to load the project file.

    pip3 install --user -r zephyr/scripts/requirements.txt
    pip3 install --user -r nrf/scripts/requirements.txt
  • Morning.

    After selecting & configuring File -> Open nRF Connect SDK Project, the output of the Segger trying to load the project can be seen in the 'Output' box at the bottom of the screen. This is where I noticed that the cmake command wasn't being found. I then verifiied/fixed the commands in Tools -> Options -> nRF Connect.

    As a result, the project loaded successfully & built.

    Loading solution at_client.emProject
    Executing load commands
    /usr/local/opt/bin/cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=/Users/jonnie/Development/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -B/Users/jonnie/Development/nRF9160/ncs/nrf/samples/nrf9160/at_client/build -H/Users/jonnie/Development/nRF9160/ncs/nrf/samples/nrf9160/at_client -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DDTC=/usr/local/bin/dtc
    -- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.6.7", minimum required is "3.4") 
    -- Selected BOARD nrf9160_pca10090
    Zephyr version: 1.13.99
    Parsing Kconfig tree in /Users/jonnie/Development/nRF9160/ncs/zephyr/Kconfig
    Loading /Users/jonnie/Development/nRF9160/ncs/nrf/samples/nrf9160/at_client/build/zephyr/.config as base
  • I have this:

    Loading solution at_client.emProject
    Executing load commands
    cmake -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Projects/ncs/Zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Projects/ncs/nrf/samples/nrf9160/at_client/build -HC:/Projects/ncs/nrf/samples/nrf9160/at_client
    Zephyr version: 1.14.0
    -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.2", minimum required is "3.4") 
    -- Selected BOARD nrf9160_pca10090
    -- Loading C:/Projects/ncs/Zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
    -- Overlaying C:/Projects/ncs/Zephyr/dts/common/common.dts
    Parsing Kconfig tree in C:/Projects/ncs/Zephyr/Kconfig
    Loading C:/Projects/ncs/nrf/samples/nrf9160/at_client/build/zephyr/.config as base
    Configuration written to 'C:/Projects/ncs/nrf/samples/nrf9160/at_client/build/zephyr/.config'
    -- Cache files will be written to: C:\Users\Hugh\AppData\Local/.cache/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: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    -- Performing Test toolchain_is_ok
    -- Performing Test toolchain_is_ok - Success
    Including module(s): 
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Projects/ncs/nrf/samples/nrf9160/at_client/build
    C:/Projects/arm_segger_embedded_studio_v414_win_x64_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
    Loading solution build.emProject
    Mapping project information
    Mapping project zephyr/zephyr.elf
    Mapping project zephyr/include/generated/offsets.h
    Mapping project zephyr/include/generated/driver-validation.h
    Mapping project zephyr/include/generated/kobj-types-enum.h
    Mapping project zephyr/include/generated/otype-to-str.h
    Mapping project zephyr/include/generated/syscall_list.h
    Mapping project zephyr/misc/generated/syscalls.json
    Mapping project zephyr/include/generated/syscall_dispatch.c
    Mapping project zephyr/include/generated/syscall_macros.h
    Mapping project zephyr/isr_tables.c
    Mapping project zephyr/zephyr_prebuilt.elf
    Mapping project zephyr/linker.cmd
    Mapping project app/libapp.a
    Mapping project zephyr/libzephyr.a
    Mapping project zephyr/arch/arch/arm/core/libarch__arm__core.a
    Mapping project zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a
    Mapping project zephyr/arch/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a
    Mapping project zephyr/lib/libc/minimal/liblib__libc__minimal.a
    Mapping project zephyr/subsys/net/libsubsys__net.a
    Mapping project zephyr/nrf/lib/bsdlib/lib..__nrf__lib__bsdlib.a
    Mapping project zephyr/nrf/lib/at_host/lib..__nrf__lib__at_host.a
    Mapping project zephyr/drivers/serial/libdrivers__serial.a
    Mapping project zephyr/kernel/libkernel.a
    Mapping project zephyr/linker_pass_final.cmd
    Populating dynamic folders
    Populating folder ‘dts files’
    Preparing solution ‘at_client’
    Preparing solution ‘build’
    Preparing project ‘zephyr/zephyr.elf’
    Preparing project ‘app/libapp.a’
    Preparing project ‘zephyr/libzephyr.a’
    Preparing project ‘zephyr/arch/arch/arm/core/libarch__arm__core.a’
    Preparing project ‘zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a’
    Preparing project ‘zephyr/arch/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a’
    Preparing project ‘zephyr/lib/libc/minimal/liblib__libc__minimal.a’
    Preparing project ‘zephyr/subsys/net/libsubsys__net.a’
    Preparing project ‘zephyr/nrf/lib/bsdlib/lib..__nrf__lib__bsdlib.a’
    Preparing project ‘zephyr/nrf/lib/at_host/lib..__nrf__lib__at_host.a’
    Preparing project ‘zephyr/drivers/serial/libdrivers__serial.a’
    Preparing project ‘zephyr/kernel/libkernel.a’
    Restoring state from previous session
    Preparing to load data
    Loading session data from file
    SEGGER Embedded Studio is ready to use
    
    I don't see any errors .. other than I'm using Windows 8 which is a serious error if ever there was one as any fule kno  .. following comments above I didn't originally populate the build options, but doing so just now using these paths doesn't make any difference:

    C:/Program Files/CMake/bin/cmake.exe
    C:/ProgramData/chocolatey/bin/dtc.exe
    C:\ProgramData\chocolatey\bin\ninja.exe
    C:/Python37/python.exe

    Edit: One of the git repos was at incorrect version, corrected now and all builds - phew!

Related