Unable to build an empty app for Thingy91

Hi

I have VSCode/nrfConnect SDK 2.6.1 and I have successfully completed several projects for the nRF9160-DK.

I now want to build an app for the Thingy91.

I create a new application -> create a blank application, called empty_thingy91.

I add a build configuration:

- board thingy91_nrf9160_ns

- configuration: prj.conf

- default values for the rest

I hit "Build Configuration".

This is what I get:

* Executing task: nRF Connect: Build [pristine]: build (active)

Building empty_thingy91
west build --build-dir /home/p/repo/cbrix/nrfConnect/empty_thingy91/build /home/p/repo/cbrix/nrfConnect/empty_thingy91 --pristine --board thingy91_nrf9160_ns --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -Dmcuboot_OVERLAY_CONFIG=/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/tfm.conf;/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/fih_low_enable.conf;/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf -DCACHED_CONF_FILE=/home/p/repo/cbrix/nrfConnect/empty_thingy91/prj.conf

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/p/repo/cbrix/nrfConnect/empty_thingy91
-- CMake version: 3.29.3
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/p/.cache/zephyr
-- Zephyr version: 3.5.99 (/media/p/nuage/software/nordic/ncs/v2.6.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: thingy91_nrf9160_ns
-- Found host-tools: zephyr 0.16.4 (/home/p/zephyr-sdk-0.16.4)
-- Found toolchain: zephyr 0.16.4 (/home/p/zephyr-sdk-0.16.4)
-- Found Dtc: /home/p/zephyr-sdk-0.16.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /media/p/nuage/software/nordic/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_ns.dts
-- Generated zephyr.dts: /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/zephyr/dts.cmake
Parsing /media/p/nuage/software/nordic/ncs/v2.6.1/zephyr/Kconfig
Loaded configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_ns_defconfig'
Merged configuration '/home/p/repo/cbrix/nrfConnect/empty_thingy91/prj.conf'
Configuration saved to '/home/p/repo/cbrix/nrfConnect/empty_thingy91/build/zephyr/.config'
Kconfig header saved to '/home/p/repo/cbrix/nrfConnect/empty_thingy91/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/p/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/p/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /usr/bin/python3 (found version "3.10.12") found components: Interpreter
Changed board to secure thingy91_nrf9160 (NOT NS)

=== child image mcuboot - begin ===
loading initial cache file /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /media/p/nuage/software/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.29.3
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/p/.cache/zephyr
-- Zephyr version: 3.5.99 (/media/p/nuage/software/nordic/ncs/v2.6.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: thingy91_nrf9160
-- Found host-tools: zephyr 0.16.4 (/home/p/zephyr-sdk-0.16.4)
-- Found toolchain: zephyr 0.16.4 (/home/p/zephyr-sdk-0.16.4)
-- Found Dtc: /home/p/zephyr-sdk-0.16.4/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /media/p/nuage/software/nordic/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
-- Found devicetree overlay: /media/p/nuage/software/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/p/repo/cbrix/nrfConnect/empty_thingy91/build/mcuboot/zephyr/dts.cmake

warning: NRF_CC3XX_PLATFORM (defined at /media/p/nuage/software/nordic/ncs/v2.6.1/nrfxlib/crypto/Kconfig:25) has direct dependencies HAS_HW_NRF_CC3XX && !BUILD_WITH_TFM with value n, but is currently being y-selected by the following symbols:
- HW_CC3XX (defined at /media/p/nuage/software/nordic/ncs/v2.6.1/nrf/drivers/hw_cc3xx/Kconfig:22), with value y, direct dependencies (HAS_HW_NRF_CC310 || HAS_HW_NRF_CC312) && !TRUSTED_EXECUTION_NONSECURE && !HW_CC3XX_FORCE_ALT (value: y), and select condition (HAS_HW_NRF_CC310 || HAS_HW_NRF_CC312) && !TRUSTED_EXECUTION_NONSECURE && !HW_CC3XX_FORCE_ALT (value: y)

error: Aborting due to Kconfig warnings

Parsing /media/p/nuage/software/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig'
Merged configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf9160.conf'
Merged configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/tfm.conf'
Merged configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/fih_low_enable.conf'
Merged configuration '/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/p/repo/cbrix/nrfConnect/empty_thingy91/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
CMake Error at /media/p/nuage/software/nordic/ncs/v2.6.1/zephyr/cmake/modules/kconfig.cmake:358 (message):
command failed with return code: 1
Call Stack (most recent call first):
/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/cmake/modules/kconfig.cmake:29 (include)
/media/p/nuage/software/nordic/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
/media/p/nuage/software/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/media/p/nuage/software/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:11 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at /media/p/nuage/software/nordic/ncs/v2.6.1/nrf/cmake/multi_image.cmake:449 (message):
CMake generation for mcuboot failed, aborting. Command: 1
Call Stack (most recent call first):
/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/cmake/multi_image.cmake:178 (add_child_image_from_source)
/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/CMakeLists.txt:328 (add_child_image)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/p/repo/cbrix/nrfConnect/empty_thingy91/build -GNinja -DBOARD=thingy91_nrf9160_ns -DNCS_TOOLCHAIN_VERSION=NONE '-Dmcuboot_OVERLAY_CONFIG=/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/tfm.conf;/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/modules/mcuboot/fih_low_enable.conf;/media/p/nuage/software/nordic/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf' -DCACHED_CONF_FILE=/home/p/repo/cbrix/nrfConnect/empty_thingy91/prj.conf -S/home/p/repo/cbrix/nrfConnect/empty_thingy91

Any ideas ?

Kind regards

Peter

Related