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

Parents
  • Hey Peter, 

    Could you please provide the output from nRF Connect: Generate Support information in the VS code extension?

    Thanks! 


    Kind regards,
    Øyvind

  • Hi, here is the output:

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.

    For help and support, visit the Nordic DevZone at devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "linux",
    "osVersion": "#115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024",
    "osKernel": "5.15.0-105-generic",
    "vscode": "1.89.0",
    "electron": "28.2.8",
    "node": "v18.18.2"
    },
    "system": {
    "date": "2024-07-09T19:51:52.641Z",
    "vscodeRoot": "/usr/share/code/resources/app",
    "nrfConnectForDesktopInstalled": "unknown",
    "vscodeUptime": "04:17:57",
    "osUptime": "363:35:13",
    "cpu": "Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz"
    },
    "workspace": {
    "name": "nrfConnect (Workspace)",
    "workspaceFile": "/home/p/repo/cbrix/nrfConnect/nrfConnect.code-workspace",
    "folders": [
    "/home/p/repo/cbrix/nrfConnect"
    ]
    },
    "sdks": [
    {
    "version": "v2.6.1",
    "path": "/media/p/nuage/software/nordic/ncs/v2.6.1"
    }
    ],
    "activeBuild": "/home/p/repo/cbrix/nrfConnect/empty_thingy91/build",
    "apps": [
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/blinky",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/blinky/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/blinky_pwm",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/blinky_pwm/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less2_exer1",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less2_exer1/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less2_exer2",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less2_exer2/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less3_exer1",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less3_exer1/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less4_exer1",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less4_exer1/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less4_exer2",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less4_exer2/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less4_exer3",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less4_exer3/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less5_exer1",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/fund_less5_exer1/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/fund_less6_exer2",
    "buildConfigurations": []
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/blinky_thingy91",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/blinky_thingy91/build",
    "name": "build",
    "boardId": "thingy91_nrf9160_ns",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/p/repo/cbrix/nrfConnect",
    "uri": "/home/p/repo/cbrix/nrfConnect/empty_thingy91",
    "buildConfigurations": [
    {
    "id": "/home/p/repo/cbrix/nrfConnect/empty_thingy91/build",
    "name": "build",
    "boardId": "thingy91_nrf9160_ns",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    }
    ],
    "topdir": "/media/p/nuage/software/nordic/ncs/v2.6.1",
    "workspaceState": "freestanding-ready",
    "toolchains": [],
    "connectedDevices": [],
    "deviceProvider": "nrfutil",
    "tools": {
    "/home/p/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.4",
    "/opt/SEGGER/JLink/JLinkExe": "7.94b",
    "/usr/local/bin/nrfjprog": "10.24.2",
    "nrfutil": "Not found",
    "/usr/bin/cmake": "3.29.3",
    "/home/p/.local/bin/west": "1.2.0",
    "/usr/bin/python3": "3.10.12",
    "/usr/bin/ninja": "1.10.1",
    "/usr/bin/gperf": "3.1",
    "/usr/bin/dtc": "1.6.1",
    "gn": "Not found",
    "/usr/bin/git": "2.34.1",
    "gdbPath": "/home/p/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
    },
    "nrfutil": {
    "nrfutil-device": {
    "version": "2.0.0",
    "binPath": "/home/p/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64/platform/nrfutil/bin/nrfutil-device"
    },
    "nrfutil-toolchain-manager": {
    "version": "0.14.4",
    "binPath": "/home/p/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
    }
    },
    "environment": {
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "/home/p",
    "PATH": "/home/p/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin:/home/p/.sdkman/candidates/gradle/current/bin:/home/p/.sdkman/candidates/java/current/bin:/home/p/.cargo/bin:/home/p/.local/bin:/usr/share/safe-rm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/p/.local/share/JetBrains/Toolbox/scripts",
    "ZEPHYR_BASE": "/media/p/nuage/software/nordic/ncs/v2.6.1/zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "USER": "p"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "/home/p",
    "PATH": "/home/p/.sdkman/candidates/gradle/current/bin:/home/p/.sdkman/candidates/java/current/bin:/home/p/.cargo/bin:/home/p/.local/bin:/usr/share/safe-rm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/p/.local/share/JetBrains/Toolbox/scripts",
    "USER": "p"
    },
    "toolchainPath": "PATH"
    },
    "terminal": {
    "defaultProfile": null
    },
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${nrf-connect.sdk:2.6.1}",
    "toolchain": {
    "path": ""
    },
    "ozonePath": "",
    "applications": [
    "${workspaceFolder}/blinky",
    "${workspaceFolder}/blinky_pwm",
    "${workspaceFolder}/fund_less2_exer1",
    "${workspaceFolder}/fund_less2_exer2",
    "${workspaceFolder}/fund_less3_exer1",
    "${workspaceFolder}/fund_less4_exer1",
    "${workspaceFolder}/fund_less4_exer2",
    "${workspaceFolder}/fund_less4_exer3",
    "${workspaceFolder}/fund_less5_exer1",
    "${workspaceFolder}/fund_less6_exer2",
    "${workspaceFolder}/blinky_thingy91",
    "${workspaceFolder}/empty_thingy91"
    ],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig"
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "buildTerminal": {
    "condensedProgress": true
    },
    "debugging": {
    "flash": true,
    "bindings": {},
    "justMyCode": true
    },
    "activeAppFollowActiveEditor": true,
    "deviceProvider": "",
    "flash": {
    "softreset": false,
    "erase": false,
    "recover": false
    },
    "enableTelemetry": true,
    "thirdpartyIntegration": {},
    "toolchainManager": {
    "indexURL": null,
    "installDirectory": null
    },
    "nrfutil": {
    "home": null
    },
    "defaultOpenAction": "ask"
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    }
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2024.7.13",
    "path": "/home/p/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2024.3.15",
    "path": "/home/p/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.3.15",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2024.6.20",
    "path": "/home/p/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.6.20",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2024.6.20",
    "path": "/home/p/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.6.20",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": null,
    "ms-vscode.cpptools": "1.20.5",
    "ms-vscode.js-debug": "1.89.0",
    "ms-vscode.js-debug-companion": "1.1.2",
    "ms-vscode.vscode-js-profile-table": "1.0.9",
    "esbenp.prettier-vscode": "10.4.0",
    "lfs.vscode-emacs-friendly": "0.9.0",
    "ms-vscode.cmake-tools": "1.18.42",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17"
    }
    }
    }

    Kind regards

    Peter

  • I'm not able to reproduce the issue on my side. Currently running Ubuntu 24.04 -- here is my build log:

     *  Executing task: nRF Connect: Generate config thingy91_nrf9160_ns for /home/oysa/ncs/projects/empty_thingy91 
    
    Building empty_thingy91
    west build --build-dir /home/oysa/ncs/projects/empty_thingy91/build /home/oysa/ncs/projects/empty_thingy91 --pristine --board thingy91_nrf9160_ns --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/oysa/ncs/projects/empty_thingy91
    -- CMake version: 3.21.0
    -- Found Python3: /home/oysa/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/oysa/.cache/zephyr
    -- Zephyr version: 3.5.99 (/home/oysa/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.5 (/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk)
    -- Found Dtc: /home/oysa/ncs/toolchains/2be090971e/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/oysa/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_ns.dts
    -- Generated zephyr.dts: /home/oysa/ncs/projects/empty_thingy91/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/oysa/ncs/projects/empty_thingy91/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/oysa/ncs/projects/empty_thingy91/build/zephyr/dts.cmake
    Parsing /home/oysa/ncs/v2.6.1/zephyr/Kconfig
    Loaded configuration '/home/oysa/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_ns_defconfig'
    Merged configuration '/home/oysa/ncs/projects/empty_thingy91/prj.conf'
    Configuration saved to '/home/oysa/ncs/projects/empty_thingy91/build/zephyr/.config'
    Kconfig header saved to '/home/oysa/ncs/projects/empty_thingy91/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/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/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /home/oysa/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found version "3.9.18") found components: Interpreter 
    Changed board to secure thingy91_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file /home/oysa/ncs/projects/empty_thingy91/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/oysa/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: /home/oysa/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/oysa/.cache/zephyr
    -- Zephyr version: 3.5.99 (/home/oysa/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.5 (/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk)
    -- Found Dtc: /home/oysa/ncs/toolchains/2be090971e/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/oysa/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160.dts
    -- Found devicetree overlay: /home/oysa/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: /home/oysa/ncs/projects/empty_thingy91/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/oysa/ncs/projects/empty_thingy91/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/oysa/ncs/projects/empty_thingy91/build/mcuboot/zephyr/dts.cmake
    Parsing /home/oysa/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/oysa/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_nrf9160_defconfig'
    Merged configuration '/home/oysa/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/home/oysa/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf9160.conf'
    Merged configuration '/home/oysa/ncs/v2.6.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration '/home/oysa/ncs/v2.6.1/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration '/home/oysa/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/oysa/ncs/projects/empty_thingy91/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/oysa/ncs/projects/empty_thingy91/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/home/oysa/ncs/projects/empty_thingy91/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/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/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /home/oysa/ncs/toolchains/2be090971e/usr/bin/ccache
    MCUBoot bootloader key file: /home/oysa/ncs/v2.6.1/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/oysa/ncs/projects/empty_thingy91/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at /home/oysa/ncs/v2.6.1/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    -- Using ccache: /home/oysa/ncs/toolchains/2be090971e/usr/bin/ccache
    -- Found partition manager static configuration: /home/oysa/ncs/v2.6.1/nrf/boards/arm/thingy91_nrf9160/thingy91_pm_static.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    Partition 'nonsecure_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_secure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm_nonsecure' is not included in the dynamic resolving since it is statically defined.
    Partition 'tfm' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/oysa/ncs/projects/empty_thingy91/build
    -- west build: building application
    [1/259] Preparing syscall dependency handling
    
    [1/281] Preparing syscall dependency handling
    
    [9/281] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (/home/oysa/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [281/281] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       39496 B        48 KB     80.35%
                 RAM:       28056 B        32 KB     85.62%
            IDT_LIST:          0 GB        32 KB      0.00%
    [11/259] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (/home/oysa/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [14/259] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):
      Actual TF-M version is not available from Git repository.  Settled to
      v2.0.0
    Call Stack (most recent call first):
      CMakeLists.txt:22 (include)
    
    
    -- Found Git: /home/oysa/ncs/toolchains/2be090971e/usr/local/bin/git (found version "2.37.3") 
    -- 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/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /home/oysa/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found version "3.9.18") found components: Interpreter 
    CMake Deprecation Warning at /home/oysa/ncs/v2.6.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
      'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
      instead.
    Call Stack (most recent call first):
      /home/oysa/ncs/v2.6.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      /home/oysa/ncs/v2.6.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      /home/oysa/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      /home/oysa/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:38 (include)
    
    
    -- Found Python3: /home/oysa/ncs/toolchains/2be090971e/usr/local/bin/python3.9 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/oysa/.cache/zephyr
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CRYPTO_RNG_MODULE_ENABLED
        MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
        PYTHON_PREFER
    
    
    -- Build files have been written to: /home/oysa/ncs/projects/empty_thingy91/build/tfm
    [164/168] Linking C executable bin/tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       47968 B      48640 B     98.62%
                 RAM:       10416 B        32 KB     31.79%
    [24/259] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [250/259] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       38508 B       372 KB     10.11%
                 RAM:        6512 B     211608 B      3.08%
            IDT_LIST:          0 GB        32 KB      0.00%
    [254/259] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [256/259] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [257/259] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [259/259] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 
    

    And here is my support info (for comparison)

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "linux",
        "osVersion": "#36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024",
        "osKernel": "6.8.0-36-generic",
        "vscode": "1.91.0",
        "electron": "29.4.0",
        "node": "v20.9.0"
      },
      "system": {
        "date": "2024-07-10T09:30:30.750Z",
        "vscodeRoot": "/usr/share/code/resources/app",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "01:02:44",
        "osUptime": "02:24:23",
        "cpu": "Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz"
      },
      "workspace": {
        "name": "empty_thingy91",
        "workspaceFile": null,
        "folders": [
          "/home/oysa/ncs/projects/empty_thingy91"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.1",
          "path": "/home/oysa/ncs/v2.6.1"
        }
      ],
      "activeBuild": "/home/oysa/ncs/projects/empty_thingy91/build",
      "apps": [
        {
          "workspace": "/home/oysa/ncs/projects/empty_thingy91",
          "uri": "/home/oysa/ncs/projects/empty_thingy91",
          "buildConfigurations": [
            {
              "id": "/home/oysa/ncs/projects/empty_thingy91/build",
              "name": "build",
              "boardId": "thingy91_nrf9160_ns",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "/home/oysa/ncs/v2.6.1",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.1",
          "path": "/home/oysa/ncs/toolchains/2be090971e"
        },
        {
          "version": "2.6.0",
          "path": "/home/oysa/ncs/toolchains/2be090971e"
        }
      ],
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.5",
        "/opt/SEGGER/JLink/JLinkExe": "7.94e",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "nrfutil": "Not found",
        "/home/oysa/ncs/toolchains/2be090971e/usr/local/bin/cmake": "3.21.0",
        "/home/oysa/ncs/toolchains/2be090971e/usr/local/bin/west": "1.2.0",
        "/home/oysa/ncs/toolchains/2be090971e/usr/local/bin/python3": "3.9.18",
        "/home/oysa/ncs/toolchains/2be090971e/usr/local/bin/ninja": "1.10.2",
        "/home/oysa/ncs/toolchains/2be090971e/usr/bin/gperf": "3.1",
        "/home/oysa/ncs/toolchains/2be090971e/usr/bin/dtc": "1.5.0",
        "/home/oysa/ncs/toolchains/2be090971e/opt/bin/gn": "2132",
        "/home/oysa/ncs/toolchains/2be090971e/usr/local/bin/git": "2.37.3",
        "gdbPath": "/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "/home/oysa/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64/platform/nrfutil/bin/nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "/home/oysa/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "GIT_EXEC_PATH": "/home/oysa/ncs/toolchains/2be090971e/usr/local/libexec/git-core",
          "HOME": "/home/oysa",
          "PATH": "/home/oysa/ncs/toolchains/2be090971e/usr/bin:/home/oysa/ncs/toolchains/2be090971e/usr/bin:/home/oysa/ncs/toolchains/2be090971e/usr/local/bin:/home/oysa/ncs/toolchains/2be090971e/opt/bin:/home/oysa/ncs/toolchains/2be090971e/opt/nanopb/generator-bin:/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin:/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
          "ZEPHYR_BASE": "/home/oysa/ncs/v2.6.1/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk",
          "PYTHONPATH": "/home/oysa/ncs/toolchains/2be090971e/usr/local/lib/python3.9:/home/oysa/ncs/toolchains/2be090971e/usr/local/lib/python3.9/site-packages",
          "USER": "oysa"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/oysa",
          "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
          "USER": "oysa"
        },
        "toolchainPath": "/home/oysa/ncs/toolchains/2be090971e",
        "toolchainBinPath": "/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin",
        "toolchainVersion": "2.6.1"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": "${nrf-connect.toolchain:2.6.1}"
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.7.13",
            "path": "/home/oysa/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.7.13-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": null,
          "nordic-semiconductor.nrf-devicetree": null,
          "nordic-semiconductor.nrf-kconfig": null
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": null,
          "ms-vscode.js-debug": "1.91.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.9"
        }
      }
    }
    
    

    -- 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)

    From my build log
    -- Found host-tools: zephyr 0.16.5 (/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (/home/oysa/ncs/toolchains/2be090971e/opt/zephyr-sdk)

    Could there be an issue with the toolchain installation? I've installed everything through the VS Code extension

    Kind regards,
    Øyvind

  • Hi Oywind

    Thanks for having checked this, indeed after switching to ncs 2.6.0, the code builds.

    Kind regards

    Peter

Reply Children
No Data
Related