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

Asset Tracker Example create_nordic_project.py failed (1)

I tried to make a copy of the Asset Tracker example application to start my own project.  However I cannot get it to load in SES.  I'm currently on the Master branch of nRF SDK.  The output error is:

The console log shows:

Creating solution my_asset_tracker_firmware.emProject
cmake -GNinja -DBOARD=thingy91_nrf9160ns -DBOARD_DIR=C:\nRF_Connect_SDK\nrf\boards\arm\thingy91_nrf9160 -BC:\Users\Dave\Desktop\Firmware_Projects\Nordic_Cellular_IoT_Projects\my_asset_tracker_firmware\build_thingy91_nrf9160ns -SC:\Users\Dave\Desktop\Firmware_Projects\Nordic_Cellular_IoT_Projects\my_asset_tracker_firmware -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:\gnuarmemb -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Program Files\Segger_Embedded_Studio\arm_segger_embedded_studio_v510c_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware
-- Zephyr version: 2.4.0 (C:/nRF_Connect_SDK/zephyr)
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160ns
-- Cache files will be written to: C:\Users\Dave\AppData\Local/.cache/zephyr
-- Found toolchain: gnuarmemb (C:/gnuarmemb)
-- Found BOARD.dts: C:/nRF_Connect_SDK/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns.dts
-- Generated zephyr.dts: C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
Parsing C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/Kconfig
Loaded configuration 'C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/zephyr/.config'
No change to configuration in 'C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/zephyr/.config'
No change to Kconfig header in 'C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/zephyr/include/generated/autoconf.h'
-- Configuring incomplete, errors occurred!
See also "C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/CMakeFiles/CMakeError.log".
Including boilerplate (Zephyr base (cached)): C:/nRF_Connect_SDK/zephyr/cmake/app/boilerplate.cmake
CMake Warning at C:/nRF_Connect_SDK/zephyr/cmake/host-tools.cmake:31 (message):
Could NOT find dtc: Found unsuitable version "1.4.4", but required is at
least "1.4.6" (found C:/ProgramData/chocolatey/bin/dtc.exe). Optional
devicetree error checking with dtc will not be performed.
Call Stack (most recent call first):
C:/nRF_Connect_SDK/zephyr/cmake/app/boilerplate.cmake:571 (include)
C:/nRF_Connect_SDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/nRF_Connect_SDK/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
CMakeLists.txt:3 (find_package)


CMake Error at C:/nRF_Connect_SDK/zephyr/cmake/extensions.cmake:1557 (message):
Assertion failed: Cannot locate SUPL Client library, should be located in
your nrf repo ext/lib/bin/supl.
Call Stack (most recent call first):
C:/nRF_Connect_SDK/nrf/ext/CMakeLists.txt:11 (assert)

Here is my CMakeError log:

Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:

The output was:
1
c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:

The output was:
1
c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exe: error: ld returned 1 exit status

Here is my CMakeOutput log:

The target system is: Generic - 2.4.0 - arm
The host system is: Windows - 10.0.19041 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"

The C compiler identification is GNU, found in "C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/CMakeFiles/3.14.5/CompilerIdC/CMakeCCompilerId.o"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"

The CXX compiler identification is GNU, found in "C:/Users/Dave/Desktop/Firmware_Projects/Nordic_Cellular_IoT_Projects/my_asset_tracker_firmware/build_thingy91_nrf9160ns/CMakeFiles/3.14.5/CompilerIdCXX/CMakeCXXCompilerId.o"

Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)":
arm-none-eabi-gcc.exe (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Parents Reply Children
Related