This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK V1.5.0 west build -b nrf9160_nrf52840 fails

In my quest to gain access to the nor memory on the nrf9160-dk I have found what happened to the WP and HOLD signals and now external_flash_pins_routing configuration setting. To me since the nrf52840 controls the external_flash_pins_routing signal that means I need to build nrf9160_nfr52840, taking baby steps I tried the example at nRF9160 DK - nRF52840 — Zephyr Project Documentation (nordicsemi.com)  hello world with -> west build -b nrf9160dk_nrf52840  worked but west build -b [email protected] fails

D:\ncs\v1.5.0\zephyr\samples\hello_world>west build -b nrf9160dk_nrf52840
-- west build: generating a build system
Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Application: D:/ncs/v1.5.0/zephyr/samples/hello_world
-- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
-- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf52840, Revision: 0.7.0
-- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
-- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840.dts
-- Generated zephyr.dts: D:/ncs/v1.5.0/zephyr/samples/hello_world/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: D:/ncs/v1.5.0/zephyr/samples/hello_world/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: D:/ncs/v1.5.0/zephyr/samples/hello_world/build/zephyr/include/generated/device_extern.h
Parsing D:/ncs/v1.5.0/zephyr/Kconfig
Loaded configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840_defconfig'
Merged configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840_0_7_0.conf'
Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/hello_world/prj.conf'
Configuration saved to 'D:/ncs/v1.5.0/zephyr/samples/hello_world/build/zephyr/.config'
Kconfig header saved to 'D:/ncs/v1.5.0/zephyr/samples/hello_world/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: D:/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: D:/ncs/v1.5.0/zephyr/samples/hello_world/build
-- west build: building application
[138/143] Linking C executable zephyr\zephyr_prebuilt.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       19968 B         1 MB      1.90%
            SRAM:        5824 B       256 KB      2.22%
        IDT_LIST:          72 B         2 KB      3.52%
[143/143] Linking C executable zephyr\zephyr.elf


D:\ncs\v1.5.0\zephyr\samples\hello_world>west build -b [email protected] --pristine
-- west build: making build dir D:\ncs\v1.5.0\zephyr\samples\hello_world\build pristine
-- west build: generating a build system
Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Application: D:/ncs/v1.5.0/zephyr/samples/hello_world
-- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
-- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
-- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf52840, Revision: 0.15.0 (Active: 0.14.0)
-- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
-- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840.dts
-- Found devicetree overlay: D:/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf52840/nrf9160dk_nrf52840_0_14_0.overlay
Error: nrf9160dk_nrf52840.dts.pre.tmp:544.9-10 syntax error
FATAL ERROR: Unable to parse input tree
CMake Error at D:/ncs/v1.5.0/zephyr/cmake/dts.cmake:205 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:533 (include)
  D:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  D:/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'D:\ncs\v1.5.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\ncs\v1.5.0\toolchain\opt\bin\python.exe' '-BD:\ncs\v1.5.0\zephyr\samples\hello_world\build' '-SD:\ncs\v1.5.0\zephyr\samples\hello_world' -GNinja [email protected]

D:\ncs\v1.5.0\zephyr\samples\hello_world>

Next was blinky, complete failure with or without version.

At any rate, since I can't use version I can't get nrf9160dk_nrf52840_0_14_0.overlay to be used and I can't get

        external_flash_pins_routing: switch-ext-mem-ctrl {
            compatible = "nordic,nrf9160dk-optional-routing";
            control-gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
            status = "ok";

I would love to use nrf9160dk_nrf52840_defconfig to set external_flash_pins_routing but I've no idea what it is called in deconfig

Parents
  • Yep, that didn't work either:

    D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash>west build -b nrf5340dk_nrf5340_cpuappns --pristine
    -- west build: making build dir D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\build pristine
    -- west build: generating a build system
    Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash
    -- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
    -- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
    -- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuappns
    -- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
    -- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
    -- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts
    -- Generated zephyr.dts: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/include/generated/device_extern.h
    Parsing D:/ncs/v1.5.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns_defconfig'
    Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/prj.conf'
    Configuration saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/.config'
    Kconfig header saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/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: D:/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    Changed board to secure nrf5340dk_nrf5340_cpuapp (NOT NS)
    
    === child image spm -  begin ===
    Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: D:/ncs/v1.5.0/nrf/samples/spm
    -- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
    -- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
    -- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
    -- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
    -- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/include/generated/device_extern.h
    Parsing D:/ncs/v1.5.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'D:/ncs/v1.5.0/nrf/samples/spm/prj.conf'
    Merged configuration 'D:/ncs/v1.5.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/.config'
    Kconfig header saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/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: D:/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm
    === child image spm -  end ===
    
    -- Configuring done
    CMake Error at ../../../cmake/extensions.cmake:416 (add_library):
      No SOURCES given to target: drivers__spi
    Call Stack (most recent call first):
      ../../../cmake/extensions.cmake:393 (zephyr_library_named)
      ../../../drivers/spi/CMakeLists.txt:3 (zephyr_library)
    
    
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    FATAL ERROR: command exited with status 1: 'D:\ncs\v1.5.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\ncs\v1.5.0\toolchain\opt\bin\python.exe' '-BD:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\build' '-SD:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuappns
    
    D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash>

    That is a "pristine" SDK.

Reply
  • Yep, that didn't work either:

    D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash>west build -b nrf5340dk_nrf5340_cpuappns --pristine
    -- west build: making build dir D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\build pristine
    -- west build: generating a build system
    Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash
    -- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
    -- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
    -- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuappns
    -- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
    -- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
    -- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts
    -- Generated zephyr.dts: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/include/generated/device_extern.h
    Parsing D:/ncs/v1.5.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns_defconfig'
    Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/prj.conf'
    Configuration saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/.config'
    Kconfig header saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/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: D:/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    Changed board to secure nrf5340dk_nrf5340_cpuapp (NOT NS)
    
    === child image spm -  begin ===
    Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: D:/ncs/v1.5.0/nrf/samples/spm
    -- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
    -- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
    -- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
    -- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
    -- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/include/generated/device_extern.h
    Parsing D:/ncs/v1.5.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'D:/ncs/v1.5.0/nrf/samples/spm/prj.conf'
    Merged configuration 'D:/ncs/v1.5.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm/zephyr/.config'
    Kconfig header saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/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: D:/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/spm
    === child image spm -  end ===
    
    -- Configuring done
    CMake Error at ../../../cmake/extensions.cmake:416 (add_library):
      No SOURCES given to target: drivers__spi
    Call Stack (most recent call first):
      ../../../cmake/extensions.cmake:393 (zephyr_library_named)
      ../../../drivers/spi/CMakeLists.txt:3 (zephyr_library)
    
    
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    FATAL ERROR: command exited with status 1: 'D:\ncs\v1.5.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\ncs\v1.5.0\toolchain\opt\bin\python.exe' '-BD:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\build' '-SD:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuappns
    
    D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash>

    That is a "pristine" SDK.

Children
  • The SDK is ok:

    D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash>west build -b circuitdojo_feather_nrf9160 --pristine
    -- west build: making build dir D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash\build pristine
    -- west build: generating a build system
    Including boilerplate (Zephyr base): D:/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
    -- Application: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash
    -- Using NCS Toolchain 1.5.0 for building. (D:/ncs/v1.5.0/toolchain/cmake)
    -- Zephyr version: 2.4.99 (D:/ncs/v1.5.0/zephyr)
    -- Found Python3: D:/ncs/v1.5.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: circuitdojo_feather_nrf9160
    -- Cache files will be written to: D:/ncs/v1.5.0/zephyr/.cache
    -- Found dtc: D:/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (D:/ncs/v1.5.0/toolchain/opt)
    -- Found BOARD.dts: D:/ncs/v1.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
    -- Generated zephyr.dts: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/include/generated/device_extern.h
    Parsing D:/ncs/v1.5.0/zephyr/Kconfig
    Loaded configuration 'D:/ncs/v1.5.0/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig'
    Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/prj.conf'
    Merged configuration 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/boards/circuitdojo_feather_nrf9160.conf'
    Configuration saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build/zephyr/.config'
    Kconfig header saved to 'D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/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: D:/ncs/v1.5.0/toolchain/opt/bin/arm-none-eabi-gcc.exe
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/v1.5.0/zephyr/samples/drivers/spi_flash/build
    -- west build: building application
    [148/153] Linking C executable zephyr\zephyr_prebuilt.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       24012 B         1 MB      2.29%
                SRAM:        5912 B        64 KB      9.02%
            IDT_LIST:          88 B         2 KB      4.30%
    [153/153] Linking C executable zephyr\zephyr.elf
    
    D:\ncs\v1.5.0\zephyr\samples\drivers\spi_flash>

    I can build a vendors board just not Nordics development boards

  • I guess this is because there is no conf file for nrf5340dk_nrf5340_cpuappns in the boards folder:

    However, there is one for nrf5340dk_nrf5340_cpuapp, copy that folder and rename it to nrf5340dk_nrf5340_cpuappns.

    I have not looked too much into this sample, but you may have to add an overlay-file as well.

    However, it is nice to keep the DevZone-ticket on-topic, in order to keep it more organized and concise, which makes it easier for other developers to find answers.

    Is your original issue solved? The "SDK V1.5.0 west build -b nrf9160_nrf52840 fails"-issue?

Related