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

Error loading Zephyr on nRF52840DK using Segger Embedded Studio

Hi,

It seems I'm running into the fairly common "solution load command failed (1)" error on a nRF42840DK board.

The console output in Segger gives me the following:

Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf52840_pca10056 -DBOARD_DIR=C:/nrf5sdk/ncs/zephyr/boards/arm/nrf52840_pca10056 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/gnuarmemb -BC:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056 -HC:/nrf5sdk/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/SES/v420a/html/configure_nordic_project_menuconfig.py
-- Using application from 'C:/nrf5sdk/ncs/nrf/applications/asset_tracker'
Zephyr version: 1.14.99
-- Selected BOARD nrf52840_pca10056
-- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.0", minimum required is "0.5.6")
-- Cache files will be written to: C:\Users\SBiz\AppData\Local/.cache/zephyr
USING OUT OF TREE BOARD
-- Loading C:/nrf5sdk/ncs/zephyr/boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts as base
-- Overlaying C:/nrf5sdk/ncs/zephyr/dts/common/common.dts
Parsing Kconfig tree in C:/nrf5sdk/ncs/nrf/applications/asset_tracker/Kconfig

warning: the value '' is invalid for FLIP_INPUT (defined at C:/nrf5sdk/ncs/nrf/applications/asset_tracker/Kconfig:116), which has type int -- assignment ignored

warning: the value '' is invalid for TEMP_SIM_BUTTON (defined at C:/nrf5sdk/ncs/nrf/applications/asset_tracker/Kconfig:264), which has type int -- assignment ignored

Loading C:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056/zephyr/.config as base
warning: BSD_LIBRARY (defined at ..\nrf\lib\bsdlib\Kconfig:8) has direct dependencies TRUSTED_EXECUTION_NONSECURE with value n, but is currently being y-selected by the following symbols:
- MODEM_INFO (defined at ..\nrf\lib\modem_info\Kconfig:7), with value y, direct dependencies "y" (value: y)

Error: Aborting due to non-whitelisted Kconfig warning 'warning: the value '' is invalid for
FLIP_INPUT (defined at C:/nrf5sdk/ncs/nrf/applications/asset_tracker/Kconfig:116), which has type
int -- assignment ignored'. Note: If this warning doesn't point to an actual problem, you can add it
to the whitelist at the top of C:/nrf5sdk/ncs/zephyr/scripts/kconfig/kconfig.py.

CMake Error at C:/nrf5sdk/ncs/zephyr/cmake/kconfig.cmake:200 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/nrf5sdk/ncs/zephyr/cmake/app/boilerplate.cmake:529 (include)
CMakeLists.txt:11 (include)


-- Configuring incomplete, errors occurred!
See also "C:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056/CMakeFiles/CMakeOutput.log".
See also "C:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056/CMakeFiles/CMakeError.log".
Project load failed
Reported error: solution load command failed (1)

The CMakeOutput.log contains the following information:

The target system is: Generic - 1.14.99 - arm
The host system is: Windows - 10.0.18362 - 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:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056/CMakeFiles/3.15.2/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:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056/CMakeFiles/3.15.2/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.

Performing C SOURCE FILE Test toolchain_is_ok succeeded with the following output:
Change Dir: C:/nrf5sdk/ncs/nrf/applications/asset_tracker/build_nrf52840_pca10056/CMakeFiles/CMakeTmp

Run Build Command(s):C:/ProgramData/chocolatey/bin/ninja.exe cmTC_8cbfe && [1/2] Building C object CMakeFiles/cmTC_8cbfe.dir/src.c.obj
[2/2] Linking C executable cmTC_8cbfe
c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008000


Source file was:
int main(void) { return 0; }

And the CMakeError.log contains:

Compiling the C compiler identification source file "CMakeCCompilerId.c" 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


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

I'm fairly new to this toolchain so I'm not entirely sure what's going on at this point. Everything was installed by following the instructions found at https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_ins_windows.htm.

One other thing I keep getting is this notification every time I load Segger:

I'm not sure if it is related in any way to the issue above.

Any advice is much appreciated.

Parents Reply Children
No Data
Related