enable coexistence between Wi-Fi & BLE on thingy91x

Hello,

I am trying to find a solution how to use wifi and ble on thingy91x and manage the coexistence between them, I have found a sample Wi-Fi: Bluetooth LE coexistence but when I try to build it in nrf5340 SoC I got some errors (for example he doesn't recognize wifi or RAM overflowed) but I have added wifi node to my overlay but I get RAM overflowed.

The question is whether this sample supports thingy91x or not. If not, can you provide a solution to manage it? There are not many documents about thingy91x.

Best Regards

Terminal output :

[327/332] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/youssef/git/ble/build/mcuboot/zephyr/zephyr_pre0.map 
: && ccache /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/youssef/git/ble/build/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf5340/libsoc__nordic.a  zephyr/boards/boards/arm/thingy91x/lib..__nrf__boards__nordic__thingy91x.a  zephyr/subsys/retention/libsubsys__retention.a  zephyr/drivers/usb/device/libdrivers__usb__device.a  zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/retained_mem/libdrivers__retained_mem.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/subsys/pcd/lib..__nrf__subsys__pcd.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/modules/mcuboot/hooks/lib..__nrf__modules__mcuboot__hooks.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  modules/zcbor/libmodules__zcbor.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp"  -L/home/youssef/git/ble/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  /home/youssef/git/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.19.a && cd /home/youssef/git/ble/build/mcuboot/zephyr && /usr/bin/cmake -E true
/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss' will not fit in region `RAM'
/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `RAM' overflowed by 271248 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[27/591] Generating include/generated/driver-validation.h
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/youssef/git/ble/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.hex /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.elf 
cd /home/youssef/git/ble/build/mcuboot && /usr/bin/cmake --build . --
[29/591] Generating ../../tfm/CMakeCache.txt
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- 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: /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/youssef/git/nrf/samples/wifi/ble_coex/env/bin/python3 (found version "3.10.12") found components: Interpreter 
-- Found Python3: /home/youssef/git/nrf/samples/wifi/ble_coex/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/youssef/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/youssef/git/ble/build/tfm
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/youssef/git/ble/build

.overlay :

/ {
    aliases {
        zephyr,wifi = &nordic_wlan0;
    };

    nordic_wlan0: nordic_wlan0 {
		compatible = "nordic,wlan0";
		status = "okay";
	};

    nrf700x: nrf7000@1 {
		compatible = "nordic,nrf700x-spi";
		status = "okay";
		reg = <1>;
		spi-max-frequency = <DT_FREQ_M(8)>;

		iovdd-ctrl-gpios = <&gpio0 27 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
		bucken-gpios = <&gpio0 28 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
		host-irq-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
	};

	nrf_radio_coex: nrf7002-coex {
		status = "okay";
		compatible = "nordic,nrf700x-coex";
		req-gpios =     <&gpio0 24 (GPIO_ACTIVE_HIGH)>;
		status0-gpios = <&gpio0 14 (GPIO_ACTIVE_HIGH)>;
		grant-gpios =   <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
  };
};

  • Hi Dejan,

    I have recently switched to NCS v2.9.0 and successfully built the Wi-Fi shell sample using the thingy91x/nrf5340/cpuapp target. However, I am unable to view any logs using RTT, even though I have activated RTT in the configuration file.

    Additionally, I attempted to build the BLE coexistence (ble_coex) sample but encountered the following error:

    [163/605] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/class/cdc_acm.c.obj
    /home/youssef/git/zephyr/subsys/usb/device/class/cdc_acm.c:64:2: warning: #warning "USB_CDC_ACM_LOG_LEVEL forced to LOG_LEVEL_NONE" [-Wcpp]
       64 | #warning "USB_CDC_ACM_LOG_LEVEL forced to LOG_LEVEL_NONE"
          |  ^~~~~~~
    [479/605] Building C object zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/coex.c.obj
    FAILED: zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/coex.c.obj 
    ccache /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DEXT_API_MAGIC=0x281ee6de,0xb845acea,13570 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,13570 -DKERNEL -DK_HEAP_MEM_POOL_SIZE=230000 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNRF5340_XXAA_APPLICATION -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_DATA_TX -DNRF70_LOG_VERBOSE -DNRF70_MAX_TX_PENDING_QLEN=12 -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_STA_MODE -DNRF70_SYSTEM_MODE -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_SUPERVISOR__ -D__ZEPHYR__=1 -I/home/youssef/git/apps_wifi/ble_coex/build/ble_coex/zephyr/include/generated/zephyr -I/home/youssef/git/zephyr/include -I/home/youssef/git/apps_wifi/ble_coex/build/ble_coex/zephyr/include/generated -I/home/youssef/git/zephyr/soc/nordic -I/home/youssef/git/zephyr/include/zephyr/posix -I/home/youssef/git/zephyr/soc/nordic/nrf53/. -I/home/youssef/git/zephyr/soc/nordic/common/. -I/home/youssef/git/zephyr/subsys/usb/device -I/home/youssef/git/zephyr/subsys/bluetooth -I/home/youssef/git/zephyr/subsys/net/l2 -I/home/youssef/git/zephyr/drivers/usb/common/nrf_usbd_common/. -I/home/youssef/git/zephyr/drivers/wifi/nrf_wifi/inc -I/home/youssef/git/zephyr/subsys/net/ip -I/home/youssef/git/nrf/include -I/home/youssef/git/apps_wifi/ble_coex/build/ble_coex/zephyr/misc/generated -I/home/youssef/git/modules/lib/hostap/port/mbedtls -I/home/youssef/git/nrf/tests/include -I/home/youssef/git/modules/hal/cmsis/CMSIS/Core/Include -I/home/youssef/git/zephyr/modules/cmsis/. -I/home/youssef/git/modules/hal/nordic/nrfx -I/home/youssef/git/modules/hal/nordic/nrfx/drivers/include -I/home/youssef/git/modules/hal/nordic/nrfx/mdk -I/home/youssef/git/zephyr/modules/hal_nordic/nrfx/. -I/home/youssef/git/zephyr/modules/hostap/src -I/home/youssef/git/modules/lib/hostap -I/home/youssef/git/modules/lib/hostap/wpa_supplicant -I/home/youssef/git/modules/lib/hostap/src -I/home/youssef/git/modules/lib/hostap/src/common -I/home/youssef/git/modules/lib/hostap/src/eap_common -I/home/youssef/git/modules/lib/hostap/src/eap_server -I/home/youssef/git/modules/lib/hostap/src/radius -I/home/youssef/git/modules/lib/hostap/src/crypto -I/home/youssef/git/modules/lib/hostap/src/ap -I/home/youssef/git/modules/lib/hostap/src/drivers -I/home/youssef/git/modules/lib/hostap/src/rsn_supp -I/home/youssef/git/apps_wifi/ble_coex/build/ble_coex/modules/libmetal/libmetal/lib/include -I/home/youssef/git/modules/lib/open-amp/open-amp/lib/include -I/home/youssef/git/modules/crypto/tinycrypt/lib/include -I/home/youssef/git/nrfxlib/softdevice_controller/include -I/home/youssef/git/apps_wifi/ble_coex/build/ble_coex/generated/library_nrf_security_psa -I/home/youssef/git/nrf/subsys/nrf_security/include -I/home/youssef/git/nrf/subsys/nrf_security/src/threading/include -I/home/youssef/git/nrf/subsys/nrf_security/src/utils -I/home/youssef/git/modules/crypto/oberon-psa-crypto/oberon/drivers -I/home/youssef/git/modules/crypto/oberon-psa-crypto/include -I/home/youssef/git/modules/crypto/oberon-psa-crypto/library -I/home/youssef/git/modules/crypto/mbedtls/library -I/home/youssef/git/modules/crypto/mbedtls/include -I/home/youssef/git/modules/crypto/mbedtls/include/library -I/home/youssef/git/nrfxlib/crypto/nrf_oberon/include -I/home/youssef/git/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/home/youssef/git/zephyr/modules/nrf_wifi/os -I/home/youssef/git/zephyr/modules/nrf_wifi/os/../bus -I/home/youssef/git/modules/lib/nrf_wifi/utils/inc -I/home/youssef/git/modules/lib/nrf_wifi/os_if/inc -I/home/youssef/git/modules/lib/nrf_wifi/bus_if/bus/qspi/inc -I/home/youssef/git/modules/lib/nrf_wifi/bus_if/bal/inc -I/home/youssef/git/modules/lib/nrf_wifi/fw_if/umac_if/inc -I/home/youssef/git/modules/lib/nrf_wifi/fw_load/mips/fw/inc -I/home/youssef/git/modules/lib/nrf_wifi/hw_if/hal/inc -I/home/youssef/git/modules/lib/nrf_wifi/hw_if/hal/inc/fw -I/home/youssef/git/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw -I/home/youssef/git/modules/lib/nrf_wifi/fw_if/umac_if/inc/default -isystem /home/youssef/git/zephyr/lib/libc/common/include -isystem /home/youssef/git/nrfxlib/crypto/nrf_cc312_platform/include -Os -DNDEBUG -Wshadow -fno-strict-aliasing -Os -imacros /home/youssef/git/apps_wifi/ble_coex/build/ble_coex/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=/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/youssef/git/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=/home/youssef/git/apps_wifi/ble_coex=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/youssef/git/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/youssef/git=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/coex.c.obj -MF zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/coex.c.obj.d -o zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/coex.c.obj -c /home/youssef/git/zephyr/drivers/wifi/nrf_wifi/src/coex.c
    In file included from /home/youssef/git/zephyr/include/zephyr/toolchain/gcc.h:98,
                     from /home/youssef/git/zephyr/include/zephyr/toolchain.h:50,
                     from /home/youssef/git/zephyr/include/zephyr/kernel_includes.h:23,
                     from /home/youssef/git/zephyr/include/zephyr/kernel.h:17,
                     from /home/youssef/git/zephyr/drivers/wifi/nrf_wifi/src/coex.c:13:
    /home/youssef/git/zephyr/include/zephyr/device.h:92:41: error: '__device_dts_ord_DT_N_S_soc_S_peripheral_50000000_S_spi_c000_S_wifi_1_P_srrf_switch_gpios_IDX_0_PH_ORD' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c000_S_wifi_1_P_host_irq_gpios_IDX_0_PH'?
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                         ^~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
      137 | #define _DO_CONCAT(x, y) x ## y
          |                          ^
    /home/youssef/git/zephyr/include/zephyr/device.h:92:33: note: in expansion of macro '_CONCAT'
       92 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
          |                                 ^~~~~~~
    /home/youssef/git/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))
          |                                     ^~~~~~~~~~~~~~~
    /home/youssef/git/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))
          |                                  ^~~~~~~~~~~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/drivers/gpio.h:333:25: note: in expansion of macro 'DEVICE_DT_GET'
      333 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
          |                         ^~~~~~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/drivers/gpio.h:369:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
      369 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/youssef/git/zephyr/drivers/wifi/nrf_wifi/src/coex.c:46:9: note: in expansion of macro 'GPIO_DT_SPEC_GET'
       46 |         GPIO_DT_SPEC_GET(NRF_RADIO_COEX_NODE, srrf_switch_gpios);
          |         ^~~~~~~~~~~~~~~~
    In file included from /home/youssef/git/zephyr/include/zephyr/arch/arm/arch.h:20,
                     from /home/youssef/git/zephyr/include/zephyr/arch/cpu.h:19,
                     from /home/youssef/git/zephyr/include/zephyr/kernel_includes.h:36:
    /home/youssef/git/apps_wifi/ble_coex/build/ble_coex/zephyr/include/generated/zephyr/devicetree_generated.h:17659:40: error: 'DT_N_S_soc_S_peripheral_50000000_S_spi_c000_S_wifi_1_P_srrf_switch_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_50000000_S_spi_c000_S_wifi_1_P_host_irq_gpios_IDX_0_VAL_pin'?
    17659 | #define DT_N_NODELABEL_nrf70           DT_N_S_soc_S_peripheral_50000000_S_spi_c000_S_wifi_1
          |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/devicetree.h:4888:9: note: in definition of macro 'DT_CAT7'
     4888 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
          |         ^~
    /home/youssef/git/zephyr/include/zephyr/devicetree/gpio.h:110:9: note: in expansion of macro 'DT_PHA_BY_IDX'
      110 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
          |         ^~~~~~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/drivers/gpio.h:334:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
      334 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
          |                        ^~~~~~~~~~~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/drivers/gpio.h:369:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
      369 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/youssef/git/zephyr/drivers/wifi/nrf_wifi/src/coex.c:46:9: note: in expansion of macro 'GPIO_DT_SPEC_GET'
       46 |         GPIO_DT_SPEC_GET(NRF_RADIO_COEX_NODE, srrf_switch_gpios);
          |         ^~~~~~~~~~~~~~~~
    /home/youssef/git/zephyr/include/zephyr/devicetree.h:4877:24: note: in expansion of macro 'DT_N_NODELABEL_nrf70'
     4877 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/youssef/git/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)
          |                             ^~~~~~
    /home/youssef/git/zephyr/drivers/wifi/nrf_wifi/src/coex.c:44:37: note: in expansion of macro 'DT_NODELABEL'
       44 |         #define NRF_RADIO_COEX_NODE DT_NODELABEL(nrf70)
          |                                     ^~~~~~~~~~~~
    /home/youssef/git/zephyr/drivers/wifi/nrf_wifi/src/coex.c:46:26: note: in expansion of macro 'NRF_RADIO_COEX_NODE'
       46 |         GPIO_DT_SPEC_GET(NRF_RADIO_COEX_NODE, srrf_switch_gpios);
          |                          ^~~~~~~~~~~~~~~~~~~
    [496/605] Building C object zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/wpa_supp_if.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/ble_coex-prefix/src/ble_coex-stamp/ble_coex-build /home/youssef/git/apps_wifi/ble_coex/build/_sysbuild/sysbuild/images/ble_coex-prefix/src/ble_coex-stamp/ble_coex-build 
    cd /home/youssef/git/apps_wifi/ble_coex/build/ble_coex && /usr/bin/cmake --build .
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/youssef/git/apps_wifi/ble_coex/build

    Please note that I have already activated the nrf70 node in the configuration.

    If needed, I can share my .conf and overlay files for reference. They are identical to those used in the shell sample, except for RTT activation.

    Looking forward to your guidance.

    Best regards,
    Youssef

    thingy91x_nrf5340_cpuapp.conf

    thingy91x_nrf5340_cpuapp.overlay

  • Hi Dejan,

    I noticed that when I add this Kconfig to my sysbuild.conf, I no longer see any LOGs on the RTT. However, if I remove it, I encounter a flash overflow issue. Could you please suggest a solution to resolve this problem?

    SB_CONFIG_THINGY91X_STATIC_PARTITIONS_NRF53_EXTERNAL_FLASH=y

    Thank you!

  • Hi,

    For testing Wi-fi shell, you could try to build the sample using this command

    west build -b thingy91x/nrf5340/cpuapp -- -DSB_CONFIG_THINGY91X_STATIC_PARTITIONS_NRF53_EXTERNAL_FLASH=y

    and then use Serial Terminal to connect to your Thingy91X. 

    Best regards,
    Dejan

Related