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?
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?
Hi.
Which version of Segger are you using? Have you done the nRF Connect Getting Started Assistant?
Best regards,
Andreas
Hi Andreas,
Yes, I completed the getting started assistant. I was able to connect to my board and get the "gps" signal and I can flip the switch and see it change status in the RFcloud. I am using 64-bin Segger v4.14.
Brian,
Also check that the commands listed in Tools -> Options -> nRF Connect are valid. I also found that the path I had listed for cmake on my setup was invalid. Once this was fixed, the application was able to create a valid project file.
Hi again.
wischmi2 I've replied in the other ticket you are active in, can you please check that. Also I think you only should have to check the options in Tools -> Options -> nRF Connect if you are running MAC.
Best regards,
Andreas
Yes, it fixed the project issue but I didn't yet get past the build issues:
C:\Projects\ncs>\Python37\Scripts\pip3 install --user -r Zephyr\scripts\requirements.txt C:\Projects\ncs>\Python37\Scripts\pip3 install --user -r nrf\scripts\requirements.txt
This is the build issue, which I haven't checked yet. I installed the licence and pulled in the CMSIS packages.
1> Combining ‘zephyr/include/generated/offsets.h’ 1> Traceback (most recent call last): 1> File "C:/Projects/ncs/Zephyr/scripts/gen_offset_header.py", line 72, in <module> 1> input_file = open(args.input, 'rb') 1> FileNotFoundError: [Errno 2] No such file or directory: 'C:/Projects/ncs/nrf/samples/nrf9160/at_client/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj' Build failed
The directory is present but currently empty. Not sure whether it is a build sequence issue but disabling parallel builds does not correct this issue.
There were lots of path warnings when running pip3 assuming user "MoiIci":
Running setup.py install for whelk ... done Running setup.py install for docopt ... done Running setup.py install for git-spindle ... done Running setup.py install for hub ... done Running setup.py install for arrow ... done The script gitlint.exe is installed in 'C:\Users\MoiIci\AppData\Roaming\Python\Python37\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Running setup.py install for pyelftools ... done Running setup.py install for future ... done
Adding to the path didn't seem to help:
C:\Users\MoiIci\AppData\Roaming\Python\Python37\Scripts
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 useI 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!
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 useI 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!