I followed an instructions developer.nordicsemi.com/.../gs_assistant.html in the case of Kubuntu 20.04 and developer.nordicsemi.com/.../gs_assistant.html in the case of Windows 10 to install Segger Embedded Studio and start developing with nRF5340 PDF, but all the time I faced troubles on the last stage "Set up a project in SEGGER Embedded Studio" when I imported a project into SES (see a screenshot). Also, I attached logs for Kubuntu 20.04 and Windows 10. The errors in both cases were the same, although I tried two different OS and ways.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags:
The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.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: error: ld returned 1 exit status
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags:
The output was:
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The target system is: Generic - 2.3.0 - arm
The host system is: Linux - 5.4.0-40-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
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 "/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags: -c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuappns -DBOARD_DIR=/home/roman/nordic/ncs/zephyr/boards/arm/nrf5340pdk_nrf5340 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -B/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns -H/home/roman/nordic/ncs/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/home/roman/nordic/segger_embedded_studio/html/configure_nordic_project_menuconfig.py
Including boilerplate (Zephyr base (cached)): /home/roman/nordic/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/roman/nordic/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.3.0-rc1 (/home/roman/nordic/ncs/zephyr)
-- Board: nrf5340pdk_nrf5340_cpuappns
-- Found west: /home/roman/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb)
-- Found BOARD.dts: /home/roman/nordic/ncs/zephyr/boards/arm/nrf5340pdk_nrf5340/nrf5340pdk_nrf5340_cpuappns.dts
nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:87.42-99.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:361.19-367.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:578.31-579.5: Warning (unique_unit_address_if_enabled): /reserved-memory/image@20000000: duplicate unit-address (also used in node /reserved-memory/image_s@20000000)
also defined at nrf5340pdk_nrf5340_cpuappns.dts.pre.tmp:598.14-600.3
-- Generated zephyr.dts: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/roman/nordic/ncs/nrf/applications/asset_tracker/Kconfig
Loaded configuration '/home/roman/nordic/ncs/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/.config'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# SPDX-License-Identifier: Apache-2.0
# Folders needed for conf/mconf files (kconfig has no method of redirecting all output files).
# conf/mconf needs to be run from a different directory because of: GH-3408
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/generated)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/config)
if(KCONFIG_ROOT)
# KCONFIG_ROOT has either been specified as a CMake variable or is
# already in the CMakeCache.txt. This has precedence.
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/Kconfig)
set(KCONFIG_ROOT ${APPLICATION_SOURCE_DIR}/Kconfig)
else()
set(KCONFIG_ROOT ${ZEPHYR_BASE}/Kconfig)
endif()
set(BOARD_DEFCONFIG ${BOARD_DIR}/${BOARD}_defconfig)
set(DOTCONFIG ${PROJECT_BINARY_DIR}/.config)
set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:
The output was:
1
c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: c:/users/roman/ncs/v1.3.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.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:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags:
The output was:
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The target system is: Generic - 2.3.0 - arm
The host system is: Windows - 10.0.19041 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/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/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/CMakeFiles/3.13.4/CompilerIdC/CMakeCCompilerId.o"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Build flags:
Id flags: -c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Loading solution asset_tracker.emProject
Executing load commands
cmake -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuappns -DBOARD_DIR=C:/Users/Roman/ncs/v1.3.0/zephyr/boards/arm/nrf5340pdk_nrf5340 -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:/Users/Roman/ncs/v1.3.0/toolchain/opt -BC:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns -HC:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:/Users/Roman/ncs/v1.3.0/toolchain/segger_embedded_studio/html/configure_nordic_project_menuconfig.py
Including boilerplate (Zephyr base (cached)): C:/Users/Roman/ncs/v1.3.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker
-- Using NCS Toolchain 1.3.0 for building. (C:/Users/Roman/ncs/v1.3.0/toolchain/cmake)
-- Zephyr version: 2.3.0-rc1 (C:/Users/Roman/ncs/v1.3.0/zephyr)
-- Board: nrf5340pdk_nrf5340_cpuappns
-- Found west: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/Scripts/west.exe (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found dtc: C:/Users/Roman/ncs/v1.3.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/Roman/ncs/v1.3.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/Roman/ncs/v1.3.0/zephyr/boards/arm/nrf5340pdk_nrf5340/nrf5340pdk_nrf5340_cpuappns.dts
-- Generated zephyr.dts: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/build_nrf5340pdk_nrf5340_cpuappns/zephyr/include/generated/devicetree_unfixed.h
warning: the value '' is invalid for FLIP_INPUT (defined at C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/Kconfig:191), which has type int -- assignment ignored
warning: the value '' is invalid for TEMP_SIM_BUTTON (defined at C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/Kconfig:350), which has type int -- assignment ignored
Parsing C:/Users/Roman/ncs/v1.3.0/nrf/applications/asset_tracker/Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# SPDX-License-Identifier: Apache-2.0
# Folders needed for conf/mconf files (kconfig has no method of redirecting all output files).
# conf/mconf needs to be run from a different directory because of: GH-3408
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/generated)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/config)
if(KCONFIG_ROOT)
# KCONFIG_ROOT has either been specified as a CMake variable or is
# already in the CMakeCache.txt. This has precedence.
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/Kconfig)
set(KCONFIG_ROOT ${APPLICATION_SOURCE_DIR}/Kconfig)
else()
set(KCONFIG_ROOT ${ZEPHYR_BASE}/Kconfig)
endif()
set(BOARD_DEFCONFIG ${BOARD_DIR}/${BOARD}_defconfig)
set(DOTCONFIG ${PROJECT_BINARY_DIR}/.config)
set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt)
Can you point me what wrong is with my installation and what should I do to fix it?