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.
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!
Hi wesaymorning,
Wow, I went and looked in the Tools->Options directory that you mentioned and all of those "Executables" are just blank. There is nothing setup for any of them. I don't understand how that could be? Which part of the Getting Started guide would have done that?
OK, so maybe this is the source of the problem. The screenshot you show above looks like the Getting Started Assistant, but no where in my assistant does it show that work step.
Oh, but I'm not running on a apple mac, just a regular pc, so maybe thats why I don't see these paths filled in. However, do they still need to be filled in even for the PC version?
OK so I went back to the getting started assistant and went back through all the steps and made sure they verified ok. I tried to open the project again and this time it did generate the .emproject file but I have a different error. I'm not sure how the admins want me to treat this, close this thread and start a new one?
Anyways, i'm posting the error info below. It looks like it doesn't have the full path?
Loading solution lte_ble_gateway.emProject
Executing load commands
C:/Program Files/CMake/bin/cmake.exe -GNinja -DBOARD=nrf9160_pca10090 -DBOARD_DIR=C:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/ncs/zephyr/boards/arm/nrf9160_pca10090 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/ncs/nrf/samples/nrf9160/lte_ble_gateway/Build -HC:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/ncs/nrf/samples/nrf9160/lte_ble_gateway -DPYTHON_EXECUTABLE=C:/Python37/python.exe -DCMAKE_MAKE_PROGRAM=C:/ProgramData/chocolatey/bin/ninja.exe -DDTC=C:/ProgramData/chocolatey/bin/dtc.exe -DDTC_OVERLAY_FILE=C:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/ncs/nrf/samples/nrf9160/lte_ble_gateway/nrf9160_pca10090.overlay
-- 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
CMake Error at C:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/ncs/zephyr/cmake/kconfig.cmake:101 (message):
File not found: C:/Program/nrf9160_pca10090_defconfig
Call Stack (most recent call first):
C:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin/ncs/zephyr/cmake/app/boilerplate.cmake:259 (include)
CMakeLists.txt:9 (include)
-- Configuring incomplete, errors occurred!
Project load failed
Reported error: solution load command failed (1)
That file is here on Windows 8 inside the installed git stuff::
.\Zephyr\boards\arm\nrf9160_pca10090
Did you manually create the build subdirectory before selecting it? I had to .. and do a Rebuild Solution of course.
Hi.
It would be great if you could post it in a new ticket, since this ticket now is quite messy.
Best regards,
Andreas