Intermittent TLS socket connection failure over Wi-Fi router (works with mobile hotspot)

Hardware

  • Module: Fanstel WT02P40P (dual-band 2.4 GHz / 5 GHz)

  • SoC: nRF52 + Wi-Fi coprocessor (WT02 series)

Software

  • nRF Connect SDK version: v2.6.2

  • OS: Zephyr (default networking stack)

Problem Description

We are facing intermittent issues while establishing a TLS connection to a remote server when the device is connected via a Wi-Fi router network.

The firmware gets stuck at the following API call:

connect(sock, (struct sockaddr *)&server, sizeof(struct sockaddr_in));

In many failure cases, the device reboots unexpectedly while blocked in this call.
Occasionally the connection succeeds, but application-level communication does not occur even after a successful TLS connection.

When using a mobile hotspot, the same firmware works reliably:

  • TLS connection succeeds

  • Data exchange works as expected

  • No unexpected reboots observed


Observed Behavior

  • connect() sometimes blocks indefinitely when using a Wi-Fi router

  • Device reboots during or after the connect() call

  • In some cases, TLS connection is established, but no data is exchanged

  • Behavior is intermittent (sometimes works, often fails)

  • Mobile hotspot works consistently with the same firmware and server


Additional BLE Issue

We are also observing a BLE advertising issue:

  • After long-term operation (approximately 1–2 days powered ON)

  • BLE advertising stops unexpectedly

  • Device remains powered but does not advertise anymore

  • This happens intermittently


Questions / Assistance Needed

  1. Are there any known issues with TLS socket connections over certain Wi-Fi routers in nRF Connect SDK v2.6.2?

  2. Could this be related to Wi-Fi stack timing, memory usage, or TLS configuration?

  3. Are there recommended configurations or patches for improving TLS stability over router networks?

  4. Could the BLE advertising stop be related to power management, Wi-Fi coexistence, or resource exhaustion?

Any guidance, debugging suggestions, or known limitations would be greatly appreciated.

Parents
  • Hi,

     

    Q1: Have you tried to use a newer SDK version, for instance NCS v3.2.1, to see if the issue persists?

    Q2: What is the watchdog timeout configured to?

     

    Kind regards,

    Håkon

  • Q1: Have you tried to use a newer SDK version, for instance NCS v3.2.1, to see if the issue persists?

    Answer : We have already attempted to migrate the application to NCS v3.2.1. However, with the current state of the port, after flashing the firmware the device does not produce any logs and no application behaviour is observed.

    Q2: What is the watchdog timeout configured to?

    Answer : The watchdog timeout is currently configured to approximately 10 seconds.

  • Hi,

     

    10 seconds can be low, in cases where you have re-transmits and timeout occurs. For debugging purposes, please either disable watchdog, or increase this timeout so that you get better logs.

    Is the issue related to only one specific access point, or is it the network itself? Ie. can you connect to the same service using a phone or laptop on this wifi network?

     

    DipeshParikh_ said:

    Q1: Have you tried to use a newer SDK version, for instance NCS v3.2.1, to see if the issue persists?

    Answer : We have already attempted to migrate the application to NCS v3.2.1. However, with the current state of the port, after flashing the firmware the device does not produce any logs and no application behaviour is observed.

    Try entering debug mode, to see where the device is stuck. Alternative is to use ncs/nrf/samples/net/https_client as a template and add your certificate and credentials to that.

     

    Kind regards,

    Håkon

  • Hello, Thanks for the quick response.

    Actually we are in the production phase thousand board is already with client. we have to resolve this issue as fast as we can.

    Watchdog time is 15 seconds.

    I have test device with watchdog time increase and decrease but still not able to find the root cause of this issue. 

    Q: Is the issue related to only one specific access point, or is it the network itself? Ie. can you connect to the same service using a phone or laptop on this wifi network?

    Answer: The issue is pursuing with router network only client is also facing same issue. yes we are able to connect same Wi-Fi network with our laptop and phone.

    Regards,

    Dipesh

  • Hi Dipesh,

     

    DipeshParikh_ said:
    Actually we are in the production phase thousand board is already with client. we have to resolve this issue as fast as we can.

    Thank you for this crucial information. 

    DipeshParikh_ said:
    The issue is pursuing with router network only client is also facing same issue. yes we are able to connect same Wi-Fi network with our laptop and phone.

    Q1: Can you please share the AP model number?

    Q2: Is this connect() issue reproducible with other stock examples, like nrf/samples/net/mqtt example?

    This example has not changed certificate for some years, as compared to https_client sample that recently changed. Ie. https_client requires NCS v3.3.0-preview1 to run properly.

    Q3: Do you have a wireshark sniffer trace that shows the issue?

     

    Kind regards,

    Håkon

  • Hi Håkon, Thank you for your response.

    The earlier issue has been resolved by ensuring proper handling of socket open/close operations.

    However, we are currently encountering a new problem related to system stability over extended up-time:

    • After approximately 1–2 days of operation, the controller becomes unresponsive in terms of network communication.

    • At this stage:

      • Wi-Fi remains connected

      • BLE advertising is initially active

    • When attempting to connect over BLE:

      • The connection attempt fails

      • After this failure, BLE advertising stops completely

    • The device does not recover from this state unless a manual power cycle is performed.

    Observations:

    • Initial RAM usage was around 95%, which seemed high.

    • After optimisation, RAM usage was reduced to approximately 87%.

    • With this improvement, device stability increased, and the issue now appears after 6–7 days instead of 1–2 days.

    • Current RAM usage is 77% after more RAM optimisation and this is currently under testing.

    Suspected Cause:

    This behaviour appears to be related to memory/resource exhaustion over time, possibly due to:

    • Memory leaks

    • Improper resource reallocation (e.g., sockets, buffers, BLE stack resources)

    • Fragmentation or heap exhaustion

    Request:

    Could you please provide guidance on:

    • Any known issues related to BLE stack or Wi-Fi coexistence under high memory utilisation

    • How can we resolve this issue.

    Project config file : 

    ############################################
    # Logging
    ############################################
    # CONFIG_LOG=y
    # CONFIG_LOG_BACKEND_RTT=y
    # CONFIG_USE_SEGGER_RTT=y
    # CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048
    # CONFIG_LOG_MODE_DEFERRED=y
    # CONFIG_LOG_MODE_IMMEDIATE=n
    # CONFIG_CBPRINTF_FP_SUPPORT=n

    ############################################
    # DK (LED / Button)
    ############################################
    CONFIG_DK_LIBRARY=y

    ############################################
    # Hardware Drivers
    ############################################
    CONFIG_I2C=y
    CONFIG_ADC=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_NVS=y
    # CONFIG_NVS_LOG_LEVEL_DBG=y
    CONFIG_NVS_LOG_LEVEL_INF=y

    ############################################
    # Watchdog
    ############################################
    CONFIG_WATCHDOG=y
    CONFIG_WDT_LOG_LEVEL_DBG=y
    CONFIG_WDT_DISABLE_AT_BOOT=n

    ############################################
    # Bootloader / OTA (MCUBoot)
    ############################################
    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y

    # MCUBoot image manager API
    CONFIG_IMG_MANAGER=y
    CONFIG_MCUBOOT_IMG_MANAGER=y

    CONFIG_IMG_ERASE_PROGRESSIVELY=y
    CONFIG_PM_SINGLE_IMAGE=n

    ############################################
    # Wi-Fi
    ############################################
    CONFIG_WIFI=y
    CONFIG_WIFI_NRF700X=y
    CONFIG_WPA_SUPP=y

    CONFIG_WIFI_CREDENTIALS=y
    CONFIG_WIFI_CREDENTIALS_STATIC=n
    CONFIG_WIFI_CREDENTIALS_BACKEND_SETTINGS=y
    CONFIG_WIFI_MGMT_EXT=y

    CONFIG_NET_CONNECTION_MANAGER=y
    CONFIG_L2_WIFI_CONNECTIVITY=y

    CONFIG_NRF700X_MAX_TX_AGGREGATION=2

    ############################################
    # Networking Stack
    ############################################
    CONFIG_NETWORKING=y
    CONFIG_NET_NATIVE=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_POSIX_NAMES=y
    CONFIG_POSIX_MAX_FDS=16
    CONFIG_NET_SOCKETS_POLL_MAX=6

    CONFIG_NET_L2_ETHERNET=y
    CONFIG_NET_IPV4=y
    CONFIG_NET_IPV6=y
    CONFIG_NET_TCP=y
    CONFIG_NET_DHCPV4=y
    CONFIG_DNS_RESOLVER=y
    CONFIG_NET_CONFIG_NEED_IPV4=y

    ############################################
    # TLS / Security
    ############################################
    CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
    CONFIG_TLS_CREDENTIALS=y

    CONFIG_NRF_SECURITY=y
    CONFIG_MBEDTLS=y
    CONFIG_MBEDTLS_TLS_LIBRARY=y
    CONFIG_MBEDTLS_ENABLE_HEAP=y
    CONFIG_MBEDTLS_HEAP_SIZE=57344

    CONFIG_MBEDTLS_RSA_C=y
    CONFIG_MBEDTLS_DHM_C=y
    CONFIG_MBEDTLS_SSL_SERVER_NAME_INDICATION=y

    CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY=y
    CONFIG_PSA_WANT_RSA_KEY_SIZE_2048=y

    CONFIG_NET_SOCKETS_ENABLE_DTLS=n
    CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=1

    ############################################
    # HTTP / WebSocket
    ############################################
    CONFIG_HTTP_CLIENT=y
    CONFIG_WEBSOCKET_CLIENT=y

    ############################################
    # JSON
    ############################################
    CONFIG_CJSON_LIB=y

    ############################################
    # C Library
    ############################################
    CONFIG_NEWLIB_LIBC=y
    CONFIG_NEWLIB_LIBC_NANO=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

    ############################################
    # Memory / Stacks
    ############################################
    CONFIG_MAIN_STACK_SIZE=6144
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    CONFIG_HEAP_MEM_POOL_SIZE=131072

    CONFIG_NET_TCP_WORKQ_STACK_SIZE=2048
    CONFIG_NET_TX_STACK_SIZE=2048
    CONFIG_NET_RX_STACK_SIZE=1536

    CONFIG_NET_BUF_RX_COUNT=8
    CONFIG_NET_BUF_TX_COUNT=8
    CONFIG_NET_BUF_DATA_SIZE=512
    CONFIG_NET_TC_TX_COUNT=0

    CONFIG_WIFI_INIT_PRIORITY=50

    ############################################
    # Flash / Settings
    ############################################
    CONFIG_FLASH_MAP=y
    CONFIG_SETTINGS=y
    CONFIG_SETTINGS_NVS=y
    CONFIG_SETTINGS_NVS_SECTOR_COUNT=2
    CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x2000
    CONFIG_MPU_ALLOW_FLASH_WRITE=y

    ############################################
    # Bluetooth
    ############################################
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_GATT_CLIENT=y
    CONFIG_BT_SMP=n

    CONFIG_BT_DEVICE_NAME="NKEY eLatch"

    CONFIG_BT_USER_PHY_UPDATE=y
    CONFIG_BT_USER_DATA_LEN_UPDATE=y

    CONFIG_BT_PERIPHERAL_PREF_MIN_INT=15
    CONFIG_BT_PERIPHERAL_PREF_MAX_INT=30
    CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
    CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=3200
    CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y

    # MTU / Data length
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=27
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_BUF_ACL_TX_SIZE=27
    CONFIG_BT_L2CAP_TX_MTU=27

    # Device Information Service
    CONFIG_BT_DIS=y
    CONFIG_BT_DIS_PNP=n
    CONFIG_BT_DIS_MANUF="Nexkey"
    CONFIG_BT_DIS_FW_REV=y

    CONFIG_BT_DIS_FW_REV_STR="EB.05.0C"

    Q1. This is my current project config file can we still optimise RAM memory ? 
    Q2. Sometimes logs showing below error : 

    wifi_nrf: nrf_wifi_fmac_rx_cmd_send: No space for allocating RX buffer
    wifi_nrf: nrf_wifi_fmac_rx_event_process: nrf_wifi_fmac_rx_cmd_send failed
    wifi_nrf: nrf_wifi_fmac_data_event_process: Failed for event = 3
    wifi_nrf: nrf_wifi_fmac_data_events_process: umac_process_data_event failed
    wifi_nrf: hal_rpu_eventq_process: Interrupt callback failed


    How we can resolve this ?

    Please let me know if additional logs, configuration details, or memory profiling data would help in further analysis.

    Kind regards,
    Dipesh

Reply
  • Hi Håkon, Thank you for your response.

    The earlier issue has been resolved by ensuring proper handling of socket open/close operations.

    However, we are currently encountering a new problem related to system stability over extended up-time:

    • After approximately 1–2 days of operation, the controller becomes unresponsive in terms of network communication.

    • At this stage:

      • Wi-Fi remains connected

      • BLE advertising is initially active

    • When attempting to connect over BLE:

      • The connection attempt fails

      • After this failure, BLE advertising stops completely

    • The device does not recover from this state unless a manual power cycle is performed.

    Observations:

    • Initial RAM usage was around 95%, which seemed high.

    • After optimisation, RAM usage was reduced to approximately 87%.

    • With this improvement, device stability increased, and the issue now appears after 6–7 days instead of 1–2 days.

    • Current RAM usage is 77% after more RAM optimisation and this is currently under testing.

    Suspected Cause:

    This behaviour appears to be related to memory/resource exhaustion over time, possibly due to:

    • Memory leaks

    • Improper resource reallocation (e.g., sockets, buffers, BLE stack resources)

    • Fragmentation or heap exhaustion

    Request:

    Could you please provide guidance on:

    • Any known issues related to BLE stack or Wi-Fi coexistence under high memory utilisation

    • How can we resolve this issue.

    Project config file : 

    ############################################
    # Logging
    ############################################
    # CONFIG_LOG=y
    # CONFIG_LOG_BACKEND_RTT=y
    # CONFIG_USE_SEGGER_RTT=y
    # CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048
    # CONFIG_LOG_MODE_DEFERRED=y
    # CONFIG_LOG_MODE_IMMEDIATE=n
    # CONFIG_CBPRINTF_FP_SUPPORT=n

    ############################################
    # DK (LED / Button)
    ############################################
    CONFIG_DK_LIBRARY=y

    ############################################
    # Hardware Drivers
    ############################################
    CONFIG_I2C=y
    CONFIG_ADC=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_NVS=y
    # CONFIG_NVS_LOG_LEVEL_DBG=y
    CONFIG_NVS_LOG_LEVEL_INF=y

    ############################################
    # Watchdog
    ############################################
    CONFIG_WATCHDOG=y
    CONFIG_WDT_LOG_LEVEL_DBG=y
    CONFIG_WDT_DISABLE_AT_BOOT=n

    ############################################
    # Bootloader / OTA (MCUBoot)
    ############################################
    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y

    # MCUBoot image manager API
    CONFIG_IMG_MANAGER=y
    CONFIG_MCUBOOT_IMG_MANAGER=y

    CONFIG_IMG_ERASE_PROGRESSIVELY=y
    CONFIG_PM_SINGLE_IMAGE=n

    ############################################
    # Wi-Fi
    ############################################
    CONFIG_WIFI=y
    CONFIG_WIFI_NRF700X=y
    CONFIG_WPA_SUPP=y

    CONFIG_WIFI_CREDENTIALS=y
    CONFIG_WIFI_CREDENTIALS_STATIC=n
    CONFIG_WIFI_CREDENTIALS_BACKEND_SETTINGS=y
    CONFIG_WIFI_MGMT_EXT=y

    CONFIG_NET_CONNECTION_MANAGER=y
    CONFIG_L2_WIFI_CONNECTIVITY=y

    CONFIG_NRF700X_MAX_TX_AGGREGATION=2

    ############################################
    # Networking Stack
    ############################################
    CONFIG_NETWORKING=y
    CONFIG_NET_NATIVE=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_POSIX_NAMES=y
    CONFIG_POSIX_MAX_FDS=16
    CONFIG_NET_SOCKETS_POLL_MAX=6

    CONFIG_NET_L2_ETHERNET=y
    CONFIG_NET_IPV4=y
    CONFIG_NET_IPV6=y
    CONFIG_NET_TCP=y
    CONFIG_NET_DHCPV4=y
    CONFIG_DNS_RESOLVER=y
    CONFIG_NET_CONFIG_NEED_IPV4=y

    ############################################
    # TLS / Security
    ############################################
    CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
    CONFIG_TLS_CREDENTIALS=y

    CONFIG_NRF_SECURITY=y
    CONFIG_MBEDTLS=y
    CONFIG_MBEDTLS_TLS_LIBRARY=y
    CONFIG_MBEDTLS_ENABLE_HEAP=y
    CONFIG_MBEDTLS_HEAP_SIZE=57344

    CONFIG_MBEDTLS_RSA_C=y
    CONFIG_MBEDTLS_DHM_C=y
    CONFIG_MBEDTLS_SSL_SERVER_NAME_INDICATION=y

    CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY=y
    CONFIG_PSA_WANT_RSA_KEY_SIZE_2048=y

    CONFIG_NET_SOCKETS_ENABLE_DTLS=n
    CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=1

    ############################################
    # HTTP / WebSocket
    ############################################
    CONFIG_HTTP_CLIENT=y
    CONFIG_WEBSOCKET_CLIENT=y

    ############################################
    # JSON
    ############################################
    CONFIG_CJSON_LIB=y

    ############################################
    # C Library
    ############################################
    CONFIG_NEWLIB_LIBC=y
    CONFIG_NEWLIB_LIBC_NANO=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

    ############################################
    # Memory / Stacks
    ############################################
    CONFIG_MAIN_STACK_SIZE=6144
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    CONFIG_HEAP_MEM_POOL_SIZE=131072

    CONFIG_NET_TCP_WORKQ_STACK_SIZE=2048
    CONFIG_NET_TX_STACK_SIZE=2048
    CONFIG_NET_RX_STACK_SIZE=1536

    CONFIG_NET_BUF_RX_COUNT=8
    CONFIG_NET_BUF_TX_COUNT=8
    CONFIG_NET_BUF_DATA_SIZE=512
    CONFIG_NET_TC_TX_COUNT=0

    CONFIG_WIFI_INIT_PRIORITY=50

    ############################################
    # Flash / Settings
    ############################################
    CONFIG_FLASH_MAP=y
    CONFIG_SETTINGS=y
    CONFIG_SETTINGS_NVS=y
    CONFIG_SETTINGS_NVS_SECTOR_COUNT=2
    CONFIG_PM_PARTITION_SIZE_NVS_STORAGE=0x2000
    CONFIG_MPU_ALLOW_FLASH_WRITE=y

    ############################################
    # Bluetooth
    ############################################
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_GATT_CLIENT=y
    CONFIG_BT_SMP=n

    CONFIG_BT_DEVICE_NAME="NKEY eLatch"

    CONFIG_BT_USER_PHY_UPDATE=y
    CONFIG_BT_USER_DATA_LEN_UPDATE=y

    CONFIG_BT_PERIPHERAL_PREF_MIN_INT=15
    CONFIG_BT_PERIPHERAL_PREF_MAX_INT=30
    CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
    CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=3200
    CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=y

    # MTU / Data length
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=27
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_BUF_ACL_TX_SIZE=27
    CONFIG_BT_L2CAP_TX_MTU=27

    # Device Information Service
    CONFIG_BT_DIS=y
    CONFIG_BT_DIS_PNP=n
    CONFIG_BT_DIS_MANUF="Nexkey"
    CONFIG_BT_DIS_FW_REV=y

    CONFIG_BT_DIS_FW_REV_STR="EB.05.0C"

    Q1. This is my current project config file can we still optimise RAM memory ? 
    Q2. Sometimes logs showing below error : 

    wifi_nrf: nrf_wifi_fmac_rx_cmd_send: No space for allocating RX buffer
    wifi_nrf: nrf_wifi_fmac_rx_event_process: nrf_wifi_fmac_rx_cmd_send failed
    wifi_nrf: nrf_wifi_fmac_data_event_process: Failed for event = 3
    wifi_nrf: nrf_wifi_fmac_data_events_process: umac_process_data_event failed
    wifi_nrf: hal_rpu_eventq_process: Interrupt callback failed


    How we can resolve this ?

    Please let me know if additional logs, configuration details, or memory profiling data would help in further analysis.

    Kind regards,
    Dipesh

Children
  • Hi Dipesh,

     

    DipeshParikh_ said:

    The earlier issue has been resolved by ensuring proper handling of socket open/close operations.

    Great to hear that this was solved.

      

    DipeshParikh_ said:

    However, we are currently encountering a new problem related to system stability over extended up-time:

    • After approximately 1–2 days of operation, the controller becomes unresponsive in terms of network communication.

    • At this stage:

      • Wi-Fi remains connected

      • BLE advertising is initially active

    • When attempting to connect over BLE:

      • The connection attempt fails

      • After this failure, BLE advertising stops completely

    • The device does not recover from this state unless a manual power cycle is performed.

    Do you have any added information, in terms of logs or similar, that can help pin-point what has gone wrong in this case?

    DipeshParikh_ said:

    Q1. This is my current project config file can we still optimise RAM memory ? 

    I believe it is better to focus on trapping the issue, ie. recreating the scenario and see if one can work around that or fix it.

    DipeshParikh_ said:

    Q2. Sometimes logs showing below error : 

    wifi_nrf: nrf_wifi_fmac_rx_cmd_send: No space for allocating RX buffer
    wifi_nrf: nrf_wifi_fmac_rx_event_process: nrf_wifi_fmac_rx_cmd_send failed
    wifi_nrf: nrf_wifi_fmac_data_event_process: Failed for event = 3
    wifi_nrf: nrf_wifi_fmac_data_events_process: umac_process_data_event failed
    wifi_nrf: hal_rpu_eventq_process: Interrupt callback failed


    How we can resolve this ?

    Please let me know if additional logs, configuration details, or memory profiling data would help in further analysis.

    This is a allocation issue, usually related to the heap.

    DipeshParikh_ said:
    CONFIG_HEAP_MEM_POOL_SIZE=131072

     

    What ncs version are you currently running?

    If still on v2.6.2, could you please update to the latest v2.6.5, to see if the issue still persists?

     

    Kind regards,

    Håkon

  • Hi Håkon, Thank you for quick response.

    I'm using ncs v2.6.2, i there any known issue with this version ?

  • Yes, there are a couple of fixes wrt. Wi-Fi:

    https://github.com/nrfconnect/sdk-nrf/commits/v2.6-branch/

     

    Do you have any logs to share, as per my previous questions?

     

    Kind regards,

    Håkon

  • Ok then let me check with the ncs v2.6.5.

    Device is under testing with logs once we get issue again I will share logs here.

    I'm trying to build my project using the ncs v2.6.5 but getting some errors are below.

    [195/315] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/nrf_qspi_nor.c.obj
    FAILED: zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/nrf_qspi_nor.c.obj 
    ccache /home/dipeshparikh/ncs/toolchains/43683a87ea/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DCONFIG_NRF_WIFI_FW_BIN=/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/fw_bins/default/nrf70.bin -DCONFIG_ZEPHYR -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-want-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 -DNRF5340_XXAA_APPLICATION -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -I/home/dipeshparikh/ncs/v2.6.5/zephyr/include -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/build/zephyr/include/generated -I/home/dipeshparikh/ncs/v2.6.5/zephyr/soc/arm/nordic_nrf/nrf53 -I/home/dipeshparikh/ncs/v2.6.5/zephyr/lib/libc/newlib/include -I/home/dipeshparikh/ncs/v2.6.5/zephyr/soc/common/nordic_nrf/. -I/home/dipeshparikh/ncs/v2.6.5/zephyr/soc/arm/nordic_nrf/common/. -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/mgmt/mcumgr/util/include -I/home/dipeshparikh/ncs/v2.6.5/bootloader/mcuboot/boot/bootutil/include -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/mgmt/mcumgr/transport/include -I/home/dipeshparikh/ncs/v2.6.5/bootloader/mcuboot/boot/zephyr/include -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/bluetooth -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/net/l2 -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/net/lib/dns/. -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/net/ip -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/net/lib/sockets -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/net/conn_mgr/. -I/home/dipeshparikh/ncs/v2.6.5/zephyr/subsys/settings/include -I/home/dipeshparikh/ncs/v2.6.5/nrf/include -I/home/dipeshparikh/ncs/v2.6.5/nrf/modules/hostap/src -I/home/dipeshparikh/ncs/v2.6.5/nrf/modules/hostap/../../../modules/lib/hostap -I/home/dipeshparikh/ncs/v2.6.5/nrf/modules/hostap/../../../modules/lib/hostap/wpa_supplicant -I/home/dipeshparikh/ncs/v2.6.5/nrf/modules/hostap/../../../modules/lib/hostap/src -I/home/dipeshparikh/ncs/v2.6.5/nrf/drivers/wifi/nrf700x/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/utils/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/os_if/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/bus_if/bus/qspi/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/bus_if/bal/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/fw_if/umac_if/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/fw_load/mips/fw/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/hw_if/hal/inc -I/home/dipeshparikh/ncs/v2.6.5/nrf/drivers/wifi/nrf700x/src/qspi/inc -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/hw_if/hal/inc/fw -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/fw_if/umac_if/inc/fw -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/nrf_wifi/fw_if/umac_if/inc/default -I/home/dipeshparikh/ncs/v2.6.5/nrf/tests/include -I/home/dipeshparikh/ncs/v2.6.5/modules/lib/cjson -I/home/dipeshparikh/ncs/v2.6.5/nrf/modules/cjson/include -I/home/dipeshparikh/ncs/v2.6.5/modules/hal/cmsis/CMSIS/Core/Include -I/home/dipeshparikh/ncs/v2.6.5/zephyr/modules/cmsis/. -I/home/dipeshparikh/ncs/v2.6.5/modules/hal/nordic/nrfx -I/home/dipeshparikh/ncs/v2.6.5/modules/hal/nordic/nrfx/drivers/include -I/home/dipeshparikh/ncs/v2.6.5/modules/hal/nordic/nrfx/mdk -I/home/dipeshparikh/ncs/v2.6.5/zephyr/modules/hal_nordic/nrfx/. -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/build/modules/libmetal/libmetal/lib/include -I/home/dipeshparikh/ncs/v2.6.5/modules/lib/open-amp/open-amp/lib/include -I/home/dipeshparikh/ncs/v2.6.5/modules/crypto/tinycrypt/lib/include -I/home/dipeshparikh/ncs/v2.6.5/modules/lib/zcbor/include -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/src -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/src/platform -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/src/apdu -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/src/t1oi2c -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/src/example -I/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/build/modules/nrf/subsys/nrf_security/src/include/generated -I/home/dipeshparikh/ncs/v2.6.5/nrf/subsys/nrf_security/include -I/home/dipeshparikh/ncs/v2.6.5/nrf/ext/oberon/psa/core/include -I/home/dipeshparikh/ncs/v2.6.5/nrf/ext/oberon/psa/core/library -I/home/dipeshparikh/ncs/v2.6.5/modules/crypto/mbedtls/include -I/home/dipeshparikh/ncs/v2.6.5/modules/crypto/mbedtls/library -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/crypto/nrf_oberon/include -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/home/dipeshparikh/ncs/v2.6.5/nrf/ext/oberon/psa/drivers -I/home/dipeshparikh/ncs/v2.6.5/nrfxlib/softdevice_controller/include -isystem /home/dipeshparikh/ncs/v2.6.5/zephyr/lib/libc/common/include -isystem /home/dipeshparikh/ncs/v2.6.5/nrfxlib/crypto/nrf_cc312_platform/include -Wshadow -fno-strict-aliasing -Os -imacros /home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/build/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/dipeshparikh/ncs/toolchains/43683a87ea/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/dipeshparikh/ncs/v2.6.5/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/dipeshparikh/ncs/v2.6.5=WEST_TOPDIR -ffunction-sections -fdata-sections -D_POSIX_THREADS -std=c99 -MD -MT zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/nrf_qspi_nor.c.obj -MF zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/nrf_qspi_nor.c.obj.d -o zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/nrf_qspi_nor.c.obj -c /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:69:2: error: #error "No size specified. 'size' or 'size-in-bytes' must be set"
       69 | #error "No size specified. 'size' or 'size-in-bytes' must be set"
          |  ^~~~~
    In file included from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain.h:50,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util.h:18,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:26,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:12,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/flash.h:28,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:10:
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: expected ')' before 'DT_N_INST_0_nordic_qspi_nor_PATH'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:60: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                            ^~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:496:31: note: in expansion of macro 'DT_CAT'
      496 | #define DT_NODE_PATH(node_id) DT_CAT(node_id, _PATH)
          |                               ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:73:22: note: in expansion of macro 'DT_NODE_PATH'
       73 |              "Node " DT_NODE_PATH(DT_DRV_INST(0)) " has both size and size-in-bytes "
          |                      ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:73:35: note: in expansion of macro 'DT_DRV_INST'
       73 |              "Node " DT_NODE_PATH(DT_DRV_INST(0)) " has both size and size-in-bytes "
          |                                   ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:50: note: to match this '('
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                  ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:72:1: note: in expansion of macro 'BUILD_ASSERT'
       72 | BUILD_ASSERT(!(DT_INST_NODE_HAS_PROP(0, size_in_bytes) && DT_INST_NODE_HAS_PROP(0, size)),
          | ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_P_sck_frequency' undeclared here (not in a function)
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:615:32: note: in expansion of macro 'DT_CAT3'
      615 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
          |                                ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:77:30: note: in expansion of macro 'DT_INST_PROP'
       77 | #define INST_0_SCK_FREQUENCY DT_INST_PROP(0, sck_frequency)
          |                              ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:82:14: note: in expansion of macro 'INST_0_SCK_FREQUENCY'
       82 | BUILD_ASSERT(INST_0_SCK_FREQUENCY >= (NRF_QSPI_BASE_CLOCK_FREQ / 16),
          |              ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: expression in static assertion is not an integer
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:615:32: note: in expansion of macro 'DT_CAT3'
      615 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
          |                                ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:77:30: note: in expansion of macro 'DT_INST_PROP'
       77 | #define INST_0_SCK_FREQUENCY DT_INST_PROP(0, sck_frequency)
          |                              ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:82:14: note: in expansion of macro 'INST_0_SCK_FREQUENCY'
       82 | BUILD_ASSERT(INST_0_SCK_FREQUENCY >= (NRF_QSPI_BASE_CLOCK_FREQ / 16),
          |              ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_P_cpol' undeclared here (not in a function); did you mean 'DT_N_INST_0_nordic_mbox_nrf_ipc'?
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:615:32: note: in expansion of macro 'DT_CAT3'
      615 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
          |                                ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:136:14: note: in expansion of macro 'DT_INST_PROP'
      136 | BUILD_ASSERT(DT_INST_PROP(0, cpol) == DT_INST_PROP(0, cpha),
          |              ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_P_cpha' undeclared here (not in a function); did you mean 'DT_N_INST_0_nordic_mbox_nrf_ipc'?
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:615:32: note: in expansion of macro 'DT_CAT3'
      615 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
          |                                ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:136:39: note: in expansion of macro 'DT_INST_PROP'
      136 | BUILD_ASSERT(DT_INST_PROP(0, cpol) == DT_INST_PROP(0, cpha),
          |                                       ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: expression in static assertion is not an integer
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:615:32: note: in expansion of macro 'DT_CAT3'
      615 | #define DT_PROP(node_id, prop) DT_CAT3(node_id, _P_, prop)
          |                                ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:136:14: note: in expansion of macro 'DT_INST_PROP'
      136 | BUILD_ASSERT(DT_INST_PROP(0, cpol) == DT_INST_PROP(0, cpha),
          |              ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:144:28: error: 'JESD216_DW15_QER_VAL_DT_N_INST_0_nordic_qspi_nor_P_quad_enable_requirements_STRING_TOKEN' undeclared here (not in a function)
      144 | #define INST_0_QER _CONCAT(JESD216_DW15_QER_VAL_, \
          |                            ^~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:160:15: note: in expansion of macro 'IS_EQUAL'
      160 | BUILD_ASSERT((IS_EQUAL(INST_0_QER, JESD216_DW15_QER_VAL_NONE)
          |               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/common.h:138:23: note: in expansion of macro '_DO_CONCAT'
      138 | #define _CONCAT(x, y) _DO_CONCAT(x, y)
          |                       ^~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:144:20: note: in expansion of macro '_CONCAT'
      144 | #define INST_0_QER _CONCAT(JESD216_DW15_QER_VAL_, \
          |                    ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:160:24: note: in expansion of macro 'INST_0_QER'
      160 | BUILD_ASSERT((IS_EQUAL(INST_0_QER, JESD216_DW15_QER_VAL_NONE)
          |                        ^~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:160:14: error: expression in static assertion is not an integer
      160 | BUILD_ASSERT((IS_EQUAL(INST_0_QER, JESD216_DW15_QER_VAL_NONE)
          |              ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c: In function 'configure_chip':
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:604:39: warning: unused variable 'dev_config' [-Wunused-variable]
      604 |         const struct qspi_nor_config *dev_config = dev->config;
          |                                       ^~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c: In function 'qspi_nor_init':
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_BUS_IRQ_IDX_0_VAL_priority' undeclared (first use in this function)
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/arm/irq.h:120:9: note: in expansion of macro '_CHECK_PRIO'
      120 |         _CHECK_PRIO(priority_p, flags_p) \
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/irq.h:49:9: note: in expansion of macro 'ARCH_IRQ_CONNECT'
       49 |         ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
          |         ^~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:9: note: in expansion of macro 'IRQ_CONNECT'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2384:9: note: in expansion of macro 'DT_CAT5'
     2384 |         DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
          |         ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2411:31: note: in expansion of macro 'DT_IRQ_BY_IDX'
     2411 | #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
          |                               ^~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:41: note: in expansion of macro 'DT_IRQ'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |                                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3261:25: note: in expansion of macro 'DT_CAT'
     3261 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
          |                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:27: note: in expansion of macro 'DT_BUS'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                           ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:34: note: in expansion of macro 'DT_DRV_INST'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:140:19: note: in expansion of macro 'DT_INST_BUS'
      140 | #define QSPI_NODE DT_INST_BUS(0)
          |                   ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:48: note: in expansion of macro 'QSPI_NODE'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |                                                ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: note: each undeclared identifier is reported only once for each function it appears in
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/arm/irq.h:120:9: note: in expansion of macro '_CHECK_PRIO'
      120 |         _CHECK_PRIO(priority_p, flags_p) \
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/irq.h:49:9: note: in expansion of macro 'ARCH_IRQ_CONNECT'
       49 |         ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
          |         ^~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:9: note: in expansion of macro 'IRQ_CONNECT'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2384:9: note: in expansion of macro 'DT_CAT5'
     2384 |         DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
          |         ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2411:31: note: in expansion of macro 'DT_IRQ_BY_IDX'
     2411 | #define DT_IRQ(node_id, cell) DT_IRQ_BY_IDX(node_id, 0, cell)
          |                               ^~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:41: note: in expansion of macro 'DT_IRQ'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |                                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3261:25: note: in expansion of macro 'DT_CAT'
     3261 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
          |                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:27: note: in expansion of macro 'DT_BUS'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                           ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:34: note: in expansion of macro 'DT_DRV_INST'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:140:19: note: in expansion of macro 'DT_INST_BUS'
      140 | #define QSPI_NODE DT_INST_BUS(0)
          |                   ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:48: note: in expansion of macro 'QSPI_NODE'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |                                                ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/arm/irq.h:97:22: error: expression in static assertion is not an integer
       97 |         BUILD_ASSERT(((flags_p & IRQ_ZERO_LATENCY) && \
          |                      ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/arm/irq.h:120:9: note: in expansion of macro '_CHECK_PRIO'
      120 |         _CHECK_PRIO(priority_p, flags_p) \
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/irq.h:49:9: note: in expansion of macro 'ARCH_IRQ_CONNECT'
       49 |         ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
          |         ^~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:9: note: in expansion of macro 'IRQ_CONNECT'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |         ^~~~~~~~~~~
    In file included from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/arm/irq.h:19,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/arm/arch.h:27,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/arch/cpu.h:19,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/kernel_includes.h:37,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/kernel.h:17,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/pm/device.h:11,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:12:
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_BUS_IRQ_IDX_0_VAL_irq' undeclared (first use in this function)
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sw_isr_table.h:201:26: note: in definition of macro 'Z_ISR_DECLARE'
      201 |                         {irq, flags, (void *)&func, (const void *)param}
          |                          ^~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/irq.h:49:9: note: in expansion of macro 'ARCH_IRQ_CONNECT'
       49 |         ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
          |         ^~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:9: note: in expansion of macro 'IRQ_CONNECT'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:69:53: note: in expansion of macro '__DEBRACKET'
       69 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
          |                                                     ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
       64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
          |         ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
       59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro 'Z_COND_CODE_1'
      180 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
          |         ^~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2480:9: note: in expansion of macro 'COND_CODE_1'
     2480 |         COND_CODE_1(IS_ENABLED(CONFIG_MULTI_LEVEL_INTERRUPTS),                                     \
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2384:9: note: in expansion of macro 'DT_CAT5'
     2384 |         DT_CAT5(node_id, _IRQ_IDX_, idx, _VAL_, cell)
          |         ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2441:47: note: in expansion of macro 'DT_IRQ_BY_IDX'
     2441 | #define DT_IRQN_BY_IDX_INTERNAL(node_id, idx) DT_IRQ_BY_IDX(node_id, idx, irq)
          |                                               ^~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2482:22: note: in expansion of macro 'DT_IRQN_BY_IDX_INTERNAL'
     2482 |                     (DT_IRQN_BY_IDX_INTERNAL(node_id, idx)))
          |                      ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:2494:26: note: in expansion of macro 'DT_IRQN_BY_IDX'
     2494 | #define DT_IRQN(node_id) DT_IRQN_BY_IDX(node_id, 0)
          |                          ^~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:21: note: in expansion of macro 'DT_IRQN'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |                     ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3261:25: note: in expansion of macro 'DT_CAT'
     3261 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
          |                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:27: note: in expansion of macro 'DT_BUS'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                           ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:34: note: in expansion of macro 'DT_DRV_INST'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:140:19: note: in expansion of macro 'DT_INST_BUS'
      140 | #define QSPI_NODE DT_INST_BUS(0)
          |                   ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1084:29: note: in expansion of macro 'QSPI_NODE'
     1084 |         IRQ_CONNECT(DT_IRQN(QSPI_NODE), DT_IRQ(QSPI_NODE, priority),
          |                             ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c: At top level:
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1122:29: error: 'INST_0_BYTES' undeclared here (not in a function); did you mean 'INST_0_QER'?
     1122 | #define LAYOUT_PAGES_COUNT (INST_0_BYTES / \
          |                             ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1126:15: note: in expansion of macro 'LAYOUT_PAGES_COUNT'
     1126 |               LAYOUT_PAGES_COUNT)
          |               ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1125:14: error: expression in static assertion is not an integer
     1125 | BUILD_ASSERT((CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE *
          |              ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:51: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                   ^~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: expected ')' before 'DT_N_INST_0_nordic_qspi_nor_BUS_PATH'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:60: note: in definition of macro 'BUILD_ASSERT'
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                            ^~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:496:31: note: in expansion of macro 'DT_CAT'
      496 | #define DT_NODE_PATH(node_id) DT_CAT(node_id, _PATH)
          |                               ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/soc/arm/nordic_nrf/common/./soc_nrf_common.h:237:22: note: in expansion of macro 'DT_NODE_PATH'
      237 |                      DT_NODE_PATH(node_id) " defined without sleep state")
          |                      ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1361:1: note: in expansion of macro 'NRF_DT_CHECK_NODE_HAS_PINCTRL_SLEEP'
     1361 | NRF_DT_CHECK_NODE_HAS_PINCTRL_SLEEP(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3261:25: note: in expansion of macro 'DT_CAT'
     3261 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
          |                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:27: note: in expansion of macro 'DT_BUS'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                           ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:34: note: in expansion of macro 'DT_DRV_INST'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:140:19: note: in expansion of macro 'DT_INST_BUS'
      140 | #define QSPI_NODE DT_INST_BUS(0)
          |                   ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1361:37: note: in expansion of macro 'QSPI_NODE'
     1361 | NRF_DT_CHECK_NODE_HAS_PINCTRL_SLEEP(QSPI_NODE);
          |                                     ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:87:50: note: to match this '('
       87 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
          |                                                  ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/soc/arm/nordic_nrf/common/./soc_nrf_common.h:235:9: note: in expansion of macro 'BUILD_ASSERT'
      235 |         BUILD_ASSERT(!IS_ENABLED(CONFIG_PM_DEVICE) ||                          \
          |         ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1361:1: note: in expansion of macro 'NRF_DT_CHECK_NODE_HAS_PINCTRL_SLEEP'
     1361 | NRF_DT_CHECK_NODE_HAS_PINCTRL_SLEEP(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/irq_multilevel.h:15,
                     from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:20:
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:241:51: error: expected ')' before '(' token
      241 |                      Z_PINCTRL_STATE_PINS_DEFINE, (;), node_id);               \
          |                                                   ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:69: note: in definition of macro 'LISTIFY'
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                                                     ^~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    In file included from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:34:
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:44: warning: implicit declaration of function 'Z_UTIL_LISTIFY_DT_N_INST_0_nordic_qspi_nor_BUS_PINCTRL_NUM' [-Wimplicit-function-declaration]
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                            ^~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in definition of macro 'UTIL_PRIMITIVE_CAT'
      105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
          |                                    ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:35: note: in expansion of macro 'UTIL_CAT'
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                   ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:172:17: note: in expansion of macro 'LISTIFY'
      172 |                 LISTIFY(DT_NUM_PINCTRL_STATES(node_id),                        \
          |                 ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:242:9: note: in expansion of macro 'Z_PINCTRL_STATES_DEFINE'
      242 |         Z_PINCTRL_STATES_DEFINE(node_id)                                       \
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:173:30: error: 'Z_PINCTRL_STATE_INIT' undeclared here (not in a function)
      173 |                              Z_PINCTRL_STATE_INIT, (,), node_id)               \
          |                              ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:66: note: in definition of macro 'LISTIFY'
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                                                  ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:242:9: note: in expansion of macro 'Z_PINCTRL_STATES_DEFINE'
      242 |         Z_PINCTRL_STATES_DEFINE(node_id)                                       \
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:173:53: error: expected expression before ',' token
      173 |                              Z_PINCTRL_STATE_INIT, (,), node_id)               \
          |                                                     ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:69: note: in definition of macro 'LISTIFY'
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                                                     ^~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:242:9: note: in expansion of macro 'Z_PINCTRL_STATES_DEFINE'
      242 |         Z_PINCTRL_STATES_DEFINE(node_id)                                       \
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:173:53: warning: left-hand operand of comma expression has no effect [-Wunused-value]
      173 |                              Z_PINCTRL_STATE_INIT, (,), node_id)               \
          |                                                     ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:69: note: in definition of macro 'LISTIFY'
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                                                     ^~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:242:9: note: in expansion of macro 'Z_PINCTRL_STATES_DEFINE'
      242 |         Z_PINCTRL_STATES_DEFINE(node_id)                                       \
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_BUS' undeclared here (not in a function); did you mean 'DT_N_INST_0_nordic_mbox_nrf_ipc'?
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:418:74: note: in definition of macro 'LISTIFY'
      418 | #define LISTIFY(LEN, F, sep, ...) UTIL_CAT(Z_UTIL_LISTIFY_, LEN)(F, sep, __VA_ARGS__)
          |                                                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:242:9: note: in expansion of macro 'Z_PINCTRL_STATES_DEFINE'
      242 |         Z_PINCTRL_STATES_DEFINE(node_id)                                       \
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3261:25: note: in expansion of macro 'DT_CAT'
     3261 | #define DT_BUS(node_id) DT_CAT(node_id, _BUS)
          |                         ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:27: note: in expansion of macro 'DT_BUS'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                           ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3915:34: note: in expansion of macro 'DT_DRV_INST'
     3915 | #define DT_INST_BUS(inst) DT_BUS(DT_DRV_INST(inst))
          |                                  ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:140:19: note: in expansion of macro 'DT_INST_BUS'
      140 | #define QSPI_NODE DT_INST_BUS(0)
          |                   ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:19: note: in expansion of macro 'QSPI_NODE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          |                   ^~~~~~~~~
    In file included from /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/gcc.h:98:
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:101:17: error: '__pinctrl_dev_config__device_dts_ord_DT_N_INST_0_nordic_qspi_nor_BUS_ORD' undeclared here (not in a function); did you mean '__pinctrl_states__device_dts_ord_DT_N_INST_0_nordic_qspi_nor_BUS_ORD'?
      101 |         _CONCAT(__pinctrl_dev_config, DEVICE_DT_NAME_GET(node_id))
          |                 ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
      137 | #define _DO_CONCAT(x, y) x ## y
          |                          ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:101:9: note: in expansion of macro '_CONCAT'
      101 |         _CONCAT(__pinctrl_dev_config, DEVICE_DT_NAME_GET(node_id))
          |         ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:262:45: note: in expansion of macro 'Z_PINCTRL_DEV_CONFIG_NAME'
      262 | #define PINCTRL_DT_DEV_CONFIG_GET(node_id) &Z_PINCTRL_DEV_CONFIG_NAME(node_id)
          |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1368:17: note: in expansion of macro 'PINCTRL_DT_DEV_CONFIG_GET'
     1368 |         .pcfg = PINCTRL_DT_DEV_CONFIG_GET(QSPI_NODE),
          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_P_address_size_32' undeclared here (not in a function)
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:4343:29: note: in definition of macro 'DT_CAT3'
     4343 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1380:29: note: in expansion of macro 'DT_INST_PROP'
     1380 |                 .addrmode = DT_INST_PROP(0, address_size_32)
          |                             ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_P_sck_delay' undeclared here (not in a function)
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:4343:29: note: in definition of macro 'DT_CAT3'
     4343 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1386:30: note: in expansion of macro 'DT_INST_PROP'
     1386 |                 .sck_delay = DT_INST_PROP(0, sck_delay),
          |                              ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_P_jedec_id' undeclared here (not in a function); did you mean 'DT_N_INST_0_nordic_nrf_qdec'?
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:4343:29: note: in definition of macro 'DT_CAT3'
     4343 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
          |                             ^~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:34: note: in expansion of macro 'DT_PROP'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                  ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3521:42: note: in expansion of macro 'DT_DRV_INST'
     3521 | #define DT_INST_PROP(inst, prop) DT_PROP(DT_DRV_INST(inst), prop)
          |                                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1392:15: note: in expansion of macro 'DT_INST_PROP'
     1392 |         .id = DT_INST_PROP(0, jedec_id),
          |               ^~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:40: error: 'DT_N_INST_0_nordic_qspi_nor_FULL_NAME' undeclared here (not in a function); did you mean 'DT_N_S_nordic_wlan0_FULL_NAME'?
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                                        ^~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:897:25: note: in definition of macro 'Z_DEVICE_INIT'
      897 |                 .name = name_,                                                 \
          |                         ^~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:1011:9: note: in expansion of macro 'Z_DEVICE_BASE_DEFINE'
     1011 |         Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, pm, data, config, level,   \
          |         ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:185:9: note: in expansion of macro 'Z_DEVICE_DEFINE'
      185 |         Z_DEVICE_DEFINE(node_id, Z_DEVICE_DT_DEV_ID(node_id),                  \
          |         ^~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:69:53: note: in expansion of macro '__DEBRACKET'
       69 | #define __GET_ARG2_DEBRACKET(ignore_this, val, ...) __DEBRACKET val
          |                                                     ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
       64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
          |         ^~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
       59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro 'Z_COND_CODE_1'
      180 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
          |         ^~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:778:9: note: in expansion of macro 'COND_CODE_1'
      778 |         COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
          |         ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:150:9: note: in expansion of macro 'DT_PROP_OR'
      150 |         DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
          |         ^~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:522:36: note: in expansion of macro 'DT_CAT'
      522 | #define DT_NODE_FULL_NAME(node_id) DT_CAT(node_id, _FULL_NAME)
          |                                    ^~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:150:36: note: in expansion of macro 'DT_NODE_FULL_NAME'
      150 |         DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id))
          |                                    ^~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:186:25: note: in expansion of macro 'DEVICE_DT_NAME'
      186 |                         DEVICE_DT_NAME(node_id), init_fn, pm, data, config,    \
          |                         ^~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:200:9: note: in expansion of macro 'DEVICE_DT_DEFINE'
      200 |         DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)
          |         ^~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/sys/util_internal.h:104:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
      104 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
          |                          ^~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:334:31: note: in expansion of macro 'UTIL_CAT'
      334 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
          |                               ^~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/devicetree.h:3319:27: note: in expansion of macro 'DT_INST'
     3319 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT)
          |                           ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/device.h:200:26: note: in expansion of macro 'DT_DRV_INST'
      200 |         DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__)
          |                          ^~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1397:1: note: in expansion of macro 'DEVICE_DT_INST_DEFINE'
     1397 | DEVICE_DT_INST_DEFINE(0, qspi_nor_init, PM_DEVICE_DT_INST_GET(0),
          | ^~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:110:17: warning: '__pinctrl_states__device_dts_ord_DT_N_INST_0_nordic_qspi_nor_BUS_ORD' defined but not used [-Wunused-const-variable=]
      110 |         _CONCAT(__pinctrl_states, DEVICE_DT_NAME_GET(node_id))
          |                 ^~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
      137 | #define _DO_CONCAT(x, y) x ## y
          |                          ^
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:110:9: note: in expansion of macro '_CONCAT'
      110 |         _CONCAT(__pinctrl_states, DEVICE_DT_NAME_GET(node_id))
          |         ^~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:171:9: note: in expansion of macro 'Z_PINCTRL_STATES_NAME'
      171 |         Z_PINCTRL_STATES_NAME(node_id)[] = {                                   \
          |         ^~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/include/zephyr/drivers/pinctrl.h:242:9: note: in expansion of macro 'Z_PINCTRL_STATES_DEFINE'
      242 |         Z_PINCTRL_STATES_DEFINE(node_id)                                       \
          |         ^~~~~~~~~~~~~~~~~~~~~~~
    /home/dipeshparikh/ncs/v2.6.5/zephyr/drivers/flash/nrf_qspi_nor.c:1363:1: note: in expansion of macro 'PINCTRL_DT_DEFINE'
     1363 | PINCTRL_DT_DEFINE(QSPI_NODE);
          | ^~~~~~~~~~~~~~~~~
    [200/315] Building C object modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/src/fmac_main.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /home/dipeshparikh/ncs/toolchains/43683a87ea/usr/local/bin/cmake --build /home/dipeshparikh/Downloads/nexkey-controller-board-development-NexKey_1000Board_Testing/NKEY_OTA/build

    Below is my main config file : 

    # General
    CONFIG_FLASH=y
    CONFIG_MULTITHREADING=y
    CONFIG_MAIN_STACK_SIZE=8192
    
    # MCUBoot and Partition Manager
    CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
    CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000
    CONFIG_BOOT_MAX_IMG_SECTORS=256
    CONFIG_BOOT_ERASE_PROGRESSIVELY=y
    CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y
    
    # Use minimal C library instead of the Picolib
    CONFIG_MINIMAL_LIBC=y
    # CONFIG_UART_CONSOLE=n
    # CONFIG_NORDIC_QSPI_NOR=n
    
    # Ensure progressive erasing during OTA updates
    
    
    # Ensure flash memory layout is properly handled
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    CONFIG_SETTINGS_NVS=y
    CONFIG_FLASH_MAP=y

    Below is my common dts file : 

    /*
     * Copyright (c) 2022 Nordic Semiconductor ASA
     *
     * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
     */
    #include "nrf5340_cpuapp_common-pinctrl.dtsi"
    
    / {
    
    	chosen {
    		zephyr,console = &uart0;
    		zephyr,shell-uart = &uart0;
    		zephyr,uart-mcumgr = &uart0;
    		zephyr,bt-mon-uart = &uart0;
    		zephyr,bt-c2h-uart = &uart0;
    		zephyr,bt-hci-ipc = &ipc0;
    		nordic,802154-spinel-ipc = &ipc0;
    		zephyr,ieee802154 = &ieee802154;
    	};
    
    	leds {
    		compatible = "gpio-leds";
    		led0: led_0 {
    			gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
    			label = "Green LED 0";
    		};
    		led1: led_1 {
    			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
    			label = "Green LED 1";
    		};
    	};
    
    	pwmleds {
    		compatible = "pwm-leds";
    		pwm_led0: pwm_led_0 {
    			pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
    		};
    	};
    
    	buttons {
    		compatible = "gpio-keys";
    		button0: button_0 {
    			gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    			label = "Push button 1";
    		};
    		button1: button_1 {
    			gpios = <&gpio1 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
    			label = "Push button 2";
    		};
    	};
    
    	arduino_header: connector {
    		compatible = "arduino-header-r3";
    		#gpio-cells = <2>;
    		gpio-map-mask = <0xffffffff 0xffffffc0>;
    		gpio-map-pass-thru = <0 0x3f>;
    		gpio-map = <0 0 &gpio0 4 0>,	/* A0 */
    			   <1 0 &gpio0 5 0>,	/* A1 */
    			   <2 0 &gpio0 6 0>,	/* A2 */
    			   <3 0 &gpio0 7 0>,	/* A3 */
    			   <4 0 &gpio0 25 0>,	/* A4 */
    			   <5 0 &gpio0 26 0>,	/* A5 */
    			   <6 0 &gpio1 0 0>,	/* D0 */
    			   <7 0 &gpio1 1 0>,	/* D1 */
    			   <8 0 &gpio1 4 0>,	/* D2 */
    			   <9 0 &gpio1 5 0>,	/* D3 */
    			   <10 0 &gpio1 6 0>,	/* D4 */
    			   <11 0 &gpio1 7 0>,	/* D5 */
    			   <12 0 &gpio1 8 0>,	/* D6 */
    			   <13 0 &gpio1 9 0>,	/* D7 */
    			   <14 0 &gpio1 10 0>,	/* D8 */
    			   <15 0 &gpio1 11 0>,	/* D9 */
    			   <16 0 &gpio1 12 0>,	/* D10 */
    			   <17 0 &gpio1 13 0>,	/* D11 */
    			   <18 0 &gpio1 14 0>,	/* D12 */
    			   <19 0 &gpio1 15 0>,	/* D13 */
    			   <20 0 &gpio1 2 0>,	/* D14 */
    			   <21 0 &gpio1 3 0>;	/* D15 */
    	};
    
    	arduino_adc: analog-connector {
    		compatible = "arduino,uno-adc";
    		#io-channel-cells = <1>;
    		io-channel-map = <0 &adc 0>,	/* A0 = P0.4 = AIN0 */
    				 <1 &adc 1>,	/* A1 = P0.5 = AIN1 */
    				 <2 &adc 2>,	/* A2 = P0.6 = AIN2 */
    				 <3 &adc 3>,	/* A3 = P0.7 = AIN3 */
    				 <4 &adc 4>,	/* A4 = P0.25 = AIN4 */
    				 <5 &adc 5>;	/* A5 = P0.26 = AIN5 */
    	};
    
    	gpio_fwd: nrf-gpio-forwarder {
    		compatible = "nordic,nrf-gpio-forwarder";
    		status = "okay";
    		uart {
    			gpios = <&gpio1 1 0>, <&gpio1 0 0>, <&gpio1 5 0>, <&gpio1 4 0>;
    		};
    	};
    
    	nrf_radio_coex: nrf7002-coex {
    		status = "okay";
    		compatible = "nordic,nrf700x-coex";
    		req-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
    		status0-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
    		grant-gpios = <&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_LOW)>;
    		swctrl1-gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
    		btrf-switch-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
    	};
    
    	nordic_wlan0: nordic_wlan0 {
    		compatible = "nordic,wlan0";
    		status = "okay";
    	};
    
    	/* These aliases are provided for compatibility with samples */
    	aliases {
    		led0 = &led0;
    		led1 = &led1;
    		pwm-led0 = &pwm_led0;
    		sw0 = &button0;
    		sw1 = &button1;
    		bootloader-led0 = &led0;
    		mcuboot-button0 = &button0;
    		mcuboot-led0 = &led0;
    	};
    };
    
    &adc {
    	status = "okay";
    };
    
    &gpiote {
    	status = "okay";
    };
    
    &gpio0 {
    	status = "okay";
    };
    
    &gpio1 {
    	status = "okay";
    };
    
    arduino_i2c: &i2c1 {
    	compatible = "nordic,nrf-twim";
    	status = "okay";
    	pinctrl-0 = <&i2c1_default>;
    	pinctrl-1 = <&i2c1_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &uart0 {
    	status = "okay";
    	current-speed = <115200>;
    	pinctrl-0 = <&uart0_default>;
    	pinctrl-1 = <&uart0_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &pwm0 {
    	status = "okay";
    	pinctrl-0 = <&pwm0_default>;
    	pinctrl-1 = <&pwm0_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &spi4 {
    	compatible = "nordic,nrf-spim";
    	status = "okay";
    	pinctrl-0 = <&spi4_default>;
    	pinctrl-1 = <&spi4_sleep>;
    	pinctrl-names = "default", "sleep";
    	cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
    	mx25r64: mx25r6435f@0 {
    		compatible = "jedec,spi-nor";
    		reg = <0>;
    		spi-max-frequency = <33000000>;
    		jedec-id = [c2 28 17];
    		sfdp-bfp = [
    			e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb
    			ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
    			10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44
    			30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
    		];
    		size = <67108864>;
    		has-dpd;
    		t-enter-dpd = <10000>;
    		t-exit-dpd = <5000>;
    	};
    };
    
    &qspi {
    	status = "okay";
    
    	pinctrl-0 = <&qspi_default>;
    	pinctrl-1 = <&qspi_sleep>;
    	pinctrl-names = "default", "sleep";
    	nrf700x: nrf7002@1 {
    		status = "okay";
    		compatible = "nordic,nrf700x-qspi";
    		reg = <1>;
    		sck-frequency = <24000000>;
    		quad-mode;
    		/* Wi-Fi Pins used */
    		iovdd-ctrl-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
    		bucken-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
    		host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
    	};
    };
    
    arduino_serial: &uart1 {
    	compatible = "nordic,nrf-uarte";
    	current-speed = <115200>;
    	pinctrl-0 = <&uart1_default>;
    	pinctrl-1 = <&uart1_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    arduino_spi: &spi3 {
    	compatible = "nordic,nrf-spim";
    	cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
    	pinctrl-0 = <&spi3_default>;
    	pinctrl-1 = <&spi3_sleep>;
    	pinctrl-names = "default", "sleep";
    };
    
    &flash0 {
    
    	partitions {
    		compatible = "fixed-partitions";
    		#address-cells = <1>;
    		#size-cells = <1>;
    
    		boot_partition: partition@0 {
    			label = "mcuboot";
    			reg = <0x00000000 0x00010000>;
    		};
    		slot0_partition: partition@10000 {
    			label = "image-0";
    		};
    		slot0_ns_partition: partition@50000 {
    			label = "image-0-nonsecure";
    		};
    		slot1_partition: partition@80000 {
    			label = "image-1";
    		};
    		slot1_ns_partition: partition@c0000 {
    			label = "image-1-nonsecure";
    		};
    		scratch_partition: partition@f0000 {
    			label = "image-scratch";
    			reg = <0x000f0000 0xa000>;
    		};
    		storage_partition: partition@fa000 {
    			label = "storage";
    			reg = <0x000fa000 0x00006000>;
    		};
    	};
    };
    
    &ieee802154 {
    	status = "okay";
    };
    
    zephyr_udc0: &usbd {
    	compatible = "nordic,nrf-usbd";
    	status = "okay";
    };
    
    / {
    
    	reserved-memory {
    		#address-cells = <1>;
    		#size-cells = <1>;
    		ranges;
    
    		sram0_image: image@20000000 {
    			/* Zephyr image(s) memory */
    		};
    
    		sram0_s: image_s@20000000 {
    			/* Secure image memory */
    		};
    
    		sram0_ns: image_ns@20040000 {
    			/* Non-Secure image memory */
    		};
    	};
    };
    
    /* Include partition configuration file */
    #include "nrf5340_cpuapp_partition_conf.dts"

    Below is my overlay file : 

    /{
         chosen 
        {
            nordic,pm-ext-flash = &mx25r64;
            nvs-storage = &nvs_storage;
        };
        lockleds 
        {
            compatible = "gpio-keys";
            lockBleled: led_0 
            {
                gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
                //gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
                label = "BLE LED";
            };
            lockWifiled: led_1 
            {
                gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
                //gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                label = "WIFI LED";
            };
            lockReservedled: led_2 
            {
                gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
                //gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                label = "Reserved LED";
            };
    
        };
         
        relay 
        {
            compatible = "gpio-keys";
            relay1: relay_1 
            {
                gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
               // gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
                label = "RELAY 1";
            };
            relay2: relay_2 
            {
                gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
                label = "RELAY 2";
            };
        };
         
        aliases 
        {
            lockled1 = &lockBleled;
            lockled2 = &lockWifiled;
            lockled3 = &lockReservedled;
            lockrelay1 = &relay1;
            lockrelay2 = &relay2;
            watchdog0 = &wdt0;
        };
        
        zephyr,user 
        {
            io-channels = <&adc 0>,<&adc 1>;
        };
        
        gpio_fwd: nrf-gpio-forwarder {
            compatible = "nordic,nrf-gpio-forwarder";
            status = "disabled";
            uart {
                gpios = <&gpio1 1 0>, <&gpio1 0 0>, <&gpio1 5 0>, <&gpio1 4 0>;
            };
        };
        
    };
    
    &i2c1 
    {
    
        compatible = "nordic,nrf-twim";
        status = "okay";
        pinctrl-0 = <&i2c1_default>;
        pinctrl-1 = <&i2c1_sleep>;
        pinctrl-names = "default", "sleep";
    
        pcf85063: PCF85063ATL_RTC@51
        {
            compatible = "nxp,PCF85063ATL";
            reg = <0x51>;
        }; 
        
        se050: SE050ATL@48
        {
            compatible = "nxp,SE050ATL";
            reg = <0x48>;
        };
    
    
    };
    
    // &pinctrl
    // {
    //     i2c1_default: i2c1_default 
    //     {
    //         group1 
    //         {
    //             psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
    //                     <NRF_PSEL(TWIM_SCL, 0, 27)>;
    //         };
    //     };
    
    //     i2c1_sleep: i2c1_sleep 
    //     {
    //         group1 
    //         {
    //             psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
    //                     <NRF_PSEL(TWIM_SCL, 0, 27)>;
    //             low-power-enable;
    //         };
    //     };
    // };
    
    &adc {
        #address-cells = <1>;
        #size-cells = <0>;
        status = "okay";
        channel@0 {
            reg = <0>;
            zephyr,gain = "ADC_GAIN_1_6";
            zephyr,reference = "ADC_REF_INTERNAL";
            zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
            zephyr,input-positive = <NRF_SAADC_AIN0>; /* P0.04 */
            zephyr,resolution = <12>;
            zephyr,oversampling = <8>;
        };
     
        channel@1 {
            reg = <1>;
            zephyr,gain = "ADC_GAIN_1_6";
            zephyr,reference = "ADC_REF_INTERNAL";
            zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
            zephyr,input-positive = <NRF_SAADC_AIN1>; /* P0.05 */
            zephyr,resolution = <12>;
            zephyr,oversampling = <8>;
        };
    };
    
    
    &flash0 {
        partitions {
            compatible = "fixed-partitions";
    
            nvs_storage: partition@fa000 {
                label = "nvs_storage";
                reg = <0xFA000 0x2000>;  // 8KB reserved for NVS
            };
    
            settings_storage: partition@fc000 {
                label = "settings_storage";
                reg = <0xFC000 0x2000>;  // 8KB reserved for Settings
            };
        };
    };
    

    One more thing that we made below driver level changes for OTA in v2.6.2.

    v2.6.2 nrf/samples/common/mcumgr_bt_ota_dfu/Kconfig
    commented below line at provided path due to some error we faced while building the firmware and for OTA.
    imply NORDIC_QSPI_NOR if (dtchosenenabled,(dt_chosen_enabled,(dtc​hosene​nabled,(DT_CHOSEN_EXT_FLASH))
    
    After this changes we are able to build the firmware using the v2.6.2.

    We are using MX25R6435F external flash for the OTA it is use SPI and Wifi chip is use QSPI.

    Can you please help me how can i resolve this error.

    Thank you in advance for your support.

    Kind regards,

    Dipesh Parikh

Related