Executing task: nRF Connect: Generate config nrf5340dk/nrf5340/cpuapp for c:\Users\hello\Music\ncs-spi-master-slave-example-master Building ncs-spi-master-slave-example-master C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/Users/hello/ncs-spi-master-slave-example-master/build c:/Users/hello/ncs-spi-master-slave-example-master --pristine --board nrf5340dk/nrf5340/cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/users/hello/ncs-spi-master-slave-example-master" -- west build: generating a build system Loading Zephyr module(s) (Zephyr base): sysbuild_default -- Found Python3: C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.8.0/zephyr/.cache -- Found west (found suitable version "1.2.0", minimum required is "0.14.0") -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp Parsing C:/ncs/v2.8.0/zephyr/share/sysbuild/Kconfig Loaded configuration 'C:/Users/hello/ncs-spi-master-slave-example-master/build/_sysbuild/empty.conf' Merged configuration 'C:/Users/hello/ncs-spi-master-slave-example-master/build/_sysbuild/empty.conf' Configuration saved to 'C:/Users/hello/ncs-spi-master-slave-example-master/build/zephyr/.config' Kconfig header saved to 'C:/Users/hello/ncs-spi-master-slave-example-master/build/_sysbuild/autoconf.h' -- ********************************************************* * Running CMake for ncs-spi-master-slave-example-master * ********************************************************* Loading Zephyr default modules (Zephyr base). -- Application: C:/Users/hello/ncs-spi-master-slave-example-master -- CMake version: 3.21.0 -- Found Python3: C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.8.0/zephyr/.cache -- Zephyr version: 3.7.99 (C:/ncs/v2.8.0/zephyr) -- Found west (found suitable version "1.2.0", minimum required is "0.14.0") -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp -- Found host-tools: zephyr 0.16.8 (C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk) -- Found toolchain: zephyr 0.16.8 (C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk) -- Found Dtc: C:/ncs/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: C:/ncs/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts -- Found devicetree overlay: C:/Users/hello/ncs-spi-master-slave-example-master/boards/nrf5340dk_nrf5340_cpuapp.overlay -- Generated zephyr.dts: C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/include/generated/zephyr/devicetree_generated.h -- Including generated dts.cmake file: C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/dts.cmake warning: Experimental symbol SPI_SLAVE is enabled. Parsing C:/ncs/v2.8.0/zephyr/Kconfig Loaded configuration 'C:/ncs/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_defconfig' Merged configuration 'C:/Users/hello/ncs-spi-master-slave-example-master/prj.conf' Merged configuration 'C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/.config.sysbuild' Configuration saved to 'C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/.config' Kconfig header saved to 'C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/include/generated/zephyr/autoconf.h' -- Found GnuLd: c:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/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/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe -- Setting build type to 'MinSizeRel' as none was specified. -- Configuring done -- Generating done -- Build files have been written to: C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master -- Configuring done -- Generating done -- Build files have been written to: C:/Users/hello/ncs-spi-master-slave-example-master/build -- west build: building application [4/150] Generating include/generated/zephyr/version.h -- Zephyr version: 3.7.99 (C:/ncs/v2.8.0/zephyr), build: v3.7.99-ncs1 [17/150] Building C object CMakeFiles/app.dir/src/main.c.obj FAILED: CMakeFiles/app.dir/src/main.c.obj C:\ncs\toolchains\2d382dcd92\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=0 -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/include/generated/zephyr -IC:/ncs/v2.8.0/zephyr/include -IC:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/include/generated -IC:/ncs/v2.8.0/zephyr/soc/nordic -IC:/ncs/v2.8.0/zephyr/soc/nordic/nrf53/. -IC:/ncs/v2.8.0/zephyr/soc/nordic/common/. -IC:/ncs/v2.8.0/nrf/include -IC:/ncs/v2.8.0/nrf/tests/include -IC:/ncs/v2.8.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.8.0/zephyr/modules/cmsis/. -IC:/ncs/v2.8.0/modules/hal/nordic/nrfx -IC:/ncs/v2.8.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.8.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.8.0/zephyr/modules/hal_nordic/nrfx/. -isystem C:/ncs/v2.8.0/zephyr/lib/libc/common/include -isystem C:/ncs/v2.8.0/nrfxlib/crypto/nrf_cc312_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/Users/hello/ncs-spi-master-slave-example-master/build/ncs-spi-master-slave-example-master/zephyr/include/generated/zephyr/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.8.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/hello/ncs-spi-master-slave-example-master=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.8.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.8.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c: In function 'spi_init': C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:34:8: error: macro "GPIO_DT_SPEC_GET_BY_IDX_OR" requires 4 arguments, but only 3 given 34 | struct gpio_dt_spec spim_cs_gpio = MY_SPI_MASTER_CS_DT_SPEC; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:10: C:/ncs/v2.8.0/zephyr/include/zephyr/drivers/gpio.h:355: note: macro "GPIO_DT_SPEC_GET_BY_IDX_OR" defined here 355 | #define GPIO_DT_SPEC_GET_BY_IDX_OR(node_id, prop, idx, default_value) \ | In file included from C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:11: C:/ncs/v2.8.0/zephyr/include/zephyr/drivers/spi.h:213:9: error: 'GPIO_DT_SPEC_GET_BY_IDX_OR' undeclared (first use in this function) 213 | GPIO_DT_SPEC_GET_BY_IDX_OR(DT_BUS(spi_dev), cs_gpios, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:20:34: note: in expansion of macro 'SPI_CS_GPIOS_DT_SPEC_GET' 20 | #define MY_SPI_MASTER_CS_DT_SPEC SPI_CS_GPIOS_DT_SPEC_GET(DT_NODELABEL(reg_my_spi_master)) | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:34:44: note: in expansion of macro 'MY_SPI_MASTER_CS_DT_SPEC' 34 | struct gpio_dt_spec spim_cs_gpio = MY_SPI_MASTER_CS_DT_SPEC; | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.8.0/zephyr/include/zephyr/drivers/spi.h:213:9: note: each undeclared identifier is reported only once for each function it appears in 213 | GPIO_DT_SPEC_GET_BY_IDX_OR(DT_BUS(spi_dev), cs_gpios, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:20:34: note: in expansion of macro 'SPI_CS_GPIOS_DT_SPEC_GET' 20 | #define MY_SPI_MASTER_CS_DT_SPEC SPI_CS_GPIOS_DT_SPEC_GET(DT_NODELABEL(reg_my_spi_master)) | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:34:44: note: in expansion of macro 'MY_SPI_MASTER_CS_DT_SPEC' 34 | struct gpio_dt_spec spim_cs_gpio = MY_SPI_MASTER_CS_DT_SPEC; | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c: At top level: C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:44:8: error: macro "GPIO_DT_SPEC_GET_BY_IDX_OR" requires 4 arguments, but only 3 given 44 | .cs = {.gpio = MY_SPI_MASTER_CS_DT_SPEC, .delay = 0}, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v2.8.0/zephyr/include/zephyr/drivers/gpio.h:355: note: macro "GPIO_DT_SPEC_GET_BY_IDX_OR" defined here 355 | #define GPIO_DT_SPEC_GET_BY_IDX_OR(node_id, prop, idx, default_value) \ | C:/ncs/v2.8.0/zephyr/include/zephyr/drivers/spi.h:213:9: error: 'GPIO_DT_SPEC_GET_BY_IDX_OR' undeclared here (not in a function) 213 | GPIO_DT_SPEC_GET_BY_IDX_OR(DT_BUS(spi_dev), cs_gpios, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:20:34: note: in expansion of macro 'SPI_CS_GPIOS_DT_SPEC_GET' 20 | #define MY_SPI_MASTER_CS_DT_SPEC SPI_CS_GPIOS_DT_SPEC_GET(DT_NODELABEL(reg_my_spi_master)) | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/Users/hello/ncs-spi-master-slave-example-master/src/main.c:44:24: note: in expansion of macro 'MY_SPI_MASTER_CS_DT_SPEC' 44 | .cs = {.gpio = MY_SPI_MASTER_CS_DT_SPEC, .delay = 0}, | ^~~~~~~~~~~~~~~~~~~~~~~~ [21/150] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj ninja: build stopped: subcommand failed. FAILED: _sysbuild/sysbuild/images/ncs-spi-master-slave-example-master-prefix/src/ncs-spi-master-slave-example-master-stamp/ncs-spi-master-slave-example-master-build C:/Users/hello/ncs-spi-master-slave-example-master/build/_sysbuild/sysbuild/images/ncs-spi-master-slave-example-master-prefix/src/ncs-spi-master-slave-example-master-stamp/ncs-spi-master-slave-example-master-build cmd.exe /C "cd /D C:\Users\hello\Music\ncs-spi-master-slave-example-master\build\ncs-spi-master-slave-example-master && C:\ncs\toolchains\2d382dcd92\opt\bin\cmake.exe --build ." ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\2d382dcd92\opt\bin\cmake.EXE' --build C:/Users/hello/ncs-spi-master-slave-example-master/build...