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

Related