Trying to get the nRF5340 of the nRF7002 DK to low power

Dear All,

I am developing an application where I need to get the nRF5340 to the low power state, where the chip is consuming less than 10uA when it idle, while using the nRF7002 companion chip.

Starting with the simple blinky example, adding to the prj.conf

CONFIG_LOG=n
CONFIG_SERIAL=n


I am able to get the device to work with about 10uA on average.

The next step is to have a more complex project configuration that looks like this:

#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_WIFI=y
CONFIG_WIFI_NRF70=y

# # WPA supplicant
CONFIG_WIFI_READY_LIB=y

# # Networking
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_POSIX_API=y
CONFIG_NET_LOG=y
CONFIG_NET_IPV4=y
CONFIG_NET_TCP=y
CONFIG_NET_DHCPV4=y

CONFIG_NET_PKT_RX_COUNT=16
CONFIG_NET_PKT_TX_COUNT=16
CONFIG_NRF70_RX_NUM_BUFS=16

# Below section is the primary contributor to SRAM and is currently
# tuned for performance, but this will be revisited in the future.
CONFIG_NET_BUF_RX_COUNT=16
CONFIG_NET_BUF_TX_COUNT=32
CONFIG_HEAP_MEM_POOL_SIZE=37000
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
CONFIG_NRF_WIFI_CTRL_HEAP_SIZE=20000
CONFIG_NRF_WIFI_DATA_HEAP_SIZE=40000
CONFIG_NET_TC_TX_COUNT=1

CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1
CONFIG_NET_MAX_CONTEXTS=6
CONFIG_NET_CONTEXT_SYNC_RECV=y

CONFIG_INIT_STACKS=y

CONFIG_NET_L2_ETHERNET=y

# Memories
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096

# # Logging
# # CONFIG_LOG=y
# # CONFIG_LOG_BUFFER_SIZE=2048

# TLS networking
CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=3
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y

# TLS credentials
CONFIG_TLS_CREDENTIALS=y
CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y

# mbedTLS
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_MBEDTLS_HEAP_SIZE=101920
CONFIG_MBEDTLS_RSA_C=y
CONFIG_MBEDTLS_DHM_C=y
CONFIG_MBEDTLS_TLS_LIBRARY=y

# Optimize T-FM
CONFIG_TFM_PROFILE_TYPE_SMALL=y
CONFIG_PM_PARTITION_SIZE_TFM_SRAM=0xc000
CONFIG_PM_PARTITION_SIZE_TFM=0x20000

#Low power
CONFIG_LOG=n
CONFIG_SERIAL=n
# CONFIG_PINCTRL=y


When I am setting the CONFIG_SERIAL=n, I am getting the following error:
D:\zephyr-sdk-0.16.0\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=37000 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 -DNRF5340_XXAA_APPLICATION -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/zephyr/modules/nrf_wifi/bus/inc -IC:/ncs/modules/lib/nrf_wifi/os_if/inc -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr -IC:/ncs/zephyr/include -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated -IC:/ncs/zephyr/soc/nordic -IC:/ncs/zephyr/include/zephyr/posix -IC:/ncs/zephyr/soc/nordic/nrf53/. -IC:/ncs/zephyr/soc/nordic/common/. -IC:/ncs/zephyr/subsys/net/l2 -IC:/ncs/zephyr/drivers/wifi/nrf_wifi/inc -IC:/ncs/zephyr/subsys/net/ip -IC:/ncs/nrf/include -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm/api_ns/interface/include -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/misc/generated -IC:/ncs/modules/lib/hostap/port/mbedtls -IC:/ncs/nrf/modules/trusted-firmware-m/. -IC:/ncs/nrf/include/tfm -IC:/ncs/nrf/tests/include -IC:/ncs/zephyr/modules/hostap/src -IC:/ncs/modules/lib/hostap -IC:/ncs/modules/lib/hostap/wpa_supplicant -IC:/ncs/modules/lib/hostap/src -IC:/ncs/modules/lib/hostap/src/common -IC:/ncs/modules/lib/hostap/src/eap_common -IC:/ncs/modules/lib/hostap/src/eap_server -IC:/ncs/modules/lib/hostap/src/radius -IC:/ncs/modules/lib/hostap/src/crypto -IC:/ncs/modules/lib/hostap/src/ap -IC:/ncs/modules/lib/hostap/src/drivers -IC:/ncs/modules/lib/hostap/src/rsn_supp -IC:/ncs/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/zephyr/modules/cmsis_6/. -IC:/ncs/nrf/modules/hal_nordic/. -IC:/ncs/modules/hal/nordic/nrfx -IC:/ncs/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/modules/hal/nordic/nrfx/mdk -IC:/ncs/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/zephyr/modules/nrf_wifi/os -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/certs -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/generated/interface_nrf_security_psa -IC:/ncs/nrf/subsys/nrf_security/include -IC:/ncs/modules/crypto/oberon-psa-crypto/include -IC:/ncs/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/nrf/subsys/nrf_security/src/utils -IC:/ncs/modules/crypto/oberon-psa-crypto/library -IC:/ncs/modules/crypto/mbedtls/library -IC:/ncs/modules/crypto/mbedtls/include -IC:/ncs/modules/crypto/mbedtls/include/library -IC:/ncs/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem C:/ncs/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/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=D:/zephyr-sdk-0.16.0/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/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=D:/GIT_Projects/nRF7002DK_tcp_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -MF modules\nrf_wifi\bus\CMakeFiles\nrf70-buslib.dir\qspi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -c C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function '_qspi_device_uninit':
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:37: warning: implicit declaration of function 'QSPI_PROP_AT'; did you mean 'QSPI_PRESENT'? [-Wimplicit-function-declaration]
  557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
      |                                     ^~~~~~~~~~~~
      |                                     QSPI_PRESENT
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: error: 'csn_pins' undeclared (first use in this function)
  557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
      |                                                  ^~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: note: each undeclared identifier is reported only once for each function it appears in
In file included from C:/ncs/zephyr/include/zephyr/arch/arm/arch.h:20,
                 from C:/ncs/zephyr/include/zephyr/arch/cpu.h:19,
                 from C:/ncs/zephyr/include/zephyr/sys/cbprintf_internal.h:17,
                 from C:/ncs/zephyr/include/zephyr/sys/cbprintf.h:124,
                 from C:/ncs/zephyr/include/zephyr/logging/log_msg.h:11,
                 from C:/ncs/zephyr/include/zephyr/logging/log_core.h:9,
                 from C:/ncs/zephyr/include/zephyr/logging/log.h:11,
                 from C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:16:
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function 'qspi_fill_init_struct':
D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_sck_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?
16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
 5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:31: note: in expansion of macro 'DT_PROP'
   35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
      |                               ^~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
 5269 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
  196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
   30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
      |                          ^~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
   35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
      |                                       ^~~~~~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:684:36: note: in expansion of macro 'QSPI_IF_BUS_SCK_PIN'
  684 |         initstruct->pins.sck_pin = QSPI_IF_BUS_SCK_PIN;
      |                                    ^~~~~~~~~~~~~~~~~~~
D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_csn_pins' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_statu'?
16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
 5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:31: note: in expansion of macro 'DT_PROP'
   36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
      |                               ^~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
 5269 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
  196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
   30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
      |                          ^~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
   36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
      |                                       ^~~~~~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:685:36: note: in expansion of macro 'QSPI_IF_BUS_CSN_PIN'
  685 |         initstruct->pins.csn_pin = QSPI_IF_BUS_CSN_PIN;
      |                                    ^~~~~~~~~~~~~~~~~~~
D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_0' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status_IDX_0'?
16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
 5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
      |                                     ^~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:31: note: in expansion of macro 'DT_PROP_BY_IDX'
   37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
      |                               ^~~~~~~~~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
 5269 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
  196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
   30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
      |                          ^~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
   37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
      |                                              ^~~~~~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:686:36: note: in expansion of macro 'QSPI_IF_BUS_IO0_PIN'
  686 |         initstruct->pins.io0_pin = QSPI_IF_BUS_IO0_PIN;
      |                                    ^~~~~~~~~~~~~~~~~~~
D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_1' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_reg_IDX_1'?
16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
 5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
      |                                     ^~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:31: note: in expansion of macro 'DT_PROP_BY_IDX'
   38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
      |                               ^~~~~~~~~~~~~~
C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
 5269 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
  196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
   30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
      |                          ^~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
   38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
      |                                              ^~~~~~~~~~~~~~~~
C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:687:36: note: in expansion of macro 'QSPI_IF_BUS_IO1_PIN'
  687 |         initstruct->pins.io1_pin = QSPI_IF_BUS_IO1_PIN;


Uncommenting the CONFIG_PINCTRL=y line at the end of my prj.conf allows for the project to build, but the current consumption while sleeping is quite high (~350uA):



My main looks like this:

int main(void)
{
    while (1) {
        k_sleep(K_FOREVER);
    }
}


I have tried the following Kconfigs as well, but without any changes:
CONFIG_TFM_LOG_LEVEL_SILENCE=y
CONFIG_NRF_WIFI_LOW_POWER=y
CONFIG_NRF70_QSPI_LOW_POWER=y


I have also tried allowing for serial in the prj.conf and powering it down in the code, setting the corresponding Kconfigs, but that also did not work.

I have also seen this article https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs
and tried to add the prj.conf in the sysbuild/ipc_radio described in step 1. This also did not made any difference.

I think that the issue that I am seeing is that the project is being built with the CONFIG_PINCTRL.

I am using nRF connect SDK v3.1.1.

Any ideas?

Thank you very much.

Parents
  • Hi Giannis

    Is your project based on one of the Wi-Fi samples in the nRF Connect SDK, and if so which one and what has been modified? I'd also recommend checking out the Power optimization recommendations available here for reference: https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/test_and_optimize/optimizing/power_general.html 

    Can you also upload the full build log so we can get a better view of what's failing when trying to build with CONFIG_SERIAL=n on your side?

    Best regards,

    Simon

  •  
    I have followed the instructions in the link you posted as well, without any improvement.

    But I would like to ask you a few things first. Is it fair to expect that the nRF5340, when it is idle it should be consuming something like 10uA?

    The second thing that occured to me is that the CONFIG_SERIAL=n would remove also the QSPI functionality that is needed for the communication between the host and the companion chip.

    Based on the prj.conf that I have given you and the simple main with the sleep loop, what is the expected current consumption on the host side?

    I have used code from different samples found in zephyr (tcp) and nrf (https_client) as well as other examples related to connecting to an AP.

    The complete log when trying to build for CONFIG_SERIAL=n

    D:\GIT_Projects\nRF7002DK_tcp_client>west build -p always -b nrf7002dk/nrf5340/cpuapp/ns
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/Python314/python.exe (found suitable version "3.14.0", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:\Users\SODAQ\AppData\Local/.cache/zephyr
    -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
    -- Board: nrf7002dk, qualifiers: nrf5340/cpuapp/ns
    Parsing D:/GIT_Projects/nRF7002DK_tcp_client/Kconfig.sysbuild
    Loaded configuration 'D:/GIT_Projects/nRF7002DK_tcp_client/build/_sysbuild/empty.conf'
    Merged configuration 'D:/GIT_Projects/nRF7002DK_tcp_client/build/_sysbuild/empty.conf'
    Configuration saved to 'D:/GIT_Projects/nRF7002DK_tcp_client/build/zephyr/.config'
    Kconfig header saved to 'D:/GIT_Projects/nRF7002DK_tcp_client/build/_sysbuild/autoconf.h'
    -- 
       ******************************************
       * Running CMake for nRF7002DK_tcp_client *
       ******************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/GIT_Projects/nRF7002DK_tcp_client
    -- CMake version: 3.21.3
    -- Found Python3: C:/Python314/python.exe (found suitable version "3.14.0", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: C:\Users\SODAQ\AppData\Local/.cache/zephyr
    -- Zephyr version: 4.1.99 (C:/ncs/zephyr)
    -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
    -- Board: nrf7002dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.16.0 (D:/zephyr-sdk-0.16.0)
    -- Found toolchain: zephyr 0.16.0 (D:/zephyr-sdk-0.16.0)
    -- Found Dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns.dts
    -- Generated zephyr.dts: D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/zephyr.dts
    -- Generated pickled edt: D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/edt.pickle
    -- Generated devicetree_generated.h: D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL (=n), SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE 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: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_READY_LIB is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol TFM_EXPERIMENTAL is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol NRF_WIFI_RPU_RECOVERY is enabled.
    
    
    warning: Experimental symbol NET_BUF_VARIABLE_DATA_SIZE is enabled.
    
    Parsing D:/GIT_Projects/nRF7002DK_tcp_client/Kconfig
    Loaded configuration 'C:/ncs/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns_defconfig'
    Merged configuration 'D:/GIT_Projects/nRF7002DK_tcp_client/prj.conf'
    Merged configuration 'D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/.config.sysbuild'
    Configuration saved to 'D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/.config'
    Kconfig header saved to 'D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: d:/zephyr-sdk-0.16.0/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: D:/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/zephyr/scripts/build/gen_kobject_list.py
    CMake Warning at C:/ncs/zephyr/CMakeLists.txt:1027 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/zephyr/CMakeLists.txt:1027 (message):
      No SOURCES given to Zephyr library:
      ..__nrf__subsys__net__lib__tls_credentials
    
      Excluding target from build.
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/GIT_Projects/nRF7002DK_tcp_client/build
    ←[92m-- west build: building application
    [5/10] Performing build step for 'nRF7002DK_tcp_client'
    [25/456] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.1.99 (C:/ncs/zephyr), build: ncs-v3.1.1
    [39/456] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.22.0.windows.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: D:/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/Python314/python.exe (found version "3.14.0") found components: Interpreter
    **** MM-IOVEC is enabled for memory and runtime optimizations for larger buffers, ****
    **** but reduces mitigation for common security vulnerabilities. ****
    **** Check FF-M 1.1 https://developer.arm.com/documentation/aes0039/latest for more details. ****
    -- Found Python3: C:/Python314/python.exe (found suitable version "3.14.0", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:\Users\SODAQ\AppData\Local/.cache/zephyr
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm
    [44/456] Performing build step for 'tfm'
    [192/196] Linking C executable bin\tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      130488 B       128 KB     99.55%
                 RAM:       38996 B        48 KB     79.34%
    [196/196] Linking C static library secure_fw\libtfm_s_veneers.a
    [46/456] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [404/456] Building C object modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj
    FAILED: modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj
    D:\zephyr-sdk-0.16.0\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=37000 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 -DNRF5340_XXAA_APPLICATION -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/zephyr/modules/nrf_wifi/bus/inc -IC:/ncs/modules/lib/nrf_wifi/os_if/inc -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr -IC:/ncs/zephyr/include -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated -IC:/ncs/zephyr/soc/nordic -IC:/ncs/zephyr/include/zephyr/posix -IC:/ncs/zephyr/soc/nordic/nrf53/. -IC:/ncs/zephyr/soc/nordic/common/. -IC:/ncs/zephyr/subsys/net/l2 -IC:/ncs/zephyr/drivers/wifi/nrf_wifi/inc -IC:/ncs/zephyr/subsys/net/ip -IC:/ncs/nrf/include -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm/api_ns/interface/include -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/misc/generated -IC:/ncs/modules/lib/hostap/port/mbedtls -IC:/ncs/nrf/modules/trusted-firmware-m/. -IC:/ncs/nrf/include/tfm -IC:/ncs/nrf/tests/include -IC:/ncs/zephyr/modules/hostap/src -IC:/ncs/modules/lib/hostap -IC:/ncs/modules/lib/hostap/wpa_supplicant -IC:/ncs/modules/lib/hostap/src -IC:/ncs/modules/lib/hostap/src/common -IC:/ncs/modules/lib/hostap/src/eap_common -IC:/ncs/modules/lib/hostap/src/eap_server -IC:/ncs/modules/lib/hostap/src/radius -IC:/ncs/modules/lib/hostap/src/crypto -IC:/ncs/modules/lib/hostap/src/ap -IC:/ncs/modules/lib/hostap/src/drivers -IC:/ncs/modules/lib/hostap/src/rsn_supp -IC:/ncs/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/zephyr/modules/cmsis_6/. -IC:/ncs/nrf/modules/hal_nordic/. -IC:/ncs/modules/hal/nordic/nrfx -IC:/ncs/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/modules/hal/nordic/nrfx/mdk -IC:/ncs/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/zephyr/modules/nrf_wifi/os -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/certs -ID:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/generated/interface_nrf_security_psa -IC:/ncs/nrf/subsys/nrf_security/include -IC:/ncs/modules/crypto/oberon-psa-crypto/include -IC:/ncs/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/nrf/subsys/nrf_security/src/utils -IC:/ncs/modules/crypto/oberon-psa-crypto/library -IC:/ncs/modules/crypto/mbedtls/library -IC:/ncs/modules/crypto/mbedtls/include -IC:/ncs/modules/crypto/mbedtls/include/library -IC:/ncs/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem C:/ncs/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/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=D:/zephyr-sdk-0.16.0/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/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=D:/GIT_Projects/nRF7002DK_tcp_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -MF modules\nrf_wifi\bus\CMakeFiles\nrf70-buslib.dir\qspi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -c C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function '_qspi_device_uninit':
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:37: warning: implicit declaration of function 'QSPI_PROP_AT'; did you mean 'QSPI_PRESENT'? [-Wimplicit-function-declaration]
      557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
          |                                     ^~~~~~~~~~~~
          |                                     QSPI_PRESENT
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: error: 'csn_pins' undeclared (first use in this function)
      557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
          |                                                  ^~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: note: each undeclared identifier is reported only once for each function it appears in
    In file included from C:/ncs/zephyr/include/zephyr/arch/arm/arch.h:20,
                     from C:/ncs/zephyr/include/zephyr/arch/cpu.h:19,
                     from C:/ncs/zephyr/include/zephyr/sys/cbprintf_internal.h:17,
                     from C:/ncs/zephyr/include/zephyr/sys/cbprintf.h:124,
                     from C:/ncs/zephyr/include/zephyr/logging/log_msg.h:11,
                     from C:/ncs/zephyr/include/zephyr/logging/log_core.h:9,
                     from C:/ncs/zephyr/include/zephyr/logging/log.h:11,
                     from C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:16:
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function 'qspi_fill_init_struct':
    D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_sck_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?       
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
     5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:31: note: in expansion of macro 'DT_PROP'
       35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
          |                               ^~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
          |                                       ^~~~~~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:684:36: note: in expansion of macro 'QSPI_IF_BUS_SCK_PIN'
      684 |         initstruct->pins.sck_pin = QSPI_IF_BUS_SCK_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_csn_pins' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?      
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
     5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:31: note: in expansion of macro 'DT_PROP'
       36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
          |                               ^~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
          |                                       ^~~~~~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:685:36: note: in expansion of macro 'QSPI_IF_BUS_CSN_PIN'
      685 |         initstruct->pins.csn_pin = QSPI_IF_BUS_CSN_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_0' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status_IDX_0'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
     5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
          |                                     ^~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:31: note: in expansion of macro 'DT_PROP_BY_IDX'
       37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
          |                               ^~~~~~~~~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
          |                                              ^~~~~~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:686:36: note: in expansion of macro 'QSPI_IF_BUS_IO0_PIN'
      686 |         initstruct->pins.io0_pin = QSPI_IF_BUS_IO0_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    D:/GIT_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_1' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_reg_IDX_'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
     5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
          |                                     ^~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:31: note: in expansion of macro 'DT_PROP_BY_IDX'
       38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
          |                               ^~~~~~~~~~~~~~
    C:/ncs/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    C:/ncs/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
          |                                              ^~~~~~~~~~~~~~~~
    C:/ncs/zephyr/modules/nrf_wifi/bus/qspi_if.c:687:36: note: in expansion of macro 'QSPI_IF_BUS_IO1_PIN'
      687 |         initstruct->pins.io1_pin = QSPI_IF_BUS_IO1_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    [417/456] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMake...ordic__nrfx.dir/C_/ncs/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj 
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/nRF7002DK_tcp_client-prefix/src/nRF7002DK_tcp_client-stamp/nRF7002DK_tcp_client-build D:/GIT_Projects/nRF7002DK_tcp_client/build/_sysbuild/sysbuild/images/nRF7002DK_tcp_client-prefix/src/nRF7002DK_tcp_client-stamp/nRF7002DK_tcp_client-build
    cmd.exe /C "cd /D D:\GIT_Projects\nRF7002DK_tcp_client\build\nRF7002DK_tcp_client && "C:\Program Files\CMake\bin\cmake.exe" --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build D:/GIT_Projects/nRF7002DK_tcp_client/build

  •  
    I forgot previously to thank you for your assistance.

    I came across this question in the forum that is somewhat related to my case:

    https://devzone.nordicsemi.com/f/nordic-q-a/100338/nrf7002dk-nrf5340-power-consumption

    I did some further tests and I have determined the following:

    Instead of using CONFIG_SERIAL=n and CONFIG_PINCTRL=y, I add this overlay file:
    7651.nrf7002dk_nrf5340_cpuapp_ns.overlay

    To make my issue more clear I have this prj.conf file:

    # CONFIG_WIFI=y
    CONFIG_WIFI_NRF70=y
    
    # Networking
    CONFIG_NETWORKING=y
    
    # Memories
    CONFIG_MAIN_STACK_SIZE=5200
    CONFIG_NET_TX_STACK_SIZE=4096
    CONFIG_NET_RX_STACK_SIZE=4096
    
    #Low power
    # CONFIG_TFM_LOG_LEVEL_SILENCE=y
    # CONFIG_TFM_SECURE_UART=n
    # CONFIG_NRF_WIFI_LOW_POWER=y
    # CONFIG_NRF70_QSPI_LOW_POWER=y
    CONFIG_LOG=n
    CONFIG_UART_CONSOLE=n
    CONFIG_PM_DEVICE=y
    CONFIG_PM_DEVICE_RUNTIME=y
    


    And my main looks like this:

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <zephyr/kernel.h>
    #include <zephyr/pm/device.h>
    #include <zephyr/drivers/uart.h>
    
    int main(void)
    {
        // Shutdown the console UART
        const struct device* uart_device = DEVICE_DT_GET(DT_NODELABEL(uart0));
    
        if (uart_device != NULL) {
            printk("Going to lp");
    		pm_device_action_run(uart_device, PM_DEVICE_ACTION_SUSPEND);
            uart_irq_rx_disable(uart_device);
        }
    
        while (1) {
        	k_sleep(K_FOREVER);
        }
        return 0;
    }
    


    I have also tried the Kconfigs found in the link you provided before, without much success.

    What I am observing is that with the CONFIG_WIFI=y commented out my current consumption indeed drops to <10uA:



    If I uncomment the CONFIG_WIFI=y setting I am seeing the ~340uA offset (see the selection part):



    So, I wonder is there any configuration that could reduce this consumption?

    On a side note, with my .overlay file, when I uncomment the disablement of UART0, when CONFIG_WIFI is enabled, I am getting the following build error

    (.venv) giannis-anastasopoulos@g-a:~/Development/Git_Projects/nRF7002DK_tcp_client$ west flash
    -- west flash: rebuilding
    [0/1] Re-running CMake...
    Loading Zephyr module(s) (Zephyr base (cached)): sysbuild_default
    -- Cache files will be written to: /home/giannis-anastasopoulos/.cache/zephyr
    -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
    -- Board: nrf7002dk, qualifiers: nrf5340/cpuapp/ns
    Parsing /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/Kconfig.sysbuild
    Loaded configuration '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/zephyr/.config'
    No change to configuration in '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/zephyr/.config'
    No change to Kconfig header in '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/_sysbuild/autoconf.h'
    -- 
       ******************************************
       * Running CMake for nRF7002DK_tcp_client *
       ******************************************
    
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client
    -- CMake version: 3.27.7
    -- Cache files will be written to: /home/giannis-anastasopoulos/.cache/zephyr
    -- Zephyr version: 4.1.99 (/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr)
    -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
    -- Board: nrf7002dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.17.0 (/home/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/home/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk)
    -- Found BOARD.dts: /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/nrf7002dk_nrf5340_cpuapp_ns.overlay
    -- Generated zephyr.dts: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/zephyr.dts
    -- Generated pickled edt: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol NRF_WIFI_RPU_RECOVERY is enabled.
    
    
    warning: Experimental symbol NET_BUF_VARIABLE_DATA_SIZE is enabled.
    
    Parsing /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/Kconfig
    Loaded configuration '/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns_defconfig'
    Merged configuration '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/prj.conf'
    Merged configuration '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/.config.sysbuild'
    Configuration saved to '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/.config'
    Kconfig header saved to '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/autoconf.h'
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Using ccache: /usr/bin/ccache
    -- Found gen_kobject_list: /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    CMake Warning at /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/CMakeLists.txt:1027 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/CMakeLists.txt:1027 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    -- Configuring done (3.8s)
    -- Generating done (0.1s)
    -- Build files have been written to: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done (5.7s)
    -- Generating done (0.0s)
    -- Build files have been written to: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build
    [0/5] Performing build step for 'nRF7002DK_tcp_client'
    [0/400] Performing build step for 'tfm'
    [0/1] Re-running CMake...
    -- Found Python3: /home/giannis-anastasopoulos/ncs/.venv/bin/python (found version "3.12.3") found components: Interpreter 
    -- Found Python3: /home/giannis-anastasopoulos/ncs/.venv/bin/python (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: /home/giannis-anastasopoulos/.cache/zephyr
    -- Configuring done (0.6s)
    -- Generating done (0.0s)
    -- Build files have been written to: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm
    [110/114] Linking C executable bin/tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       32100 B        32 KB     97.96%
                 RAM:       11524 B        32 KB     35.17%
    [114/114] Linking C static library secure_fw/libtfm_s_veneers.a
    [28/396] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [385/396] Building C object modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj
    FAILED: modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj 
    ccache /home/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=30808 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 -DNRF5340_XXAA_APPLICATION -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/inc -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/nrf_wifi/os_if/inc -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/soc/nordic -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/posix -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/soc/nordic/nrf53/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/soc/nordic/common/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/subsys/net/l2 -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/inc -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/subsys/net/ip -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/include -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm/api_ns/interface/include -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/misc/generated -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/port/mbedtls -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/modules/trusted-firmware-m/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/include/tfm -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/tests/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/hostap/src -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/wpa_supplicant -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/common -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/eap_common -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/eap_server -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/radius -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/crypto -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/ap -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/drivers -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/rsn_supp -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/cmsis/CMSIS/Core/Include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/cmsis_6/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/modules/hal_nordic/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/nordic/nrfx -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/hal_nordic/nrfx/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/os -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/certs -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/generated/interface_nrf_security_psa -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/subsys/nrf_security/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/subsys/nrf_security/src/threading/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/subsys/nrf_security/src/utils -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/library -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/mbedtls/library -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/mbedtls/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/mbedtls/include/library -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/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/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/giannis-anastasopoulos/ncs/v3.1.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=/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/giannis-anastasopoulos/ncs/v3.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -MF modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -c /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function '_qspi_device_uninit':
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:37: warning: implicit declaration of function 'QSPI_PROP_AT'; did you mean 'QSPI_PRESENT'? [-Wimplicit-function-declaration]
      557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
          |                                     ^~~~~~~~~~~~
          |                                     QSPI_PRESENT
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: error: 'csn_pins' undeclared (first use in this function)
      557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
          |                                                  ^~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: note: each undeclared identifier is reported only once for each function it appears in
    In file included from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/arch.h:20,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/arch/cpu.h:19,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/sys/cbprintf_internal.h:17,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/sys/cbprintf.h:124,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/logging/log_msg.h:11,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/logging/log_core.h:9,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/logging/log.h:11,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:16:
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function 'qspi_fill_init_struct':
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_sck_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
     5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:31: note: in expansion of macro 'DT_PROP'
       35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
          |                               ^~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
          |                                       ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:684:36: note: in expansion of macro 'QSPI_IF_BUS_SCK_PIN'
      684 |         initstruct->pins.sck_pin = QSPI_IF_BUS_SCK_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_csn_pins' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
     5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:31: note: in expansion of macro 'DT_PROP'
       36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
          |                               ^~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
          |                                       ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:685:36: note: in expansion of macro 'QSPI_IF_BUS_CSN_PIN'
      685 |         initstruct->pins.csn_pin = QSPI_IF_BUS_CSN_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_0' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status_IDX_0'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
     5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
          |                                     ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:31: note: in expansion of macro 'DT_PROP_BY_IDX'
       37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
          |                               ^~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
          |                                              ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:686:36: note: in expansion of macro 'QSPI_IF_BUS_IO0_PIN'
      686 |         initstruct->pins.io0_pin = QSPI_IF_BUS_IO0_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_1' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_reg_IDX_1'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
     5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
          |                                     ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:31: note: in expansion of macro 'DT_PROP_BY_IDX'
       38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
          |                               ^~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
          |                                              ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:687:36: note: in expansion of macro 'QSPI_IF_BUS_IO1_PIN'
      687 |         initstruct->pins.io1_pin = QSPI_IF_BUS_IO1_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    [386/396] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/nRF7002DK_tcp_client-prefix/src/nRF7002DK_tcp_client-stamp/nRF7002DK_tcp_client-build /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/_sysbuild/sysbuild/images/nRF7002DK_tcp_client-prefix/src/nRF7002DK_tcp_client-stamp/nRF7002DK_tcp_client-build 
    cd /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client && /home/giannis-anastasopoulos/Downloads/cmake-3.27.7-linux-x86_64/bin/cmake --build .
    ninja: build stopped: subcommand failed.
    FATAL ERROR: re-build in /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build failed (no --build-dir given)


    I hope these updates provide more clarity on my situation.


Reply
  •  
    I forgot previously to thank you for your assistance.

    I came across this question in the forum that is somewhat related to my case:

    https://devzone.nordicsemi.com/f/nordic-q-a/100338/nrf7002dk-nrf5340-power-consumption

    I did some further tests and I have determined the following:

    Instead of using CONFIG_SERIAL=n and CONFIG_PINCTRL=y, I add this overlay file:
    7651.nrf7002dk_nrf5340_cpuapp_ns.overlay

    To make my issue more clear I have this prj.conf file:

    # CONFIG_WIFI=y
    CONFIG_WIFI_NRF70=y
    
    # Networking
    CONFIG_NETWORKING=y
    
    # Memories
    CONFIG_MAIN_STACK_SIZE=5200
    CONFIG_NET_TX_STACK_SIZE=4096
    CONFIG_NET_RX_STACK_SIZE=4096
    
    #Low power
    # CONFIG_TFM_LOG_LEVEL_SILENCE=y
    # CONFIG_TFM_SECURE_UART=n
    # CONFIG_NRF_WIFI_LOW_POWER=y
    # CONFIG_NRF70_QSPI_LOW_POWER=y
    CONFIG_LOG=n
    CONFIG_UART_CONSOLE=n
    CONFIG_PM_DEVICE=y
    CONFIG_PM_DEVICE_RUNTIME=y
    


    And my main looks like this:

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <zephyr/kernel.h>
    #include <zephyr/pm/device.h>
    #include <zephyr/drivers/uart.h>
    
    int main(void)
    {
        // Shutdown the console UART
        const struct device* uart_device = DEVICE_DT_GET(DT_NODELABEL(uart0));
    
        if (uart_device != NULL) {
            printk("Going to lp");
    		pm_device_action_run(uart_device, PM_DEVICE_ACTION_SUSPEND);
            uart_irq_rx_disable(uart_device);
        }
    
        while (1) {
        	k_sleep(K_FOREVER);
        }
        return 0;
    }
    


    I have also tried the Kconfigs found in the link you provided before, without much success.

    What I am observing is that with the CONFIG_WIFI=y commented out my current consumption indeed drops to <10uA:



    If I uncomment the CONFIG_WIFI=y setting I am seeing the ~340uA offset (see the selection part):



    So, I wonder is there any configuration that could reduce this consumption?

    On a side note, with my .overlay file, when I uncomment the disablement of UART0, when CONFIG_WIFI is enabled, I am getting the following build error

    (.venv) giannis-anastasopoulos@g-a:~/Development/Git_Projects/nRF7002DK_tcp_client$ west flash
    -- west flash: rebuilding
    [0/1] Re-running CMake...
    Loading Zephyr module(s) (Zephyr base (cached)): sysbuild_default
    -- Cache files will be written to: /home/giannis-anastasopoulos/.cache/zephyr
    -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
    -- Board: nrf7002dk, qualifiers: nrf5340/cpuapp/ns
    Parsing /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/Kconfig.sysbuild
    Loaded configuration '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/zephyr/.config'
    No change to configuration in '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/zephyr/.config'
    No change to Kconfig header in '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/_sysbuild/autoconf.h'
    -- 
       ******************************************
       * Running CMake for nRF7002DK_tcp_client *
       ******************************************
    
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client
    -- CMake version: 3.27.7
    -- Cache files will be written to: /home/giannis-anastasopoulos/.cache/zephyr
    -- Zephyr version: 4.1.99 (/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr)
    -- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
    -- Board: nrf7002dk, qualifiers: nrf5340/cpuapp/ns
    -- Found host-tools: zephyr 0.17.0 (/home/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/home/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk)
    -- Found BOARD.dts: /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/nrf7002dk_nrf5340_cpuapp_ns.overlay
    -- Generated zephyr.dts: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/zephyr.dts
    -- Generated pickled edt: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/edt.pickle
    -- Generated devicetree_generated.h: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h
    
    warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol NRF_WIFI_RPU_RECOVERY is enabled.
    
    
    warning: Experimental symbol NET_BUF_VARIABLE_DATA_SIZE is enabled.
    
    Parsing /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/Kconfig
    Loaded configuration '/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/boards/nordic/nrf7002dk/nrf7002dk_nrf5340_cpuapp_ns_defconfig'
    Merged configuration '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/prj.conf'
    Merged configuration '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/.config.sysbuild'
    Configuration saved to '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/.config'
    Kconfig header saved to '/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/autoconf.h'
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Using ccache: /usr/bin/ccache
    -- Found gen_kobject_list: /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/scripts/build/gen_kobject_list.py
    CMake Warning at /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/CMakeLists.txt:1027 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/CMakeLists.txt:1027 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    -- Configuring done (3.8s)
    -- Generating done (0.1s)
    -- Build files have been written to: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done (5.7s)
    -- Generating done (0.0s)
    -- Build files have been written to: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build
    [0/5] Performing build step for 'nRF7002DK_tcp_client'
    [0/400] Performing build step for 'tfm'
    [0/1] Re-running CMake...
    -- Found Python3: /home/giannis-anastasopoulos/ncs/.venv/bin/python (found version "3.12.3") found components: Interpreter 
    -- Found Python3: /home/giannis-anastasopoulos/ncs/.venv/bin/python (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter 
    -- Cache files will be written to: /home/giannis-anastasopoulos/.cache/zephyr
    -- Configuring done (0.6s)
    -- Generating done (0.0s)
    -- Build files have been written to: /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm
    [110/114] Linking C executable bin/tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       32100 B        32 KB     97.96%
                 RAM:       11524 B        32 KB     35.17%
    [114/114] Linking C static library secure_fw/libtfm_s_veneers.a
    [28/396] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [385/396] Building C object modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj
    FAILED: modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj 
    ccache /home/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=30808 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 -DNRF5340_XXAA_APPLICATION -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DPICOLIBC_LONG_LONG_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/inc -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/nrf_wifi/os_if/inc -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/soc/nordic -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/posix -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/soc/nordic/nrf53/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/soc/nordic/common/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/subsys/net/l2 -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/inc -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/subsys/net/ip -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/include -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/tfm/api_ns/interface/include -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/misc/generated -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/port/mbedtls -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/modules/trusted-firmware-m/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/include/tfm -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/tests/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/hostap/src -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/wpa_supplicant -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/common -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/eap_common -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/eap_server -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/radius -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/crypto -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/ap -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/drivers -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/lib/hostap/src/rsn_supp -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/cmsis/CMSIS/Core/Include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/cmsis_6/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/modules/hal_nordic/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/nordic/nrfx -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/hal_nordic/nrfx/. -I/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/os -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/certs -I/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/generated/interface_nrf_security_psa -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/subsys/nrf_security/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/subsys/nrf_security/src/threading/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrf/subsys/nrf_security/src/utils -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/library -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/mbedtls/library -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/mbedtls/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/modules/crypto/mbedtls/include/library -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include -I/home/giannis-anastasopoulos/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystem /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/lib/libc/common/include -fno-strict-aliasing -Os -imacros /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/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/giannis-anastasopoulos/ncs/toolchains/b2ecd2435d/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/giannis-anastasopoulos/ncs/v3.1.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=/home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/giannis-anastasopoulos/ncs/v3.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/giannis-anastasopoulos/ncs/v3.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -MF modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj.d -o modules/nrf_wifi/bus/CMakeFiles/nrf70-buslib.dir/qspi_if.c.obj -c /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function '_qspi_device_uninit':
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:37: warning: implicit declaration of function 'QSPI_PROP_AT'; did you mean 'QSPI_PRESENT'? [-Wimplicit-function-declaration]
      557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
          |                                     ^~~~~~~~~~~~
          |                                     QSPI_PRESENT
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: error: 'csn_pins' undeclared (first use in this function)
      557 |                 nrf_gpio_cfg_output(QSPI_PROP_AT(csn_pins, 0));
          |                                                  ^~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:557:50: note: each undeclared identifier is reported only once for each function it appears in
    In file included from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/arch.h:20,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/arch/cpu.h:19,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/sys/cbprintf_internal.h:17,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/sys/cbprintf.h:124,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/logging/log_msg.h:11,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/logging/log_core.h:9,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/logging/log.h:11,
                     from /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:16:
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c: In function 'qspi_fill_init_struct':
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_sck_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
     5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:31: note: in expansion of macro 'DT_PROP'
       35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
          |                               ^~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:35:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       35 | #define QSPI_IF_BUS_SCK_PIN   DT_PROP(QSPI_IF_BUS_NODE, sck_pin)
          |                                       ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:684:36: note: in expansion of macro 'QSPI_IF_BUS_SCK_PIN'
      684 |         initstruct->pins.sck_pin = QSPI_IF_BUS_SCK_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_csn_pins' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3'
     5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:31: note: in expansion of macro 'DT_PROP'
       36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
          |                               ^~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:36:39: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       36 | #define QSPI_IF_BUS_CSN_PIN   DT_PROP(QSPI_IF_BUS_NODE, csn_pins)
          |                                       ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:685:36: note: in expansion of macro 'QSPI_IF_BUS_CSN_PIN'
      685 |         initstruct->pins.csn_pin = QSPI_IF_BUS_CSN_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_0' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_status_IDX_0'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
     5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
          |                                     ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:31: note: in expansion of macro 'DT_PROP_BY_IDX'
       37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
          |                               ^~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:37:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       37 | #define QSPI_IF_BUS_IO0_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 0)
          |                                              ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:686:36: note: in expansion of macro 'QSPI_IF_BUS_IO0_PIN'
      686 |         initstruct->pins.io0_pin = QSPI_IF_BUS_IO0_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client/zephyr/include/generated/zephyr/devicetree_generated.h:16643:37: error: 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_io_pins_IDX_1' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000_P_reg_IDX_1'?
    16643 | #define DT_N_NODELABEL_qspi         DT_N_S_soc_S_peripheral_40000000_S_qspi_2b000
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5275:37: note: in definition of macro 'DT_CAT5'
     5275 | #define DT_CAT5(a1, a2, a3, a4, a5) a1 ## a2 ## a3 ## a4 ## a5
          |                                     ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:31: note: in expansion of macro 'DT_PROP_BY_IDX'
       38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
          |                               ^~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5269:24: note: in expansion of macro 'DT_N_NODELABEL_qspi'
     5269 | #define DT_CAT(a1, a2) a1 ## a2
          |                        ^~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT'
      196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
          |                             ^~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:30:26: note: in expansion of macro 'DT_NODELABEL'
       30 | #define QSPI_IF_BUS_NODE DT_NODELABEL(qspi)
          |                          ^~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:38:46: note: in expansion of macro 'QSPI_IF_BUS_NODE'
       38 | #define QSPI_IF_BUS_IO1_PIN   DT_PROP_BY_IDX(QSPI_IF_BUS_NODE, io_pins, 1)
          |                                              ^~~~~~~~~~~~~~~~
    /home/giannis-anastasopoulos/ncs/v3.1.1/zephyr/modules/nrf_wifi/bus/qspi_if.c:687:36: note: in expansion of macro 'QSPI_IF_BUS_IO1_PIN'
      687 |         initstruct->pins.io1_pin = QSPI_IF_BUS_IO1_PIN;
          |                                    ^~~~~~~~~~~~~~~~~~~
    [386/396] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/nRF7002DK_tcp_client-prefix/src/nRF7002DK_tcp_client-stamp/nRF7002DK_tcp_client-build /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/_sysbuild/sysbuild/images/nRF7002DK_tcp_client-prefix/src/nRF7002DK_tcp_client-stamp/nRF7002DK_tcp_client-build 
    cd /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build/nRF7002DK_tcp_client && /home/giannis-anastasopoulos/Downloads/cmake-3.27.7-linux-x86_64/bin/cmake --build .
    ninja: build stopped: subcommand failed.
    FATAL ERROR: re-build in /home/giannis-anastasopoulos/Development/Git_Projects/nRF7002DK_tcp_client/build failed (no --build-dir given)


    I hope these updates provide more clarity on my situation.


Children
No Data
Related