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

Parents
  • Hi

    I really appreciate you trying to help

    all the extensions installed

    I tried to build from terminal as well

    PS C:\NordicStaff\myapps\blinky> west build -b nrf9160dk_nrf9160_ns -d build
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/v1.8.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/NordicStaff/myapps/blinky
    -- Using NCS Toolchain 1.8.0 for building. (C:/v1.8.0/toolchain/cmake)
    -- 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:/NordicStaff/myapps/blinky/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/NordicStaff/myapps/blinky/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/NordicStaff/myapps/blinky/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/prj.conf'
    Configuration saved to 'C:/NordicStaff/myapps/blinky/build/zephyr/.config'
    Kconfig header saved to 'C:/NordicStaff/myapps/blinky/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
    -- Using NCS Toolchain 1.8.0 for building. (C:/v1.8.0/toolchain/cmake)
    -- 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:/NordicStaff/myapps/blinky/build/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/NordicStaff/myapps/blinky/build/spm/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/NordicStaff/myapps/blinky/build/spm/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/NordicStaff/myapps/blinky/build/spm/zephyr/.config'
    Kconfig header saved to 'C:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/build
    -- 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:\v1.8.0\toolchain\opt\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:\NordicStaff\myapps\blinky\build\spm\modules\nrfxlib\nrfxlib\nrf_security\src && C:\v1.8.0\toolchain\opt\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.
    ninja: build stopped: subcommand failed.
    [9/174] 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
    cmd.exe /C "cd /D C:\NordicStaff\myapps\blinky\build\spm && C:\v1.8.0\toolchain\opt\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\v1.8.0\toolchain\opt\bin\cmake.EXE' --build 'C:\NordicStaff\myapps\blinky\build'
    PS C:\NordicStaff\myapps\blinky>

      I have the latest nRF tools

    I think maybe the main problem is because of this "'cmd.exe' is not recognized as an internal or external command,
    operable program or batch file.
    ninja: build stopped: subcommand failed."

    not sure

    environment variable looks ok

    Really don't know what to do...

    I think I will abandon VScode and use Segger instead Disappointed

Reply
  • Hi

    I really appreciate you trying to help

    all the extensions installed

    I tried to build from terminal as well

    PS C:\NordicStaff\myapps\blinky> west build -b nrf9160dk_nrf9160_ns -d build
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/v1.8.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/NordicStaff/myapps/blinky
    -- Using NCS Toolchain 1.8.0 for building. (C:/v1.8.0/toolchain/cmake)
    -- 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:/NordicStaff/myapps/blinky/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/NordicStaff/myapps/blinky/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/NordicStaff/myapps/blinky/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/prj.conf'
    Configuration saved to 'C:/NordicStaff/myapps/blinky/build/zephyr/.config'
    Kconfig header saved to 'C:/NordicStaff/myapps/blinky/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
    -- Using NCS Toolchain 1.8.0 for building. (C:/v1.8.0/toolchain/cmake)
    -- 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:/NordicStaff/myapps/blinky/build/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/NordicStaff/myapps/blinky/build/spm/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/NordicStaff/myapps/blinky/build/spm/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/NordicStaff/myapps/blinky/build/spm/zephyr/.config'
    Kconfig header saved to 'C:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/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:/NordicStaff/myapps/blinky/build
    -- 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:\v1.8.0\toolchain\opt\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:\NordicStaff\myapps\blinky\build\spm\modules\nrfxlib\nrfxlib\nrf_security\src && C:\v1.8.0\toolchain\opt\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.
    ninja: build stopped: subcommand failed.
    [9/174] 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
    cmd.exe /C "cd /D C:\NordicStaff\myapps\blinky\build\spm && C:\v1.8.0\toolchain\opt\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\v1.8.0\toolchain\opt\bin\cmake.EXE' --build 'C:\NordicStaff\myapps\blinky\build'
    PS C:\NordicStaff\myapps\blinky>

      I have the latest nRF tools

    I think maybe the main problem is because of this "'cmd.exe' is not recognized as an internal or external command,
    operable program or batch file.
    ninja: build stopped: subcommand failed."

    not sure

    environment variable looks ok

    Really don't know what to do...

    I think I will abandon VScode and use Segger instead Disappointed

Children
No Data
Related