Problem with building a sample app at vscode

Hi,

I've installed all by the book watching the installation videos and I have a problem building in VScode

when I try to build with nrf connect app window I get this error

when I try to build from terminal I get this error

PS C:\Users\OfirA\Documents\NordicStaff\Apps\FirstTry> west build -b nrf9160dk_nrf9160_ns -d buildings
-- west build: generating a build system
Including boilerplate (Zephyr base): C:/Users/OfirA/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry
-- Using NCS Toolchain 1.8.0 for building. (C:/Users/OfirA/ncs/v1.8.0/toolchain/cmake)
-- Zephyr version: 2.7.0 (C:/Users/OfirA/ncs/v1.8.0/zephyr), build: v2.7.0-ncs1
-- Found Python3: C:/Users/OfirA/ncs/v1.8.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
-- Cache files will be written to: C:/Users/OfirA/ncs/v1.8.0/zephyr/.cache
-- Found dtc: C:/Users/OfirA/ncs/v1.8.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/OfirA/ncs/v1.8.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/OfirA/ncs/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Generated zephyr.dts: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/zephyr/include/generated/devicetree_unfixed.h
Merged configuration 'C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/prj.conf'
Configuration saved to 'C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/zephyr/.config'
Kconfig header saved to 'C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/OfirA/ncs/v1.8.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
Changed board to secure nrf9160dk_nrf9160 (NOT NS)

=== child image spm -  begin ===
Including boilerplate (Zephyr base): C:/Users/OfirA/ncs/v1.8.0/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/OfirA/ncs/v1.8.0/nrf/samples/spm
-- Using NCS Toolchain 1.8.0 for building. (C:/Users/OfirA/ncs/v1.8.0/toolchain/cmake)
-- Zephyr version: 2.7.0 (C:/Users/OfirA/ncs/v1.8.0/zephyr), build: v2.7.0-ncs1
-- Found Python3: C:/Users/OfirA/ncs/v1.8.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160, Revision: 0.7.0
-- Cache files will be written to: C:/Users/OfirA/ncs/v1.8.0/zephyr/.cache
-- Found dtc: C:/Users/OfirA/ncs/v1.8.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/OfirA/ncs/v1.8.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/OfirA/ncs/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: C:/Users/OfirA/ncs/v1.8.0/nrf/samples/spm/nrf9160dk_nrf9160.overlay
-- Generated zephyr.dts: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/dts.cmake
Parsing C:/Users/OfirA/ncs/v1.8.0/zephyr/Kconfig
Loaded configuration 'C:/Users/OfirA/ncs/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration 'C:/Users/OfirA/ncs/v1.8.0/nrf/samples/spm/prj.conf'
Merged configuration 'C:/Users/OfirA/ncs/v1.8.0/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf'
Merged configuration 'C:/Users/OfirA/ncs/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/.config'
Kconfig header saved to 'C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/OfirA/ncs/v1.8.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
CMake Warning at C:/Users/OfirA/ncs/v1.8.0/zephyr/CMakeLists.txt:1662 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings/spm
=== child image spm -  end ===

Dropping partition 'nrf_modem_lib_trace' since its size is 0.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/OfirA/Documents/NordicStaff/Apps/FirstTry/buildings
-- west build: building application
[5/174] Performing build step for 'spm_subimage'
[57/218] Linking C static library modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a
FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/libmbedcrypto.a
cmd.exe /C "cd . && C:\Users\OfirA\ncs\v1.8.0\toolchain\opt\bin\cmake.exe -E rm -f modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a && C:\Users\OfirA\ncs\v1.8.0\toolchain\opt\bin\arm-none-eabi-ar.exe qc modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a  @CMakeFiles\mbedcrypto.rsp && C:\Users\OfirA\ncs\v1.8.0\toolchain\opt\bin\arm-none-eabi-ranlib.exe modules\nrfxlib\nrfxlib\nrf_security\src\libmbedninja: build stopped: subcommand failed.                                                                [9/174] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h                                FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a
ninja: build stopped: subcommand failed.[9/174] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a cmd.exe /C "cd /D C:\Users\OfirA\Documents\NordicStaff\Apps\FirstTry\buildings\spm && C:\Users\OfirA\ncs\v1.8.0\toolchain\opt\bin\cmake.exe --build . --"       
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\Users\OfirA\ncs\v1.8.0\toolchain\opt\bin\cmake.EXE' --build 'C:\Users\OfirA\Documents\NordicStaff\Apps\FirstTry\buildings'
PS C:\Users\OfirA\Documents\NordicStaff\Apps\FirstTry>

when I try to generate support information I get this error

any suggestion how can I solve this?

Thanks

  • a little update

    I reinstalled all

    now i have this :

    > Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for c:\nordic\First <
    
    Building First
    west build --build-dir c:\nordic\First\build c:\nordic\First --pristine --board nrf9160dk_nrf9160_ns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y
    
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/v1.8.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/nordic/First
    -- Zephyr version: 2.7.0 (C:/v1.8.0/zephyr), build: v2.7.0-ncs1
    -- Found Python3: C:/v1.8.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Cache files will be written to: C:/v1.8.0/zephyr/.cache
    -- Found dtc: C:/v1.8.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/v1.8.0/toolchain/opt)
    -- Found BOARD.dts: C:/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Generated zephyr.dts: C:/nordic/First/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/nordic/First/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/nordic/First/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/nordic/First/build/zephyr/dts.cmake
    Parsing C:/v1.8.0/zephyr/Kconfig
    Loaded configuration 'C:/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/nordic/First/prj.conf'
    Merged configuration 'C:/nordic/First/build/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/nordic/First/build/zephyr/.config'
    Kconfig header saved to 'C:/nordic/First/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/v1.8.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image spm -  begin ===
    Including boilerplate (Zephyr base): C:/v1.8.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/v1.8.0/nrf/samples/spm
    -- Zephyr version: 2.7.0 (C:/v1.8.0/zephyr), build: v2.7.0-ncs1
    -- Found Python3: C:/v1.8.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
    -- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Cache files will be written to: C:/v1.8.0/zephyr/.cache
    -- Found dtc: C:/v1.8.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:/v1.8.0/toolchain/opt)
    -- Found BOARD.dts: C:/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: C:/v1.8.0/nrf/samples/spm/nrf9160dk_nrf9160.overlay
    -- Generated zephyr.dts: C:/nordic/First/build/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/nordic/First/build/spm/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/nordic/First/build/spm/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/nordic/First/build/spm/zephyr/dts.cmake
    Parsing C:/v1.8.0/zephyr/Kconfig
    Loaded configuration 'C:/v1.8.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'C:/v1.8.0/nrf/samples/spm/prj.conf'
    Merged configuration 'C:/v1.8.0/nrf/samples/spm/boards/nrf9160dk_nrf9160.conf'
    Merged configuration 'C:/v1.8.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/nordic/First/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/nordic/First/build/spm/zephyr/.config'
    Kconfig header saved to 'C:/nordic/First/build/spm/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/v1.8.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    CMake Warning at C:\v1.8.0\zephyr\CMakeLists.txt:1662 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/First/build/spm
    === child image spm -  end ===
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/First/build
    -- west build: building application
    [1/175] Creating directories for 'spm_subimage'
    [2/175] No download step for 'spm_subimage'
    [3/175] No update step for 'spm_subimage'
    [4/175] No patch step for 'spm_subimage'
    [5/175] No configure step for 'spm_subimage'
    [5/175] Performing build step for 'spm_subimage'
    [1/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/aria.c.obj
    [2/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/blowfish.c.obj
    [3/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/camellia.c.obj
    [4/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/base64.c.obj
    [5/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/ctr_drbg.c.obj
    [6/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/asn1write.c.obj
    [7/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/asn1parse.c.obj
    [8/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/error.c.obj
    [9/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/entropy_poll.c.obj
    [10/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/des.c.obj
    [11/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/cipher_wrap.c.obj
    [12/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/debug.c.obj
    [13/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/cipher.c.obj
    [14/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/entropy.c.obj
    [15/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/havege.c.obj
    [16/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/gcm.c.obj
    [17/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/hkdf.c.obj
    [18/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/md2.c.obj
    [19/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/nist_kw.c.obj
    [20/218] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [21/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/md5.c.obj
    [22/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/md.c.obj
    [23/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/hmac_drbg.c.obj
    [24/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/md4.c.obj
    [25/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/pkcs12.c.obj
    [26/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/padlock.c.obj
    [27/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/pk_wrap.c.obj
    [28/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/pk.c.obj
    [29/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/pkcs5.c.obj
    [30/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/pkparse.c.obj
    [31/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/pkwrite.c.obj
    [32/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/oid.c.obj
    [33/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/ripemd160.c.obj
    [34/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/platform.c.obj
    [35/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/platform_util.c.obj
    [36/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/version.c.obj
    [37/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto.c.obj
    [38/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/xtea.c.obj
    [39/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto_slot_management.c.obj
    [40/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/bignum.c.obj
    [41/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/version_features.c.obj
    [42/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/timing.c.obj
    [43/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto_storage.c.obj
    [44/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto_driver_wrappers.c.obj
    [45/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto_client.c.obj
    [46/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto_rsa.c.obj
    [47/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/psa_crypto_ecp.c.obj
    [48/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/aesni.c.obj
    [49/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/replacements/pem.c.obj
    [50/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/mbedcrypto_base_vanilla.dir/C_/v1.8.0/mbedtls/library/arc4.c.obj
    [51/218] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [52/218] Generating include/generated/driver-validation.h
    [53/218] Generating objects/cc3xx.mon
    [54/218] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/mbedtls/shared/CMakeFiles/mbedcrypto_shared.dir/C_/v1.8.0/mbedtls/library/sha512.c.obj
    [55/218] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [56/218] Linking C static library modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a
    FAILED: modules/nrfxlib/nrfxlib/nrf_security/src/libmbedcrypto.a 
    cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E rm -f modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a && C:\v1.8.0\toolchain\opt\bin\arm-none-eabi-ar.exe qc modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a  @CMakeFiles\mbedcrypto.rsp && C:\v1.8.0\toolchain\opt\bin\arm-none-eabi-ranlib.exe modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a && cmd.exe /C "cd /D C:\nordic\First\build\spm\modules\nrfxlib\nrfxlib\nrf_security\src && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_AR=C:/v1.8.0/toolchain/opt/bin/arm-none-eabi-ar.exe -DLIBRARY=C:/nordic/First/build/spm/modules/nrfxlib/nrfxlib/nrf_security/src/libmbedcrypto.a -DFOLDER=C:/nordic/First/build/spm/modules/nrfxlib/nrfxlib/nrf_security/src/objects/cc3xx -P C:/v1.8.0/nrfxlib/nrf_security/cmake/archive_folder.cmake""
    'cmd.exe' is not recognized as an internal or external command,
    operable program or batch file.
    [57/218] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    ninja: build stopped: subcommand failed.
    [9/175] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a C:/nordic/First/build/modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build C:/nordic/First/build/spm/zephyr/zephyr.hex C:/nordic/First/build/spm/zephyr/zephyr.elf C:/nordic/First/build/spm/libspmsecureentries.a 
    cmd.exe /C "cd /D C:\nordic\First\build\spm && "C:\Program Files\CMake\bin\cmake.exe" --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'c:\nordic\First\build'
    The terminal process terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.

    on the output

    [2/14/2022, 9:07:39 AM] "${workspaceFolder}/build/compile_commands.json" could not be found. 'includePath' from c_cpp_properties.json in folder 'First' will be used instead.
    and on problems
    any suggestion now?
  • Hi,

    Could you tell me the path where your project folder is and also which project you are trying to implement?

    Are you using an nRF9160 DK?

    Regards,

    Priyanka

  • Hi,

    Any project that I try to build it happens, this one specific was Blinky I think (tried many different projects)
    I'm using nRF916 DK

    Path for the building project is : C:\NordicStaff\myapps

    Path for nRF SDK is : C:\v1.8.0

    Thanks,

  • Hi,

    When you create a new sample, do you select the "Create a new application from sample"?

    This should lead you to a page , which should look somewhat as below:

    Kindly verify whether you do these similar steps.

    Regards,

    Priyanka

  • yes thats what i'm doing

     && C:\v1.8.0\toolchain\opt\bin\arm-none-eabi-ranlib.exe modules\nrfxlib\nrfxlib\nrf_security\src\libmbedcrypto.a && cmd.exe /C "cd /D C:\NordicStaff\myapps\blinky\build\spm\modules\nrfxlib\nrfxlib\nrf_security\src && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_AR=C:/v1.8.0/toolchain/opt/bin/arm-none-eabi-ar.exe -DLIBRARY=C:/NordicStaff/myapps/blinky/build/spm/modules/nrfxlib/nrfxlib/nrf_security/src/libmbedcrypto.a -DFOLDER=C:/NordicStaff/myapps/blinky/build/spm/modules/nrfxlib/nrfxlib/nrf_security/src/objects/cc3xx -P C:/v1.8.0/nrfxlib/nrf_security/cmake/archive_folder.cmake""
    'cmd.exe' is not recognized as an internal or external command,
    operable program or batch file.
    [53/218] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    ninja: build stopped: subcommand failed.
    [6/175] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    FAILED: modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build spm/zephyr/zephyr.hex spm/zephyr/zephyr.elf spm/libspmsecureentries.a C:/NordicStaff/myapps/blinky/build/modules/nrf/samples/spm_subimage-prefix/src/spm_subimage-stamp/spm_subimage-build C:/NordicStaff/myapps/blinky/build/spm/zephyr/zephyr.hex C:/NordicStaff/myapps/blinky/build/spm/zephyr/zephyr.elf C:/NordicStaff/myapps/blinky/build/spm/libspmsecureentries.a 
    cmd.exe /C "cd /D C:\NordicStaff\myapps\blinky\build\spm && "C:\Program Files\CMake\bin\cmake.exe" --build . --"
    [8/175] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [9/175] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [10/175] Generating include/generated/driver-validation.h
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'c:\NordicStaff\myapps\blinky\build'
    The terminal process terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.

Related