Hi there,
I am able to build asset tracker v2 from source using todays main branch from github. But when I flash the app_signed.hex through nRF Connect for Desktop v3.12.1 with Programmer v3.0.4 to my Thingy:91 the LED doesn't turn on and I can't sent commands to it via LET link monitor.
(nRF) [14:10:59] carl@Carls-MacBook-Pro ~/nordic/ncs/nrf/applications/asset_tracker_v2 main west build --pristine -b nrf9160dk_nrf9160_ns
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.overlay
-- Generated zephyr.dts: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/dts.cmake
Parsing /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/Kconfig
Loaded configuration '/Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
Merged configuration '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/prj.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.conf'
Configuration saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/.config'
Kconfig header saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/carl/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/carl/nordic/ncs/zephyr/CMakeLists.txt:137 (message):
The environment variable 'CPPFLAGS' was set to
-I/opt/homebrew/opt/llvm/include, but Zephyr ignores flags from the
environment. Use 'cmake -DEXTRA_CPPFLAGS=-I/opt/homebrew/opt/llvm/include'
instead.
CMake Warning at /Users/carl/nordic/ncs/zephyr/CMakeLists.txt:137 (message):
The environment variable 'LDFLAGS' was set to -L/opt/homebrew/opt/llvm/lib,
but Zephyr ignores flags from the environment. Use 'cmake
-DEXTRA_LDFLAGS=-L/opt/homebrew/opt/llvm/lib' instead.
Changed board to secure nrf9160dk_nrf9160 (NOT NS)
=== child image b0 - begin ===
loading initial cache file /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/carl/nordic/ncs/nrf/samples/bootloader
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Found host-tools: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Generated zephyr.dts: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/zephyr/dts.cmake
Parsing /Users/carl/nordic/ncs/zephyr/Kconfig
Loaded configuration '/Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration '/Users/carl/nordic/ncs/nrf/samples/bootloader/prj.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/zephyr/.config'
Kconfig header saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/carl/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /Users/carl/nordic/ncs/nrf/subsys/bootloader/CMakeLists.txt:21 (message):
--------------------------------------------------------
--- WARNING: When using the immutable bootloader on ---
--- this SoC, the UICR must be erased when flashing. ---
--- E.g. by calling 'west flash --erase' ---
--------------------------------------------------------
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/b0
=== child image b0 - end ===
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found version "3.9.13") found components: Interpreter
Changed board to secure nrf9160dk_nrf9160 (NOT NS)
=== child image mcuboot - begin ===
loading initial cache file /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Found host-tools: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: /Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/dts.cmake
Parsing /Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration '/Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/bootloader/image/fw_info.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/bootloader/image/build_s1.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/modules/mcuboot/tfm.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/.config'
Kconfig header saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/carl/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /Users/carl/nordic/ncs/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot
=== child image mcuboot - end ===
Changed board to secure nrf9160dk_nrf9160 (NOT NS)
=== child image s1_image - begin ===
loading initial cache file /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Found host-tools: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: /Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/dts.cmake
Parsing /Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration '/Users/carl/nordic/ncs/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/bootloader/image/fw_info.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/bootloader/image/build_s1.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/modules/mcuboot/tfm.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/.config'
Kconfig header saved to '/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/carl/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /Users/carl/nordic/ncs/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/s1_image
=== child image s1_image - end ===
CMake Warning at /Users/carl/nordic/ncs/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
---------------------------------------------------------
--- WARNING: Using default MCUBoot key, it should not ---
--- be used for production. ---
---------------------------------------------------------
CMake Warning at /Users/carl/nordic/ncs/zephyr/CMakeLists.txt:1818 (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/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build
-- west build: building application
[0/442] Generating signing key
[2/442] Preparing syscall dependency handling
[13/442] Generating extra provision key files
[22/442] Generating include/generated/version.h
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr), build: v3.1.99-ncs1-2767-g78a9e8effce0
[68/442] Performing build step for 'b0_subimage'
[1/167] Preparing syscall dependency handling
[2/167] Generating include/generated/version.h
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr), build: v3.1.99-ncs1-2767-g78a9e8effce0
[157/167] Linking C executable zephyr/zephyr_pre0.elf
[161/167] Linking C executable zephyr/zephyr_pre1.elf
[167/167] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 22816 B 32 KB 69.63%
SRAM: 37280 B 211736 B 17.61%
IDT_LIST: 0 GB 2 KB 0.00%
[75/442] Generating ../../tfm/CMakeCache.txt
-- The C compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/carl/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found version "3.9.13") found components: Interpreter
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/tfm
[81/442] Creating public key from private key used for signing
[84/442] Performing build step for 'mcuboot_subimage'
[1/192] Preparing syscall dependency handling
[2/192] Generating include/generated/version.h
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr), build: v3.1.99-ncs1-2767-g78a9e8effce0
[182/192] Linking C executable zephyr/zephyr_pre0.elf
[186/192] Linking C executable zephyr/zephyr_pre1.elf
[192/192] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 33904 B 48 KB 68.98%
SRAM: 18512 B 211736 B 8.74%
IDT_LIST: 0 GB 2 KB 0.00%
[86/442] Creating data to be provisioned to the Bootloader, storing to provision.hex
[88/442] Performing build step for 's1_image_subimage'
[1/192] Preparing syscall dependency handling
[3/192] Generating include/generated/version.h
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr), build: v3.1.99-ncs1-2767-g78a9e8effce0
[182/192] Linking C executable zephyr/zephyr_pre0.elf
[186/192] Linking C executable zephyr/zephyr_pre1.elf
[192/192] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 33904 B 48 KB 68.98%
SRAM: 18512 B 211736 B 8.74%
IDT_LIST: 0 GB 2 KB 0.00%
[92/442] Creating signature of application
[95/442] Creating signature of application
[96/442] Creating validation for zephyr.hex, storing to
[97/442] Creating validation for zephyr.hex, storing to
[98/442] Performing build step for 'tfm'
[1/2] Re-running CMake...
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found version "3.9.13") found components: Interpreter
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/tfm
[171/171] Linking C static library secure_fw/libtfm_s_veneers.a
[99/442] Generating ../../zephyr/signed_by_mcuboot_and_b0_s0_image_update.bin
sign the payload
[100/442] Generating ../../zephyr/signed_by_mcuboot_and_b0_s0_image_signed.hex
sign the payload
[102/442] Generating ../../zephyr/signed_by_mcuboot_and_b0_s1_image_update.bin
sign the payload
[103/442] Generating ../../zephyr/signed_by_mcuboot_and_b0_s0_image_test_update.hex
sign the payload
[105/442] Generating ../../zephyr/signed_by_mcuboot_and_b0_s1_image_signed.hex
sign the payload
[106/442] Generating ../../zephyr/signed_by_mcuboot_and_b0_s1_image_test_update.hex
sign the payload
[109/442] Performing install step for 'tfm'
-- Install configuration: "MinSizeRel"
[421/442] Linking C executable zephyr/zephyr_pre0.elf
[425/442] Linking C executable zephyr/zephyr_pre1.elf
[431/442] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 246120 B 392704 B 62.67%
SRAM: 128344 B 211736 B 60.62%
IDT_LIST: 0 GB 2 KB 0.00%
[437/442] Generating ../../zephyr/app_update.bin
sign the payload
[439/442] Generating ../../zephyr/app_signed.hex
sign the payload
[440/442] Generating ../../zephyr/app_test_update.hex
sign the payload
[442/442] Generating zephyr/merged.hex
I tried switching to the git tag v2.1.0 as this matches the latest prebuilt binary from here that works when I flash it to my device through nRF Connect for Desktop v3.12.1 with Programmer v3.0.4. But when trying to build from the git repo with tag v2.1.0 I get the following error:
(nRF) [14:24:36] carl@Carls-MacBook-Pro ~/nordic/ncs/nrf/applications/asset_tracker_v2 ➦ 7a358cb7e west build --pristine -b nrf9160dk_nrf9160_ns
-- west build: making build dir /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2
-- Found Python3: /Users/carl/miniforge3/envs/nRF/bin/python3.9 (found suitable exact version "3.9.13") found components: Interpreter
-- Cache files will be written to: /Users/carl/Library/Caches/zephyr
-- Zephyr version: 3.2.0-rc3 (/Users/carl/nordic/ncs/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found toolchain: zephyr 0.15.1 (/Users/carl/zephyr-sdk-0.15.1)
-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found BOARD.dts: /Users/carl/nordic/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.overlay
-- Generated zephyr.dts: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build/zephyr/dts.cmake
Parsing /Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/Kconfig
/Users/carl/nordic/ncs/zephyr/scripts/kconfig/kconfig.py: /Users/carl/nordic/ncs/nrf/subsys/nonsecure/Kconfig:89: '/Users/carl/nordic/ncs/zephyr/modules/hal_nordic/Kconfig.dt' not found (in 'rsource "${ZEPHYR_BASE}/modules/hal_nordic/Kconfig.dt"'). Check that environment variables are set correctly (e.g. $srctree, which is set to '/Users/carl/nordic/ncs/zephyr'). Also note that unset environment variables expand to the empty string.
CMake Error at /Users/carl/nordic/ncs/zephyr/cmake/modules/kconfig.cmake:326 (message):
command failed with return code: 1
Call Stack (most recent call first):
/Users/carl/nordic/ncs/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
/Users/carl/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/Users/carl/nordic/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:9 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/Users/carl/miniforge3/envs/nRF/bin/python3.9 -B/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2/build -GNinja -DBOARD=nrf9160dk_nrf9160_ns -S/Users/carl/nordic/ncs/nrf/applications/asset_tracker_v2
I would be very grateful for help with either of these issues.
Thanks