SPI error: FATAL ERROR: command exited with status 1:

I'm trying to connect to SPI modem and I did tried tons of solutions, nothing worked or even passed the build stage.

can you guide me how I can at least see what's the error? the only error i get for all examples is similar to this.

FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' --build 'c:\SecureGatewayGen3\khaled\espi\build'

Thank you


  • error: UART_0_NRF_UARTE (defined at drivers/serial/Kconfig.nrfx:64) is assigned in a configuration
    file, but is not directly user-configurable (has no prompt). It gets its value indirectly from other
    symbols. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_0_NRF_UARTE and/or look
    up UART_0_NRF_UARTE 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.
    
    CMake Error at C:/ncs/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      C:/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.2.0/zephyr/cmake/app/boilerplate.cmake:25 (find_package)
      CMakeLists.txt:9 (include)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.2.0\opt\bin\python.exe' '-Bc:\SecureGatewayGen3\khaled\spi\build_1' -GNinja -DBOARD=nrf9160dk_nrf9160_ns -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=c:/SecureGatewayGen3/khaled/spi/prj.conf -DBOARD_ROOT:STRING=c:/SecureGatewayGen3/khaled/espi '-Sc:\SecureGatewayGen3\khaled\spi'

  • Hi Khaled,

    Thank you for contacting DevZone at NordicSemi.

    Can you please check that SDK and toolchain are correctly installed.

    We recommend installation through nRF Connect for Desktop. This video link is basic installation tutorial: nRF Connect for VS Code

    the only error i get for all examples is similar

    Were you able to build any basic example previously?

    Hope a correct/fresh installation of SDK and toolchain would solve issues.

    Let me know accordingly. With regards,

    Naeem

  • I installed evrything correctly, the issue is only when I want to use any SPI examples.


  • Hi Khaled,

    Could you please try this sample first and build it for nrf52840dk_nrf52840.

    SPI_BITBANG_SAMPLE

  • It works for nrf52840dk_nrf52840, but not for nRF9160

Related