SPI slave communication

Hello Team,

example: SPI master_slave advanced non -blocking 

i just open nRF connect sdk example in vs code and build it

I am getting below error while build 

Please suggest a steps 

i want to use nRF52840 as a spi slave device

Toolchain: v2.5.2

SDK: v2.5.2

  • Hi,

    Are you able to build the project without any added overlay?

    Use the devicetree GUI when creating your overlay, it should make it much easier:

    regards

    Jared 

  • Hello,

    Thanks for taking your valuable  time and reply to the query

    for your reference, I have not added any overlay, they are by default  in SDK

     i will try to build code by removing overlay and update you 

  • Ok, can you also share the actual build logs not from the "Problems" section but rather from the terminal?

    Thanks,

    regards

    Jared 

  • Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for c:\Users\Pravin.Adsare\non_blocking 
    
    Building non_blocking
    west build --build-dir c:/Users/Pravin.Adsare/non_blocking/build c:/Users/Pravin.Adsare/non_blocking --pristine --board nrf52840dk_nrf52840 --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=c:/Users/Pravin.Adsare/non_blocking/prj.conf -DBOARD_ROOT=c:/users/pravin.adsare/non_blocking
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): extensions sysbuild_extensions python west root zephyr_module boards shields sysbuild_kconfig
    -- 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.2/zephyr/.cache
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    Parsing C:/ncs/v2.5.2/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Configuration saved to 'C:/Users/Pravin.Adsare/non_blocking/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/Pravin.Adsare/non_blocking/build/autoconf.h'
    -- 
       **********************************
       * Running CMake for non_blocking *
       **********************************
    
    CMake Error at CMakeLists.txt:11 (GET_DEVICE_CONFIG_FILES):
      GET_DEVICE_CONFIG_FILES Macro invoked with incorrect arguments for macro
      named: GET_DEVICE_CONFIG_FILES
    
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/Pravin.Adsare/non_blocking
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.2/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.2/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:13 (find_package)
    
    
    -- 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.2/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.2/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    -- 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.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: C:/Users/Pravin.Adsare/non_blocking/boards/nrf52840dk_nrf52840.overlay
    In file included from <command-line>:
    C:/Users/Pravin.Adsare/non_blocking/boards/nrf52840dk_nrf52840.overlay:1:10: fatal error: ../../../common/common-pinctrl.dtsi: No such file or directory
        1 | #include "../../../common/common-pinctrl.dtsi"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    CMake Error at C:/ncs/v2.5.2/zephyr/cmake/modules/extensions.cmake:3885 (message):
      failed to preprocess devicetree files (error code 1):
      C:/ncs/v2.5.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts;C:/Users/Pravin.Adsare/non_blocking/boards/nrf52840dk_nrf52840.overlay
    Call Stack (most recent call first):
      C:/ncs/v2.5.2/zephyr/cmake/modules/dts.cmake:226 (zephyr_dt_preprocess)
      C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:13 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:455 (message):
      CMake configure failed for Zephyr project: non_blocking
    
      Location: C:/Users/Pravin.Adsare/non_blocking
    Call Stack (most recent call first):
      CMakeLists.txt:38 (ExternalZephyrProject_Cmake)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Pravin.Adsare/non_blocking/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-Bc:\Users\Pravin.Adsare\non_blocking\build' -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=c:/Users/Pravin.Adsare/non_blocking/prj.conf -DBOARD_ROOT=c:/users/pravin.adsare/non_blocking '-SC:\ncs\v2.5.2\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Users\Pravin.Adsare\non_blocking'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: non_blocking/build (active) 
    
    Building non_blocking
    west build --build-dir c:/Users/Pravin.Adsare/non_blocking/build c:/Users/Pravin.Adsare/non_blocking
    
    ninja: error: loading 'build.ninja': The system cannot find the file specified.
    
    
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\Pravin.Adsare\non_blocking\build'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: non_blocking/build (active) 
    
    Building non_blocking
    west build --build-dir c:/Users/Pravin.Adsare/non_blocking/build c:/Users/Pravin.Adsare/non_blocking
    
    ninja: error: loading 'build.ninja': The system cannot find the file specified.
    
    
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\Pravin.Adsare\non_blocking\build'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build [pristine]: non_blocking/build (active) 
    
    Building non_blocking
    west build --build-dir c:/Users/Pravin.Adsare/non_blocking/build c:/Users/Pravin.Adsare/non_blocking --pristine --board nrf52840dk_nrf52840 --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): extensions sysbuild_extensions python west root zephyr_module boards shields sysbuild_kconfig
    -- 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.2/zephyr/.cache
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    Parsing C:/ncs/v2.5.2/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Configuration saved to 'C:/Users/Pravin.Adsare/non_blocking/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/Pravin.Adsare/non_blocking/build/autoconf.h'
    -- 
       **********************************
       * Running CMake for non_blocking *
       **********************************
    
    CMake Error at CMakeLists.txt:11 (GET_DEVICE_CONFIG_FILES):
      GET_DEVICE_CONFIG_FILES Macro invoked with incorrect arguments for macro
      named: GET_DEVICE_CONFIG_FILES
    
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/Pravin.Adsare/non_blocking
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.2/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.2/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:13 (find_package)
    
    
    -- 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.2/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.2/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    -- 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.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/zephyr/dts.cmake
    
    warning: NRFX_SPIM1 (defined at C:/ncs/v2.5.2/zephyr/modules/hal_nordic\nrfx/Kconfig:213,
    modules\hal_nordic\nrfx/Kconfig:213) was assigned the value 'y' but got the value 'n'. Check these
    unsatisfied dependencies: n (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRFX_SPIM1 and/or look up NRFX_SPIM1 in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: NRFX_SPIS2 (defined at C:/ncs/v2.5.2/zephyr/modules/hal_nordic\nrfx/Kconfig:246,
    modules\hal_nordic\nrfx/Kconfig:246) was assigned the value 'y' but got the value 'n'. Check these
    unsatisfied dependencies: n (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRFX_SPIS2 and/or look up NRFX_SPIS2 in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing C:/ncs/v2.5.2/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.5.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/common/common.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/prj.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/zephyr/.config'
    Kconfig header saved to 'C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/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.2/zephyr/CMakeLists.txt:1958 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/CMakeFiles/CMakeOutput.log".
    See also "C:/Users/Pravin.Adsare/non_blocking/build/non_blocking/CMakeFiles/CMakeError.log".
    CMake Error at cmake/modules/sysbuild_extensions.cmake:455 (message):
      CMake configure failed for Zephyr project: non_blocking
    
      Location: C:/Users/Pravin.Adsare/non_blocking
    Call Stack (most recent call first):
      CMakeLists.txt:38 (ExternalZephyrProject_Cmake)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Pravin.Adsare/non_blocking/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-Bc:\Users\Pravin.Adsare\non_blocking\build' -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE '-SC:\ncs\v2.5.2\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Users\Pravin.Adsare\non_blocking'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for c:\Users\Pravin.Adsare\non_blocking 
    
    Building non_blocking
    west build --build-dir c:/Users/Pravin.Adsare/non_blocking/build c:/Users/Pravin.Adsare/non_blocking --pristine --board nrf52840dk_nrf52840 --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=c:/Users/Pravin.Adsare/non_blocking/prj.conf -DBOARD_ROOT=c:/users/pravin.adsare/non_blocking
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): extensions sysbuild_extensions python west root zephyr_module boards shields sysbuild_kconfig
    -- 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.2/zephyr/.cache
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    Parsing C:/ncs/v2.5.2/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Merged configuration 'C:/Users/Pravin.Adsare/non_blocking/build/empty.conf'
    Configuration saved to 'C:/Users/Pravin.Adsare/non_blocking/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/Pravin.Adsare/non_blocking/build/autoconf.h'
    -- 
       **********************************
       * Running CMake for non_blocking *
       **********************************
    
    CMake Error at CMakeLists.txt:11 (GET_DEVICE_CONFIG_FILES):
      GET_DEVICE_CONFIG_FILES Macro invoked with incorrect arguments for macro
      named: GET_DEVICE_CONFIG_FILES
    
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/Pravin.Adsare/non_blocking
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.2/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.2/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:13 (find_package)
    
    
    -- 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.2/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.2/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    -- 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.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: C:/Users/Pravin.Adsare/non_blocking/boards/nrf52840dk_nrf52840.overlay
    In file included from <command-line>:
    C:/Users/Pravin.Adsare/non_blocking/boards/nrf52840dk_nrf52840.overlay:1:10: fatal error: ../../../common/common-pinctrl.dtsi: No such file or directory
        1 | #include "../../../common/common-pinctrl.dtsi"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    CMake Error at C:/ncs/v2.5.2/zephyr/cmake/modules/extensions.cmake:3885 (message):
      failed to preprocess devicetree files (error code 1):
      C:/ncs/v2.5.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts;C:/Users/Pravin.Adsare/non_blocking/boards/nrf52840dk_nrf52840.overlay
    Call Stack (most recent call first):
      C:/ncs/v2.5.2/zephyr/cmake/modules/dts.cmake:226 (zephyr_dt_preprocess)
      C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:13 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:455 (message):
      CMake configure failed for Zephyr project: non_blocking
    
      Location: C:/Users/Pravin.Adsare/non_blocking
    Call Stack (most recent call first):
      CMakeLists.txt:38 (ExternalZephyrProject_Cmake)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/Users/Pravin.Adsare/non_blocking/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-Bc:\Users\Pravin.Adsare\non_blocking\build' -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=c:/Users/Pravin.Adsare/non_blocking/prj.conf -DBOARD_ROOT=c:/users/pravin.adsare/non_blocking '-SC:\ncs\v2.5.2\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\Users\Pravin.Adsare\non_blocking'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
     *  Executing task: nRF Connect: Build: non_blocking/build (active) 
    
    Building non_blocking
    west build --build-dir c:/Users/Pravin.Adsare/non_blocking/build c:/Users/Pravin.Adsare/non_blocking
    
    ninja: error: loading 'build.ninja': The system cannot find the file specified.
    
    
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Users\Pravin.Adsare\non_blocking\build'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    Please check build logs from terminal 

    two log files  attached are:

    1. spi non-blocking example_build_logs : No change in code 

    2. removed board folder overlays files_logs: board folder deleted which contains all overlay files 

    also, could you suggest a steps to use nRF52 in SPI slave mode.

    I have interface nRF52  to STM32 controller over SPI, so i want to use nRF52 in slave mode and STM32 controller in Master mode  

  • Hi,

    It seems that you made a totally new example based on the SPIM unblocking advanced example. I'm guessing that this new example is in another folder than the NCS folder?

    regards

    Jared 

Related