Serial lTE Modem example: FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\NTMK1\Documents\Project\Apps\serial_lte_modem\build'

Hi,

I am trying to build the Serial lTE Modem example from SDK directory C:\ncs\v2.5.1\nrf\applications\serial_lte_modem in VScode then resulting the error:

-- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.5.1/zephyr/.cache
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/tfm
[17/405] No configure step for 'tfm'
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf
cmd.exe /C "cd /D C:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem\build\mcuboot && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe --build . --"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem\build'

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

 

However, I tried different application such as tfm_hello_world and was the same I got the error:

FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\NTMK1\Documents\GunfireTracker\Apps\tfm_hello_world\build'

My SDK version is v2.5.1.

Does any software environment setup or cmake configuration being wrong?

Parents
  • Hello, 

    I'm not able to reproduce the issue. Could you please provide the output from the command nRF Connect: Generate support information? This can be triggered from the VS Code command palette. 

    My initial concern is the path of the example folder. Could you test with e.g. C:\ncs\Apps\serial_lte_modem\ ?

    Kind regards,
    Øyvind

  • This project build is based on creating a new project via copying the sample from C:/ncs/Apps/serial_lte_modem/ in VScode. 

    The complete build message from the terminal shown below.

    Please diagnose the issues as much as you can:

    Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem

    Building serial_lte_modem
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem --pristine --board nrf9160dk_nrf9160_ns --no-sysbuild --cmake-only -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONFIG_CORTEX_M_DEBUG_MONITOR_HOOK=y -DCONFIG_SEGGER_DEBUGMON=y -DEXTRA_DTC_OVERLAY_FILE=boards/nrf9160dk_nrf9160_ns.overlay -DBOARD_ROOT=c:/users/ntmk1/documents/gunfiretracker/apps/serial_lte_modem -Dmcuboot_OVERLAY_CONFIG=C:/ncs/v2.5.1/nrf/modules/mcuboot/tfm.conf;C:/ncs/v2.5.1/nrf/modules/mcuboot/fih_low_enable.conf;C:/ncs/v2.5.1/nrf/subsys/partition_manager/partition_manager_enabled.conf;C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/child_image/mcuboot.conf -DCACHED_CONF_FILE=c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/prj.conf;c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.conf"

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.1/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.1/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.14.0
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_0_14_0.overlay
    -- Found devicetree overlay: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.overlay
    -- Found devicetree overlay: boards/nrf9160dk_nrf9160_ns.overlay
    -- Generated zephyr.dts: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/dts.cmake

    warning: Experimental symbol TFTP_LIB is enabled.


    warning: Experimental symbol HTTP_CLIENT is enabled.

    Parsing C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/Kconfig
    Loaded configuration 'C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/prj.conf'
    Merged configuration 'c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)

    === child image mcuboot - begin ===
    loading initial cache file C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.1/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.1/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf9160dk_nrf9160, Revision: 0.14.0
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_0_14_0.overlay
    -- Found devicetree overlay: C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v2.5.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.5.1/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.5.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/child_image/mcuboot.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.5.1/zephyr/CMakeLists.txt:893 (message):
    No SOURCES given to Zephyr library: drivers__console

    Excluding target from build.


    MCUBoot bootloader key file: C:/ncs/v2.5.1/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot
    === child image mcuboot - end ===

    CMake Warning at C:/ncs/v2.5.1/nrf/modules/mcuboot/CMakeLists.txt:320 (message):

    ---------------------------------------------------------
    --- WARNING: Using default MCUBoot key, it should not ---
    --- be used for production. ---
    ---------------------------------------------------------

    CMake Warning at C:/ncs/v2.5.1/nrf/cmake/partition_manager.cmake:79 (message):

    ---------------------------------------------------------------------
    --- WARNING: Using a bootloader without pm_static.yml. ---
    --- There are cases where a deployed product can consist of ---
    --- multiple images, and only a subset of these images can be ---
    --- upgraded through a firmware update mechanism. In such cases, ---
    --- the upgradable images must have partitions that are static ---
    --- and are matching the partition map used by the bootloader ---
    --- programmed onto the device. ---
    ---------------------------------------------------------------------

    Call Stack (most recent call first):
    C:/ncs/v2.5.1/zephyr/cmake/modules/kernel.cmake:247 (include)
    C:/ncs/v2.5.1/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
    C:/ncs/v2.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)


    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build
    * Terminal will be reused by tasks, press any key to close it.

    * Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem

    Building serial_lte_modem
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build c:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem --pristine --board nrf9160dk_nrf9160_ns --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONFIG_CORTEX_M_DEBUG_MONITOR_HOOK=y -DCONFIG_SEGGER_DEBUGMON=y -DBOARD_ROOT=c:/users/ntmk1/documents/gunfiretracker/apps/serial_lte_modem"

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.1/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.1/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.14.0
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_0_14_0.overlay
    -- Found devicetree overlay: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.overlay
    -- Generated zephyr.dts: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/dts.cmake
    Parsing C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/Kconfig
    Loaded configuration 'C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/prj.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/zephyr/include/generated/autoconf.h'

    warning: Experimental symbol TFTP_LIB is enabled.


    warning: Experimental symbol HTTP_CLIENT is enabled.

    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)

    === child image mcuboot - begin ===
    loading initial cache file C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.20.5
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.1/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.1/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf9160dk_nrf9160, Revision: 0.14.0
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_0_14_0.overlay
    -- Found devicetree overlay: C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/dts.cmake
    Parsing C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.5.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/ncs/v2.5.1/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/ncs/v2.5.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'C:/ncs/v2.5.1/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration 'C:/ncs/v2.5.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/child_image/mcuboot.conf'
    Merged configuration 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.5.1/zephyr/CMakeLists.txt:893 (message):
    No SOURCES given to Zephyr library: drivers__console

    Excluding target from build.


    MCUBoot bootloader key file: C:/ncs/v2.5.1/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot
    === child image mcuboot - end ===

    CMake Warning at C:/ncs/v2.5.1/nrf/modules/mcuboot/CMakeLists.txt:320 (message):

    ---------------------------------------------------------
    --- WARNING: Using default MCUBoot key, it should not ---
    --- be used for production. ---
    ---------------------------------------------------------

    CMake Warning at C:/ncs/v2.5.1/nrf/cmake/partition_manager.cmake:79 (message):

    ---------------------------------------------------------------------
    --- WARNING: Using a bootloader without pm_static.yml. ---
    --- There are cases where a deployed product can consist of ---
    --- multiple images, and only a subset of these images can be ---
    --- upgraded through a firmware update mechanism. In such cases, ---
    --- the upgradable images must have partitions that are static ---
    --- and are matching the partition map used by the bootloader ---
    --- programmed onto the device. ---
    ---------------------------------------------------------------------

    Call Stack (most recent call first):
    C:/ncs/v2.5.1/zephyr/cmake/modules/kernel.cmake:247 (include)
    C:/ncs/v2.5.1/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
    C:/ncs/v2.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)


    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build
    -- west build: building application
    [2/405] Generating include/generated/version.h
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.1/zephyr), build: v3.4.99-ncs1-1
    [3/178] Generating include/generated/version.h
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.1/zephyr), build: v3.4.99-ncs1-1
    [173/178] Linking C executable zephyr\zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -fuse-ld=bfd -T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/boards/boards/arm/nrf9160dk_nrf9160/libboards__arm__nrf9160dk_nrf9160.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/flash/libdrivers__flash.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main+fp/hard" -LC:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/mcuboot/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie C:/ncs/v2.5.1/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.18.a C:/ncs/v2.5.1/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cmd.exe /C "cd /D C:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem\build\mcuboot\zephyr && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe -E true""
    'cmd.exe' is not recognized as an internal or external command,
    operable program or batch file.
    ninja: build stopped: subcommand failed.
    [12/405] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):
    Actual TF-M version is not available from Git repository. Settled to
    v1.8.0
    Call Stack (most recent call first):
    CMakeLists.txt:22 (include)


    -- Found Git: C:/ncs/toolchains/c57af46cb7/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- 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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found version "3.8.2") found components: Interpreter
    CMake Deprecation Warning at C:/ncs/v2.5.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
    'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE
    instead.
    Call Stack (most recent call first):
    C:/ncs/v2.5.1/zephyr/cmake/modules/python.cmake:16 (find_package)
    C:/ncs/v2.5.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
    C:/ncs/v2.5.1/zephyr/cmake/modules/extensions.cmake:5 (include)
    C:/ncs/v2.5.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:36 (include)


    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/NTMK1/Documents/GunfireTracker/Apps/serial_lte_modem/build/tfm
    [17/405] No configure step for 'tfm'
    FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf
    cmd.exe /C "cd /D C:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem\build\mcuboot && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\NTMK1\Documents\GunfireTracker\Apps\serial_lte_modem\build'

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

  • Hello, and thanks for providing these details. There seems to be an issue with your installation. 

    Here is the paths from you support information:

      "deviceProvider": "nrfutil",
      "tools": {
        "zephyr-sdk": "Not found",
        "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "nrfjprog": "Not found",
        "nrfutil": "Not found",
        "cmake": "Not found",
        "west": "Not found",
        "python": "Not found",
        "ninja": "Not found",
        "gperf": "Not found",
        "dtc": "Not found",
        "gn": "Not found",
        "git": "Not found",
        "gdbPath": "c:\\ncs\\toolchains\\c57af46cb7\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },

    Here is mine:

      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.1",
        "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.23.4",
        "C:\\ncs\\nrfutil.exe": "7.6.0",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\cmake.exe": "3.20.5",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\Scripts\\west.exe": "1.1.0",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\python.exe": "3.8.2",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\ninja.exe": "1.9.0",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\c57af46cb7\\opt\\bin\\gn.exe": "2122",
        "C:\\ncs\\toolchains\\c57af46cb7\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "c:\\ncs\\toolchains\\c57af46cb7\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },

    Have you installed the nRF Command Line Tools desktop tool on you computer? 

  • This might also be an issue with the toolchain installation. How did you install the SDK, through VS Code or the toolchain manager?

  • I have already installed nRF Command Line Tools version 10.24.1-x64.

  • Hi,

    I really don't know what was happened in above error. Therefore, I deleted the whole C:\ncs\ directory and re-installed the SDK v2.5.1 via toolchain manager. However, I could not make this installation again because.....

      

    Any ideal?

Reply Children
No Data
Related