Hey,
I try to build the bloud_client application in nRF Connected SDK v1.5.0 for Thingy:91.
I am using
west build -b thingy91_nrf9160ns -d ./buildto build.
I am using it inside the directory
.../ncs/nrf/samples/nr9160/cloud/client
I also using
source zephyr/zephyr-env.shbefore in directory
ncs
But I get this build log with the error at the end:
-- west build: generating a build system
Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/cmake/app/boilerplate.cmake
CMake Warning at /Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/cmake/app/boilerplate.cmake:76 (message):
CMake 3.19.0/3.19.1 contains a bug regarding Toolchain/compiler testing.
Consider switching to a different CMake version.
See more here:
- gitlab.kitware.com/.../21497
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:9 (find_package)
-- Application: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client
-- Zephyr version: 2.4.99 (/Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr)
-- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160ns
-- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/Applications/ARM)
-- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns.dts
thingy91_nrf9160ns.dts.pre.tmp:366.32-370.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property
thingy91_nrf9160ns.dts.pre.tmp:59.42-71.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)
thingy91_nrf9160ns.dts.pre.tmp:311.19-317.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
-- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/zephyr/include/generated/device_extern.h
Parsing /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/Kconfig
Loaded configuration '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160ns_defconfig'
Merged configuration '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/prj.conf'
Configuration saved to '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/zephyr/.config'
Kconfig header saved to '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /Applications/ARM/bin/arm-none-eabi-gcc
Changed board to secure thingy91_nrf9160 (NOT NS)
=== child image spm - begin ===
Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/cmake/app/boilerplate.cmake
CMake Warning at /Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/cmake/app/boilerplate.cmake:76 (message):
CMake 3.19.0/3.19.1 contains a bug regarding Toolchain/compiler testing.
Consider switching to a different CMake version.
See more here:
- gitlab.kitware.com/.../21497
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:8 (find_package)
-- Application: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/spm
-- Zephyr version: 2.4.99 (/Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr)
-- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160
-- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/Applications/ARM)
-- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
thingy91_nrf9160.dts.pre.tmp:59.42-71.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@50000000/kmu@39000)
thingy91_nrf9160.dts.pre.tmp:311.19-317.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@50000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@50000000/power@5000)
-- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/include/generated/device_extern.h
Parsing /Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/Kconfig
Loaded configuration '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig'
Merged configuration '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/spm/prj.conf'
Merged configuration '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/.config'
Kconfig header saved to '/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /Applications/ARM/bin/arm-none-eabi-gcc
CMake Deprecation Warning at /Users/RudolphAschmoneit/Documents/nordic/ncs/modules/lib/civetweb/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm
=== child image spm - end ===
CMake Deprecation Warning at /Users/RudolphAschmoneit/Documents/nordic/ncs/modules/lib/civetweb/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Warning at /Users/RudolphAschmoneit/Documents/nordic/ncs/zephyr/CMakeLists.txt:1357 (message):
__ASSERT() statements are globally ENABLED
Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build
-- west build: building application
[1/232] Preparing syscall dependency handling
[7/232] Performing build step for 'spm_subimage'
[1/208] Preparing syscall dependency handling
[203/208] Linking C executable zephyr/zephyr_prebuilt.elf
FAILED: zephyr/zephyr_prebuilt.elf
: && ccache /Applications/ARM/bin/arm-none-eabi-gcc zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj -o zephyr/zephyr_prebuilt.elf -Wl,-T zephyr/linker.cmd -Wl,-Map=/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr/zephyr_prebuilt.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/cortex_m/mpu/libarch__arm__core__aarch32__cortex_m__mpu.a zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a zephyr/arch/arch/arm/core/aarch32/cortex_m/tz/libarch__arm__core__aarch32__cortex_m__tz.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/boards/boards/arm/thingy91_nrf9160/lib..__nrf__boards__arm__thingy91_nrf9160.a zephyr/drivers/i2c/libdrivers__i2c.a zephyr/drivers/serial/libdrivers__serial.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/nrfxlib/nrf_security/src/mbedtls/libmbedtls_base_vanilla.a modules/hal_nordic/libmodules__hal_nordic.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"/Applications/ARM/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v8-m.main+fp/hard" -L/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/zephyr -lgcc -Wl,--print-memory-usage zephyr/arch/common/libisr_tables.a modules/nrfxlib/nrf_security/src/mbedtls/shared/libmbedcrypto_shared.a modules/nrfxlib/nrf_security/src/mbedtls/cc310/libmbedcrypto_cc3xx.a /Users/RudolphAschmoneit/Documents/nordic/ncs/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.7.a -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,--out-implib=/Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm/libspmsecureentries.a -Wl,--cmse-implib && :
Memory region Used Size Region Size %age Used
FLASH: 64 KB 48 KB 133.33%
SRAM: 8768 B 64 KB 13.38%
IDT_LIST: 88 B 2 KB 4.30/Applications/ARM/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: zephyr/zephyr_prebuilt.elf section `.gnu.sgstubs' will not fit in region `FLASH'
/Applications/ARM/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: SPM and app are sharing an SPU region. Cannot partition flash correctly into secure and non-secure. Adjust partitions sizes so they are placed in separate regions.
/Applications/ARM/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 16384 bytes
collect2: error: ld returned 1 exit status
%
ninja: build stopped: subcommand failed.
[11/232] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a
cd /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build/spm && /usr/local/Cellar/cmake/3.19.1/bin/cmake --build . --
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake --build /Users/RudolphAschmoneit/Documents/nordic/ncs/nrf/samples/nrf9160/cloud_client/build
Could somebody please help?