setup NCS develop environment and build ERROR occurred

When I install new NCS(findmy) vscode development enviroment in another computer(win10), I meet a strange compile Error:  Aborting due to Kconfig warnings. 

Details as follows:

===================================================================================================================

C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZRelease.conf:8: warning: attempt to assign the value 'y' to the undefined symbol FMNA

C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZRelease.conf:9: warning: attempt to assign the value 'n' to the undefined symbol FMNA_NORDIC_PRODUCT_PLAN

C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZRelease.conf:50: warning: attempt to assign the value 'y' to the undefined symbol FMNA_BATTERY_TYPE_RECHARGEABLE


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\ce3b5ff664\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/ce3b5ff664/opt/bin/python.exe '-Bc:\ncs\v2.4.1\find-my\samples\simple\build' -GNinja '-Sc:\ncs\v2.4.1\find-my\samples\simple'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

===================================================================================================================

How can I resolve this problem? Any advise is appreciate!

  • Hi Max,

    Is there any special reason you do not use latest NCS(2.9.0 now) for your development? It seems you are still on development stage.

    For the issue, I did a try on my Win10 to install NCS 2.4.1+Findmy. I can build the simple sample witout issue. You can find my Findmy installation log and compiling logs:

    chs1@csh1 MINGW64 /c/ncs/v2.4.1/nrf ((v2.4.1))
    $ cd ..
    
    chs1@csh1 MINGW64 /c/ncs/v2.4.1
    $ west config manifest.group-filter +find-my
    
    chs1@csh1 MINGW64 /c/ncs/v2.4.1
    $ west update
    === updating zephyr (zephyr):
    HEAD is now at 28a3fca7da5 [nrf fromtree] libc/picolibc: Remove -T /dev/null linker arguments
    === updating bsim (tools/bsim):
    HEAD is now at 908ffde west.yaml: Namespace all projects
    === updating hostap (modules/lib/hostap):
    HEAD is now at c54b1efd0 Remove verbose print
    === updating mcuboot (bootloader/mcuboot):   
    HEAD is now at d5d451ec [nrf noup] boot: bootutil: Fix bl_secp256r1_validate call
    === updating qcbor (modules/tee/tf-m/qcbor):
    HEAD is now at b0e7033 Make option to compile with warnings on (#162)
    === updating mbedtls (modules/crypto/mbedtls):
    HEAD is now at 829e3edc7 [nrf fromlist] psa_crypto: Fix psa_key_derivation_output_key ECC without builtin keys
    === updating nrfxlib (nrfxlib):
    HEAD is now at acf83cd8 openthread: Update prebuild libraries based on `d9abe30`
    === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    HEAD is now at f0bac9349 [nrf fromtree] platform: nordic_nrf: Add nrf9161 DK and nrf9120 SoC support
    === updating matter (modules/lib/matter):
    HEAD is now at b5fbf81913 [nrf noup] Fix generate zap sript on windows
    Synchronizing submodule url for 'third_party/nlio/repo'
    Synchronizing submodule url for 'third_party/nlassert/repo'
    Synchronizing submodule url for 'third_party/nlunit-test/repo'
    Synchronizing submodule url for 'third_party/pigweed/repo'
    === updating cjson (modules/lib/cjson):
    HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    === updating find-my (find-my):
    --- find-my: initializing
    Initialized empty Git repository in C:/ncs/v2.4.1/find-my/.git/
    --- find-my: fetching, need revision v2.4.1
    remote: Enumerating objects: 4611, done.
    remote: Counting objects: 100% (4/4), done.
    remote: Compressing objects: 100% (4/4), done.
    remote: Total 4611 (delta 0), reused 0 (delta 0), pack-reused 4607 (from 2)
    Receiving objects: 100% (4611/4611), 962.86 KiB | 5.18 MiB/s, done.
    Resolving deltas: 100% (3079/3079), done.
    From https://github.com/nrfconnect/sdk-find-my
     * tag               v2.4.1      -> FETCH_HEAD
     * [new tag]         v1.6.0      -> v1.6.0
     * [new tag]         v1.6.0-rc3  -> v1.6.0-rc3
     * [new tag]         v1.7.0      -> v1.7.0
     * [new tag]         v1.7.0-rc1  -> v1.7.0-rc1
     * [new tag]         v1.7.0-rc2  -> v1.7.0-rc2
     * [new tag]         v1.7.1      -> v1.7.1
     * [new tag]         v1.8.0      -> v1.8.0
     * [new tag]         v1.8.0-rc1  -> v1.8.0-rc1
     * [new tag]         v1.8.0-rc2  -> v1.8.0-rc2
     * [new tag]         v1.9.0      -> v1.9.0
     * [new tag]         v1.9.0-rc1  -> v1.9.0-rc1
     * [new tag]         v1.9.0-rc2  -> v1.9.0-rc2
     * [new tag]         v1.9.1      -> v1.9.1
     * [new tag]         v1.9.2      -> v1.9.2
     * [new tag]         v2.0.0      -> v2.0.0
     * [new tag]         v2.0.0-rc1  -> v2.0.0-rc1
     * [new tag]         v2.0.0-rc2  -> v2.0.0-rc2
     * [new tag]         v2.0.1      -> v2.0.1
     * [new tag]         v2.0.2      -> v2.0.2
     * [new tag]         v2.1.0      -> v2.1.0
     * [new tag]         v2.1.0-rc1  -> v2.1.0-rc1
     * [new tag]         v2.1.0-rc2  -> v2.1.0-rc2
     * [new tag]         v2.1.1      -> v2.1.1
     * [new tag]         v2.1.2      -> v2.1.2
     * [new tag]         v2.1.3      -> v2.1.3
     * [new tag]         v2.1.4      -> v2.1.4
     * [new tag]         v2.2.0      -> v2.2.0
     * [new tag]         v2.2.0-rc1  -> v2.2.0-rc1
     * [new tag]         v2.2.0-rc2  -> v2.2.0-rc2
     * [new tag]         v2.3.0      -> v2.3.0
     * [new tag]         v2.3.0-rc1  -> v2.3.0-rc1
     * [new tag]         v2.3.0-rc2  -> v2.3.0-rc2
     * [new tag]         v2.4.0      -> v2.4.0
     * [new tag]         v2.4.0-rc1  -> v2.4.0-rc1
     * [new tag]         v2.4.0-rc2  -> v2.4.0-rc2
     * [new tag]         v2.4.1      -> v2.4.1
     * [new tag]         v2.4.2      -> v2.4.2
     * [new tag]         v2.4.3      -> v2.4.3
     * [new tag]         v2.4.4      -> v2.4.4
     * [new tag]         v2.5.0      -> v2.5.0
     * [new tag]         v2.5.0-rc1  -> v2.5.0-rc1
     * [new tag]         v2.5.0-rc2  -> v2.5.0-rc2
     * [new tag]         v2.5.1      -> v2.5.1
     * [new tag]         v2.5.1-rc1  -> v2.5.1-rc1
     * [new tag]         v2.5.2      -> v2.5.2
     * [new tag]         v2.5.3      -> v2.5.3
     * [new tag]         v2.6.0      -> v2.6.0
     * [new tag]         v2.6.0-rc1  -> v2.6.0-rc1
     * [new tag]         v2.6.0-rc2  -> v2.6.0-rc2
     * [new tag]         v2.6.1      -> v2.6.1
     * [new tag]         v2.6.2      -> v2.6.2
     * [new tag]         v2.6.3      -> v2.6.3
     * [new tag]         v2.6.99-cs1 -> v2.6.99-cs1
     * [new tag]         v2.7.0      -> v2.7.0
     * [new tag]         v2.7.0-rc1  -> v2.7.0-rc1
     * [new tag]         v2.7.0-rc2  -> v2.7.0-rc2
     * [new tag]         v2.7.0-rc3  -> v2.7.0-rc3
     * [new tag]         v2.8.0      -> v2.8.0
     * [new tag]         v2.8.0-rc1  -> v2.8.0-rc1
     * [new tag]         v2.8.0-rc2  -> v2.8.0-rc2
     * [new tag]         v2.9.0      -> v2.9.0
     * [new tag]         v2.9.0-rc1  -> v2.9.0-rc1
     * [new tag]         v2.9.0-rc2  -> v2.9.0-rc2
    HEAD is now at efb1ff4 doc: releases: add release notes for v2.4.1
    HEAD is now at efb1ff4 doc: releases: add release notes for v2.4.1
    === updating azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    HEAD is now at 308c171c [nrf fromlist] Make repository a Zephyr module
    === updating cirrus (modules/hal/cirrus-logic):
    HEAD is now at 9f6b381 sdk-mcu-drivers: Added build system configs and generated files
    === updating openthread (modules/lib/openthread):
    HEAD is now at d5a6630a8 [mesh-forwarder] only mark Key ID Mode 0 and 1 as secure
    === updating cmock (test/cmock):
    HEAD is now at f65066f Merge pull request #404 from tz18/patch-1
    Synchronizing submodule url for 'vendor/c_exception'
    Synchronizing submodule url for 'vendor/unity'
    === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    HEAD is now at efd97b9 Memfault Firmware SDK 0.43.3 (Build 2200)
    === updating canopennode (modules/lib/canopennode):
    HEAD is now at dec12fa stack: map CANopenNode crc16_ccitt() to Zephyr crc16_itu_t()
    === updating chre (modules/lib/chre):
    HEAD is now at b7955c27 Merge pull request #7 from stephanosio/require_full_libcpp
    === updating cmsis (modules/hal/cmsis):
    HEAD is now at 74981bf Update DSP library for additional platforms
    === updating edtt (tools/edtt):
    HEAD is now at 64e5105 edttt_bsim: Avoid infinite exception loop
    === updating fatfs (modules/fs/fatfs):
    HEAD is now at 427159b zephyr: fix ffconf.h override use of STRINGIZE
    === updating hal_nordic (modules/hal/nordic):
    HEAD is now at 140140e nrfx: mdk: Fix handling of APPROTECT on nRF91
    === updating hal_st (modules/hal/st):
    HEAD is now at 5948f7b sensor/stmemsc: Align stmemsc i/f to v2.02
    === updating hal_wurthelektronik (modules/hal/wurthelektronik):
    HEAD is now at 24ca987 Initialized WE HAL module repository.
    === updating libmetal (modules/hal/libmetal):
    HEAD is now at efa2ace lib: update libmetal to SHA cd4fb67a4f50
    === updating liblc3 (modules/lib/liblc3):
    HEAD is now at 448f3de Merge pull request #8 from carlescufi/rename
    === updating littlefs (modules/fs/littlefs):
    HEAD is now at ca583fd Merge tag 'v2.5.0' of https://github.com/littlefs-project/littlefs into zephyr
    === updating loramac-node (modules/lib/loramac-node):
    HEAD is now at ce57712f Don't memset the TXRX buffer when radio is set to receive mode (#1345)
    === updating lvgl (modules/lib/gui/lvgl):
    HEAD is now at 1557cb3e4 zephyr: update SYS_INIT calls
    === updating lz4 (modules/lib/lz4):
    HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    HEAD is now at 0d521d8 mipi_syst_api.c: Change MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE macro.
    === updating nanopb (modules/lib/nanopb):
    HEAD is now at 42fa8b2 Merge pull request #2 from pdgendt/zephyr
    === updating net-tools (tools/net-tools):
    HEAD is now at e0828aa net-setup: Add instructions for NAT and routing
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    HEAD is now at bad9877 TEMP: Connect at the top level
    === updating open-amp (modules/lib/open-amp):
    HEAD is now at aedcc26 lib: update open-amp lib to release v2022.10.0
    === updating picolibc (modules/lib/picolibc):
    HEAD is now at 93b5d5f2a Version 1.8.1
    === updating segger (modules/debug/segger):
    HEAD is now at 4bfaf28 zephyr: use external Kconfig
    === updating tinycrypt (modules/crypto/tinycrypt):
    HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    === updating TraceRecorderSource (modules/debug/TraceRecorder):
    HEAD is now at bc839bf zephyr: update SYS_INIT calls
    === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    HEAD is now at 0f80a65 Merge pull request #6 from microbuilder/tfm17_limit_attestation
    === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    HEAD is now at 6a17330 dev-apis: platform: Increase timeout for nRF devs
    === updating uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    HEAD is now at e892019 Merge pull request #11 from rlubos/zephyr-integration
    === updating zcbor (modules/lib/zcbor):
    HEAD is now at 0556eda Update version from 0.5.99 to 0.6.0
    === updating zscilib (modules/lib/zscilib):
    HEAD is now at 0035be5 Merge pull request #45 from uLipe/feature/qrd_no_recursion
    
    chs1@csh1 MINGW64 /c/ncs/v2.4.1
    $
    Building simple
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.4.1/find-my/samples/simple/build c:/ncs/v2.4.1/find-my/samples/simple --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE"
    
    -- west build: generating a build system
    -- Build type: ZDebug
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/find-my/samples/simple
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZDebug.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/prj.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: C:/ncs/v2.4.1/nrf/modules/mcuboot/usb.overlay
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/mcuboot_ZDebug.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.4.1/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
      
    
            ----------------------------------------------------------
            --- WARNING: To maintain the integrity of secure boot, ---
            --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
            ----------------------------------------------------------
    
    
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: C:/ncs/v2.4.1/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.4.1/nrf/modules/mcuboot/CMakeLists.txt:310 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:1865 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build
    -- west build: building application
    [1/318] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [1/192] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [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:       41508 B        48 KB     84.45%
                 RAM:       17792 B       256 KB      6.79%
            IDT_LIST:          0 GB         2 KB      0.00%
    [297/318] Linking C executable zephyr\zephyr_pre0.elf
    
    [301/318] Linking C executable zephyr\zephyr_pre1.elf
    
    [310/318] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      335788 B     495104 B     67.82%
                 RAM:       62664 B       256 KB     23.90%
            IDT_LIST:          0 GB         2 KB      0.00%
    [313/318] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [315/318] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [316/318] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [318/318] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 

    Best regards,

    Charlie

  • Thanks for your reply,  I use NCS 2.4.1 because one of my projects have been build on NCS 2.4.1, and that findmy project is okay and never have these problems. but this time I change a new computer and want use the same NCS version, so error occurred on new computer environment. 

    By the way, I found one nrf5340 demo on 'cpuapp_ns" config have similar problem(same error report), but 'cpuapp' config is okay. if this case would help u ? if so, I can give more details to dig deeper.

  • Hi Max,

    I also try to build nrf5340dk_nrf5340_cpuapp_ns and it has no problem.

    chs1@csh1 MINGW64 /c/ncs/v2.4.1/find-my/samples/simple ((v2.4.4))
    $ west build -b nrf5340dk_nrf5340_cpuapp_ns -p
    -- west build: making build dir C:\ncs\v2.4.1\find-my\samples\simple\build pristine
    -- west build: generating a build system
    -- Build type: ZDebug
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/find-my/samples/simple
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp_ns
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/app_ZDebug.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/prj.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/zephyr/include/generated/autoconf.h'      
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    
    === child image hci_rpmsg - CPUNET begin ===
    loading initial cache file C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/zephyr/samples/bluetooth/hci_rpmsg
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpunet
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/zephyr/samples/bluetooth/hci_rpmsg/prj.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/child_image/hci_rpmsg.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.3.0 (C:/ncs/v2.4.1/zephyr/samples/bluetooth/hci_rpmsg)
    -- Build type:  ZDebug
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at ../../../CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/hci_rpmsg
    === child image hci_rpmsg - CPUNET end ===
    
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 
    Changed board to secure nrf5340dk_nrf5340_cpuapp (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.4.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.4.0 for building. (C:/ncs/toolchains/31f4403e35/cmake)
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr)
    -- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/ncs/v2.4.1/nrf/modules/mcuboot/usb.overlay
    -- Generated zephyr.dts: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.4.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.4.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/mcuboot_ZDebug.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.4.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: C:/ncs/v2.4.1/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at C:/ncs/v2.4.1/nrf/modules/mcuboot/CMakeLists.txt:310 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
    
    
    
    
    -- libmetal version: 1.3.0 (C:/ncs/v2.4.1/find-my/samples/simple)
    -- Build type:  ZDebug
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.3.0 (C:/ncs/v2.4.1/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:839 (message):
      No SOURCES given to Zephyr library: lib__libc__common
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.4.1/zephyr/CMakeLists.txt:1865 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Found partition manager static configuration: C:/ncs/v2.4.1/find-my/samples/common/cmake/../configuration/pm_static_nrf5340dk_nrf5340_cpuapp_ns.yml
    Partition 'settings_storage' 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.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build
    ←[92m-- west build: building application
    [1/429] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [10/429] Performing build step for 'hci_rpmsg_subimage'
    [1/229] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [217/229] Linking C executable zephyr\zephyr_pre0.elf
    
    [221/229] Linking C executable zephyr\zephyr_pre1.elf
    
    [227/229] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      158008 B       256 KB     60.28%
                 RAM:       39808 B        64 KB     60.74%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB         2 KB      0.00%
    [229/229] Generating zephyr/merged_CPUNET.hex
    [16/429] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/Program Files/Git/mingw64/bin/git.exe (found version "2.48.1.windows.1")
    -- The C compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    -- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.4.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/ncs/v2.4.1/find-my/samples/simple/build/tfm
    [22/429] Performing build step for 'mcuboot_subimage'
    [1/289] Generating include/generated/version.h
    -- Zephyr version: 3.3.99 (C:/ncs/v2.4.1/zephyr), build: v3.3.99-ncs1-2
    [279/289] Linking C executable zephyr\zephyr_pre0.elf
    
    [283/289] Linking C executable zephyr\zephyr_pre1.elf
    
    [289/289] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       43652 B        48 KB     88.81%
                 RAM:       22856 B        32 KB     69.75%
            IDT_LIST:          0 GB         2 KB      0.00%
    [25/429] Performing build step for 'tfm'
    [159/159] Linking C static library secure_fw\libtfm_s_veneers.a
    [30/429] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    [409/429] Linking C executable zephyr\zephyr_pre0.elf
    
    [413/429] Linking C executable zephyr\zephyr_pre1.elf
    
    [419/429] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      235472 B       448 KB     51.33%
                 RAM:       48808 B       416 KB     11.46%
            IDT_LIST:          0 GB         2 KB      0.00%
    [423/429] Generating ../../zephyr/app_update.bin
    image.py: sign the payload
    [425/429] Generating ../../zephyr/app_signed.hex
    image.py: sign the payload
    [426/429] Generating ../../zephyr/app_test_update.hex
    image.py: sign the payload
    [429/429] Generating zephyr/merged_domains.hex
    
    chs1@csh1 MINGW64 /c/ncs/v2.4.1/find-my/samples/simple ((v2.4.4))
    $

    Please try to clean and reinstall NCS 2.4.1+Findmy. Share the installation and building log if the issue still exist.

    Best regards,

    Charlie

  • Sorry, I made a mistake. NOT "cpuapp_ns" but "cpunet":  --board nrf5340dk_nrf5340_cpunet, use cpunet to make same error. 

    I want to find the key pointer to resolve the error, not reinstall the whole env(NCS and findmy), cause current env is okay for compiling many zephyr demo(just some specify build config is not)

  • Hi Max,

    I tried using --board nrf5340dk_nrf5340_cpunet, and no errors appeared. I assume you also don’t see the same error on your other PC setup.

    There must be something wrong with the setup on your new PC. Unfortunately, I’m not sure why this is happening, so my suggestion is to try do reinstallion

    You could also install them in a different folder and see if that helps.

    Best regards,
    Charlie

Related