NRC 2.9.1 or 2.9.0 Cannot run wifi scan example using SPI

I have a custom PCB that has been working fine in terms of the Wi-Fi on 2.6.2 but I needed to Port that to 2.9.x  


I'm using sysbuild in the 2.9 projects but not in the 2.6.2 project.

I've tried making this work on my products project, the STA example, and the scan example and I feel like the scan examples probably the most straight forward for debugging the problem.  But all of them fail per the below.  I have tried manually removing the qspi nodes in the sdk .dts files, but that leads to other issues.  Error is in the build below.



Full log attached but note the errors in the log starting at line 73... QSPI is still referenced and it does not seem to be picking up some of the SPI stuff, but not sure.

Any help greatly appreciated.

3007.prj.conf        5164.nrf7002dk_nrf5340_cpuapp.overlay   2402.sysbuild.conf

ding scan
C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/dev/scan/build c:/dev/scan --pristine --board nrf7002dk/nrf5340/cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DDTC_OVERLAY_FILE=boards/nrf7002dk_nrf5340_cpuapp.overlay -DBOARD_ROOT=c:/dev/scan"

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/dev/NRF/toolchains/b620d30767/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:/dev/NRF/v2.9.1/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf7002dk, qualifiers: nrf5340/cpuapp
Parsing C:/dev/NRF/v2.9.1/zephyr/share/sysbuild/Kconfig
Loaded configuration 'C:/dev/scan/build/_sysbuild/empty.conf'
Merged configuration 'c:/dev/scan/sysbuild.conf'
Configuration saved to 'C:/dev/scan/build/zephyr/.config'
Kconfig header saved to 'C:/dev/scan/build/_sysbuild/autoconf.h'
-- 
   **************************
   * Running CMake for scan *
   **************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/dev/scan
-- CMake version: 3.21.0
-- Found Python3: C:/dev/NRF/toolchains/b620d30767/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:/dev/NRF/v2.9.1/zephyr/.cache
-- Zephyr version: 3.7.99 (C:/dev/NRF/v2.9.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf7002dk, qualifiers: nrf5340/cpuapp
-- Found host-tools: zephyr 0.17.0 (C:/dev/NRF/toolchains/b620d30767/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/dev/NRF/toolchains/b620d30767/opt/zephyr-sdk)
-- Found Dtc: C:/dev/NRF/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: C:/dev/NRF/v2.9.1/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: boards/nrf7002dk_nrf5340_cpuapp.overlay
'label' is marked as deprecated in 'properties:' in C:/dev/NRF/v2.9.1/zephyr/dts/bindings\spi\nordic,nrf-spim.yaml for node /soc/peripheral@50000000/spi@9000.
'label' is marked as deprecated in 'properties:' in C:/dev/NRF/v2.9.1/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@9000/spi-mx25r32@3.
'label' is marked as deprecated in 'properties:' in C:/dev/NRF/v2.9.1/zephyr/dts/bindings\spi\nordic,nrf-spim.yaml for node /soc/peripheral@50000000/spi@c000.
-- Generated zephyr.dts: C:/dev/scan/build/scan/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/dev/scan/build/scan/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: C:/dev/scan/build/scan/zephyr/dts.cmake

warning: Experimental symbol NRF_WIFI_RPU_RECOVERY is enabled.


warning: Experimental symbol NET_BUF_VARIABLE_DATA_SIZE is enabled.

Parsing C:/dev/scan/Kconfig
Loaded configuration 'C:/dev/NRF/v2.9.1/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/dev/scan/prj.conf'
Merged configuration 'C:/dev/scan/build/scan/zephyr/.config.sysbuild'
Configuration saved to 'C:/dev/scan/build/scan/zephyr/.config'
Kconfig header saved to 'C:/dev/scan/build/scan/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/dev/nrf/toolchains/b620d30767/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:/dev/NRF/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Setting build type to 'MinSizeRel' as none was specified.
CMake Warning at C:/dev/NRF/v2.9.1/zephyr/CMakeLists.txt:2133 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: C:/dev/scan/build/scan
-- Configuring done
-- Generating done
-- Build files have been written to: C:/dev/scan/build
-- west build: building application
[5/224] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (C:/dev/NRF/v2.9.1/zephyr), build: v3.7.99-ncs2-1
[90/224] Building C object modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj
FAILED: modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj 
C:\dev\NRF\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=25000 -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 -DNRF5340_XXAA_APPLICATION -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 -DNRF70_ANT_GAIN_2G=0 -DNRF70_ANT_GAIN_5G_BAND1=0 -DNRF70_ANT_GAIN_5G_BAND2=0 -DNRF70_ANT_GAIN_5G_BAND3=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_LOG_VERBOSE -DNRF70_MAX_TX_PENDING_QLEN=18 -DNRF70_MAX_TX_TOKENS=10 -DNRF70_PCB_LOSS_2G=0 -DNRF70_PCB_LOSS_5G_BAND1=0 -DNRF70_PCB_LOSS_5G_BAND2=0 -DNRF70_PCB_LOSS_5G_BAND3=0 -DNRF70_REG_DOMAIN=00 -DNRF70_RPU_PS_IDLE_TIMEOUT_MS=10 -DNRF70_RX_MAX_DATA_SIZE=1600 -DNRF70_RX_NUM_BUFS=48 -DNRF70_SCAN_ONLY -DNRF70_TCP_IP_CHECKSUM_OFFLOAD -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_WIFI_AP_DEAD_DETECT_TIMEOUT=20 -DNRF_WIFI_IFACE_MTU=1500 -DNRF_WIFI_LOW_POWER -DNRF_WIFI_MGMT_BUFF_OFFLOAD -DNRF_WIFI_PS_INT_PS=y -DNRF_WIFI_RPU_RECOVERY -DNRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS=50000 -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/inc -IC:/dev/scan/build/scan/zephyr/include/generated/zephyr -IC:/dev/NRF/v2.9.1/zephyr/include -IC:/dev/scan/build/scan/zephyr/include/generated -IC:/dev/NRF/v2.9.1/zephyr/soc/nordic -IC:/dev/NRF/v2.9.1/zephyr/soc/nordic/nrf53/. -IC:/dev/NRF/v2.9.1/zephyr/soc/nordic/common/. -IC:/dev/NRF/v2.9.1/zephyr/subsys/net/l2 -IC:/dev/NRF/v2.9.1/zephyr/drivers/wifi/nrf_wifi/inc -IC:/dev/NRF/v2.9.1/zephyr/subsys/net/ip -IC:/dev/NRF/v2.9.1/nrf/include -IC:/dev/scan/build/scan/zephyr/misc/generated -IC:/dev/NRF/v2.9.1/nrf/tests/include -IC:/dev/NRF/v2.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/dev/NRF/v2.9.1/zephyr/modules/cmsis/. -IC:/dev/NRF/v2.9.1/modules/hal/nordic/nrfx -IC:/dev/NRF/v2.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/dev/NRF/v2.9.1/modules/hal/nordic/nrfx/mdk -IC:/dev/NRF/v2.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/os -IC:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/os/../bus -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/utils/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/os_if/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/bus_if/bus/qspi/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/bus_if/bal/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/fw_if/umac_if/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/fw_load/mips/fw/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/hw_if/hal/inc -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/hw_if/hal/inc/fw -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw -IC:/dev/NRF/v2.9.1/modules/lib/nrf_wifi/fw_if/umac_if/inc/default -isystem C:/dev/NRF/v2.9.1/zephyr/lib/libc/common/include -isystem C:/dev/NRF/v2.9.1/nrfxlib/crypto/nrf_cc312_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/dev/scan/build/scan/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:/dev/NRF/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/dev/NRF/v2.9.1/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:/dev/scan=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/dev/NRF/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/dev/NRF/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj -MF modules\nrf_wifi\bus\CMakeFiles\nrf70-buslib.dir\spi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj -c C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c
In file included from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain/gcc.h:98,
                 from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain.h:50,
                 from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/sys/__assert.h:11,
                 from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/irq_multilevel.h:15,
                 from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:20,
                 from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:12,
                 from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:26,
                 from C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:14:
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_144' undeclared here (not in a function); did you mean '__device_dts_ord_14'?
   92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
  137 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
   92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'
  229 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:403:24: note: in expansion of macro 'DEVICE_DT_GET'
  403 |                 .bus = DEVICE_DT_GET(DT_BUS(node_id)),               \
      |                        ^~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:1: note: in expansion of macro 'SPI_DT_SPEC_GET'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      | ^~~~~~~~~~~~~~~
C:/dev/scan/build/scan/zephyr/include/generated/zephyr/devicetree_generated.h:16224:41: error: 'DT_N_S_soc_S_peripheral_50000000_S_qspi_2b000_S_nrf7002_1_P_spi_max_frequency' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_9000_S_nrf7002_0_P_spi_max_frequency'?
16224 | #define DT_N_NODELABEL_nrf70            DT_N_S_soc_S_peripheral_50000000_S_qspi_2b000_S_nrf7002_1
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:4879:29: note: in definition of macro 'DT_CAT3'
 4879 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:349:30: note: in expansion of macro 'DT_PROP'
  349 |                 .frequency = DT_PROP(node_id, spi_max_frequency),       \
      |                              ^~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
  404 |                 .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
      |                           ^~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:1: note: in expansion of macro 'SPI_DT_SPEC_GET'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      | ^~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:4877:24: note: in expansion of macro 'DT_N_NODELABEL_nrf70'
 4877 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:200:29: note: in expansion of macro 'DT_CAT'
  200 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:22:22: note: in expansion of macro 'DT_NODELABEL'
   22 | #define NRF7002_NODE DT_NODELABEL(nrf70)
      |                      ^~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:17: note: in expansion of macro 'NRF7002_NODE'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      |                 ^~~~~~~~~~~~
C:/dev/scan/build/scan/zephyr/include/generated/zephyr/devicetree_generated.h:16224:41: error: 'DT_N_S_soc_S_peripheral_50000000_S_qspi_2b000_S_nrf7002_1_P_duplex' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_9000_S_nrf7002_0_P_duplex'?
16224 | #define DT_N_NODELABEL_nrf70            DT_N_S_soc_S_peripheral_50000000_S_qspi_2b000_S_nrf7002_1
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:4879:29: note: in definition of macro 'DT_CAT3'
 4879 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:351:25: note: in expansion of macro 'DT_PROP'
  351 |                         DT_PROP(node_id, duplex) |                      \
      |                         ^~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
  404 |                 .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
      |                           ^~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:1: note: in expansion of macro 'SPI_DT_SPEC_GET'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      | ^~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:4877:24: note: in expansion of macro 'DT_N_NODELABEL_nrf70'
 4877 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:200:29: note: in expansion of macro 'DT_CAT'
  200 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:22:22: note: in expansion of macro 'DT_NODELABEL'
   22 | #define NRF7002_NODE DT_NODELABEL(nrf70)
      |                      ^~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:17: note: in expansion of macro 'NRF7002_NODE'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      |                 ^~~~~~~~~~~~
C:/dev/scan/build/scan/zephyr/include/generated/zephyr/devicetree_generated.h:16224:41: error: 'DT_N_S_soc_S_peripheral_50000000_S_qspi_2b000_S_nrf7002_1_P_frame_format' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_9000_S_nrf7002_0_P_frame_format'?
16224 | #define DT_N_NODELABEL_nrf70            DT_N_S_soc_S_peripheral_50000000_S_qspi_2b000_S_nrf7002_1
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:4879:29: note: in definition of macro 'DT_CAT3'
 4879 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:352:25: note: in expansion of macro 'DT_PROP'
  352 |                         DT_PROP(node_id, frame_format) |                        \
      |                         ^~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:404:27: note: in expansion of macro 'SPI_CONFIG_DT'
  404 |                 .config = SPI_CONFIG_DT(node_id, operation_, delay_) \
      |                           ^~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:1: note: in expansion of macro 'SPI_DT_SPEC_GET'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      | ^~~~~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:4877:24: note: in expansion of macro 'DT_N_NODELABEL_nrf70'
 4877 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:200:29: note: in expansion of macro 'DT_CAT'
  200 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:22:22: note: in expansion of macro 'DT_NODELABEL'
   22 | #define NRF7002_NODE DT_NODELABEL(nrf70)
      |                      ^~~~~~~~~~~~
C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:27:17: note: in expansion of macro 'NRF7002_NODE'
   27 | SPI_DT_SPEC_GET(NRF7002_NODE, SPI_WORD_SET(8) | SPI_TRANSFER_MSB, 0);
      |                 ^~~~~~~~~~~~
[99/224] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
ninja: build stopped: subcommand failed.
FAILED: _sysbuild/sysbuild/images/scan-prefix/src/scan-stamp/scan-build C:/dev/scan/build/_sysbuild/sysbuild/images/scan-prefix/src/scan-stamp/scan-build 
cmd.exe /C "cd /D C:\dev\scan\build\scan && C:\dev\NRF\toolchains\b620d30767\opt\bin\cmake.exe --build ."
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\dev\NRF\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/dev/scan/build
#
# Copyright (c) 2023 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "Kconfig.zephyr"

menu "Nordic Scan sample"

config WIFI_MAC_ADDRESS
	string "WiFi MAC address"
	default "F6:CE:36:00:00:01"
	help
		Wi-Fi MAC address to be used by the sample. If not set, the sample will
		use the default MAC address (locally administrative). This is only used
		when the nRF7002 OTP is not programmed with a MAC address.

config WIFI_SCAN_INTERVAL_S
	int "Scan interval (seconds)"
	default 10
	help
	  Specifies the scan interval in seconds.

config WIFI_SCAN_BANDS_LIST
	string "Frequency bands to scan"
	default "2" if WIFI_SCAN_PROFILE_2_4GHz_ACTIVE || WIFI_SCAN_PROFILE_2_4GHz_PASSIVE || WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_CHAN
	default "5" if WIFI_SCAN_PROFILE_5GHz_ACTIVE || WIFI_SCAN_PROFILE_5GHz_PASSIVE || WIFI_SCAN_PROFILE_5GHz_NON_DFS_CHAN
	default "2,5" if WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_AND_5GHz_NON_DFS_CHAN
	default ""
	help
	  Specifies the frequency bands to scan, as follows:
	  2 - 2.4 GHz,
	  5 - 5 GHz,
	  6 - 6 GHz,
	  "" - All bands allowed by the regulatory domain.
	  Multiple bands can be specified as comma separated band values.
	  Only regulatory domain permitted values are allowed.

config WIFI_SCAN_CHAN_LIST
	string "Channel list for scan"
	default "2:1,6,11" if WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_CHAN
	default "5:36,40,44,48,149,153,157,161,165" if WIFI_SCAN_PROFILE_5GHz_NON_DFS_CHAN
	default "2:1,6,11_5:36,40,44,48,149,153,157,161,165" if WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_AND_5GHz_NON_DFS_CHAN
	default ""
	help
	  Specifies the list of channels used to perform scan.

config WIFI_SCAN_DWELL_TIME_ACTIVE
	int "Active scan dwell time"
	default 50
	range 5 1000
	help
	  Active scan dwell time (in ms) per channel.

config WIFI_SCAN_DWELL_TIME_PASSIVE
	int "Passive scan dwell time"
	default 130
	range 10 1000
	help
	  Passive scan dwell time (in ms) per channel.

choice
	prompt "Choose a WiFi Scan Profile"

config WIFI_SCAN_PROFILE_DEFAULT
	bool "Scan in all bands and channels"
	help
	  Enable this profile to do Wi-Fi scan in all supported bands and channels.

config WIFI_SCAN_PROFILE_ACTIVE
	bool "Active scan"
	help
	  Enable this profile to do active scan where allowed.

config WIFI_SCAN_PROFILE_PASSIVE
	bool "Passive scan"
	help
	  Enable this profile to do passive scan on all channels.

config WIFI_SCAN_PROFILE_2_4GHz_ACTIVE
	bool "Scan in the 2.4 GHz band using active scan"
	help
	  Enable this profile to scan in the 2.4 GHz band using active scanning where allowed.

config WIFI_SCAN_PROFILE_2_4GHz_PASSIVE
	bool "Scan in the 2.4 GHz band using passive scan"
	help
	  Enable this profile to scan in the 2.4 GHz band using passive scanning on all channels.

config WIFI_SCAN_PROFILE_5GHz_ACTIVE
	bool "Scan in the 5 GHz band using active scan"
	help
	  Enable this profile to scan in the 5 GHz band using active scanning where allowed.

config WIFI_SCAN_PROFILE_5GHz_PASSIVE
	bool "Scan in the 5 GHz band using passive scan"
	help
	  Enable this profile to scan in the 5 GHz band using passive scanning on all channels.

config WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_CHAN
	bool "Scan only non-overlapping channels"
	help
	  Enable this profile to scan only non-overlapping channels (1, 6, 11)
	  in the 2.4 GHz band.

config WIFI_SCAN_PROFILE_5GHz_NON_DFS_CHAN
	bool "Scan only non-DFS channels"
	help
	  Enable this profile to scan only non-DFS channels (36, 40, 44,
	  48, 149, 153, 157, 161, 165) in the 5 GHz band.

config WIFI_SCAN_PROFILE_2_4GHz_NON_OVERLAP_AND_5GHz_NON_DFS_CHAN
	bool "Scan only non-overlapping and non-DFS channels"
	help
	  Enable this profile to scan only non-overlapping channels
	  (1, 6, 11) in the 2.4 GHz band and non-DFS channels (36, 40, 44,
	  48, 149, 153, 157, 161, 165) in the 5 GHz band.

endchoice

endmenu

Parents
  • Hello,

    I will look into the files you have shared, but based on the logs, I am seeing device tree errors that should not occur with the SDK sample. If I understand correctly, you started by building the SDK scan sample, and it began throwing errors with NCS v2.9.0. Am I right, or is this error occurring in your custom application?

    Additionally, in the build configuration, it specifies nRF7002DK. Are you working with the DK, or are you first testing the application on the DK?

    Although your overlay uses SPI1, I don't see any configurations in prj.conf enabling SPI.

    Kind Regards,
    Abhijith

  • #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    CONFIG_WIFI=y
    CONFIG_WIFI_NRF70=y
    CONFIG_NET_L2_WIFI_MGMT=y
    CONFIG_HEAP_MEM_POOL_SIZE=25000
    CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
    CONFIG_NET_L2_ETHERNET=y
    CONFIG_WIFI_NRF70_LOG_LEVEL_DBG=y
    # System settings
    CONFIG_ASSERT=y
    
    # Networking
    CONFIG_NETWORKING=y
    CONFIG_NET_BUF_RX_COUNT=1
    CONFIG_NET_BUF_TX_COUNT=1
    CONFIG_NET_NATIVE=n
    CONFIG_NET_OFFLOAD=y
    
    CONFIG_INIT_STACKS=y
    
    ######################################## S P I ##################################################################
    CONFIG_SPI=y
    # nrf7002
    CONFIG_NET_L2_WIFI_MGMT=y
    #drv_share spi 
    CONFIG_NRFX_SPIM0=y
    CONFIG_NRFX_SPIM1=y
    CONFIG_NRFX_SPIM2=y
    #touch screen
    CONFIG_NRFX_TWIM2=y
    #fingerprint sensor
    CONFIG_NRFX_SPIM4=y
    
    # drv_bat
    CONFIG_ADC=y
    CONFIG_NRFX_SAADC=y 
    
    
    # Memories
    CONFIG_MAIN_STACK_SIZE=5200
    
    # Debugging
    CONFIG_STACK_SENTINEL=y
    CONFIG_DEBUG_COREDUMP=y
    CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
    CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y
    
    # Logging
    CONFIG_LOG=y
    CONFIG_PRINTK=y
    # If below config is enabled, printk logs are
    # buffered. For unbuffered messages, disable this.
    CONFIG_LOG_PRINTK=n
    
    # printing of scan results puts pressure on queues in new locking
    # design in net_mgmt. So, use a higher timeout for a crowded
    # environment.
    CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000
    
    # Raw scan Options
    CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=n
    CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS_ONLY=n
    
    CONFIG_WIFI_SCAN_DWELL_TIME_ACTIVE=50
    CONFIG_WIFI_SCAN_DWELL_TIME_PASSIVE=130
    

    This is my revised prj.conf.  It should be configured for SPI now, but I get device tree errors that go back to ephyr/modules/nrf_wifi/bus/spi_if.c:14 so it appears like it is trying to haul in spi, but failing....  Ive been through a few days of running stuff like this down and fixing it and finally reached the conclusion that maybe the 2.9.0 SDK has issues I am not aware of as far as running SPI rather than QSPI to the 7002.  At anyrate, please let me know if I can provide more info.

    abi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/dev/NRF/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/dev/NRF/v2.9.1/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:/dev/scan=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/dev/NRF/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/dev/NRF/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj -MF modules\nrf_wifi\bus\CMakeFiles\nrf70-buslib.dir\spi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj -c C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c
    In file included from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain/gcc.h:98,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain.h:50,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/sys/__assert.h:11,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/irq_multilevel.h:15,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:20,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:12,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:26,
    from C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:14:
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_145' undeclared here (not in a function); did you mean '__device_dts_ord_15'?
    92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
    137 | #define _DO_CONCAT(x, y) x ## y
    | ^
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
    92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'

Reply
  • #
    # Copyright (c) 2022 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    CONFIG_WIFI=y
    CONFIG_WIFI_NRF70=y
    CONFIG_NET_L2_WIFI_MGMT=y
    CONFIG_HEAP_MEM_POOL_SIZE=25000
    CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
    CONFIG_NET_L2_ETHERNET=y
    CONFIG_WIFI_NRF70_LOG_LEVEL_DBG=y
    # System settings
    CONFIG_ASSERT=y
    
    # Networking
    CONFIG_NETWORKING=y
    CONFIG_NET_BUF_RX_COUNT=1
    CONFIG_NET_BUF_TX_COUNT=1
    CONFIG_NET_NATIVE=n
    CONFIG_NET_OFFLOAD=y
    
    CONFIG_INIT_STACKS=y
    
    ######################################## S P I ##################################################################
    CONFIG_SPI=y
    # nrf7002
    CONFIG_NET_L2_WIFI_MGMT=y
    #drv_share spi 
    CONFIG_NRFX_SPIM0=y
    CONFIG_NRFX_SPIM1=y
    CONFIG_NRFX_SPIM2=y
    #touch screen
    CONFIG_NRFX_TWIM2=y
    #fingerprint sensor
    CONFIG_NRFX_SPIM4=y
    
    # drv_bat
    CONFIG_ADC=y
    CONFIG_NRFX_SAADC=y 
    
    
    # Memories
    CONFIG_MAIN_STACK_SIZE=5200
    
    # Debugging
    CONFIG_STACK_SENTINEL=y
    CONFIG_DEBUG_COREDUMP=y
    CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
    CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y
    
    # Logging
    CONFIG_LOG=y
    CONFIG_PRINTK=y
    # If below config is enabled, printk logs are
    # buffered. For unbuffered messages, disable this.
    CONFIG_LOG_PRINTK=n
    
    # printing of scan results puts pressure on queues in new locking
    # design in net_mgmt. So, use a higher timeout for a crowded
    # environment.
    CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000
    
    # Raw scan Options
    CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS=n
    CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS_ONLY=n
    
    CONFIG_WIFI_SCAN_DWELL_TIME_ACTIVE=50
    CONFIG_WIFI_SCAN_DWELL_TIME_PASSIVE=130
    

    This is my revised prj.conf.  It should be configured for SPI now, but I get device tree errors that go back to ephyr/modules/nrf_wifi/bus/spi_if.c:14 so it appears like it is trying to haul in spi, but failing....  Ive been through a few days of running stuff like this down and fixing it and finally reached the conclusion that maybe the 2.9.0 SDK has issues I am not aware of as far as running SPI rather than QSPI to the 7002.  At anyrate, please let me know if I can provide more info.

    abi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/dev/NRF/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/dev/NRF/v2.9.1/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:/dev/scan=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/dev/NRF/v2.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/dev/NRF/v2.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj -MF modules\nrf_wifi\bus\CMakeFiles\nrf70-buslib.dir\spi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/spi_if.c.obj -c C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c
    In file included from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain/gcc.h:98,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain.h:50,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/sys/__assert.h:11,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/irq_multilevel.h:15,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/devicetree.h:20,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:12,
    from C:/dev/NRF/v2.9.1/zephyr/include/zephyr/drivers/spi.h:26,
    from C:/dev/NRF/v2.9.1/zephyr/modules/nrf_wifi/bus/spi_if.c:14:
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_145' undeclared here (not in a function); did you mean '__device_dts_ord_15'?
    92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
    137 | #define _DO_CONCAT(x, y) x ## y
    | ^
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
    92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    C:/dev/NRF/v2.9.1/zephyr/include/zephyr/device.h:229:37: note: in expansion of macro 'DEVICE_NAME_GET'

Children
No Data
Related