WIFI SCAN cannot build by using nrf9160

Hi Team,

I would like to interface the nrf9160 with nrf7001 by using the SPI. While building the WIFI-Scan example by using SDK 3.1.1. Even by using WIFI-shell example these both are the cannot able to build. Please guide me step by step how can we use these example for the nrf9160.

Thanks and Regards,

Jagadish M

Parents
  • Hello, can you please provide more information on what the problem is? Please provide build logs, development environment, and how you are building the wifi shell sample. This information is needed for us to understand the issue and to reproduce. 


    Thanks. 

    Kind regards,
    Øyvind

  • [457/557] Building C object zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/fmac_main.c.obj FAILED: zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/fmac_main.c.obj C:\ncs\toolchains\c1a76fddb2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=30808 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\" nrf-psa-crypto-config.h\" -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF70_2_4G_ONLY -DNRF70_ANT_GAIN_2G=0 -DNRF70_ANT_GAIN_5G_BAND1=0 -DNRF70_ANT_GAIN_5G_BAND2=0 -DNRF70_ANT_GAIN_5G_BAND3=0 -DNRF70_BAND_2G _LOWER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAN D_2G_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_ HT=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UN II_2C_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACK OFF_HE=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UN II_4_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_DATA_TX -DNRF70_LOG_VERBOSE -DNRF70_MAX_TX_PENDING_QLEN=18 -DNRF70_MAX_TX_T OKENS=10 -DNRF70_PCB_LOSS_2G=0 -DNRF70_PCB_LOSS_5G_BAND1=0 -DNRF70_PCB_LOSS_5G_BAND2=0 -DNRF70_PCB_LOSS_5G_BAND3=0 -DNRF70_RPU_PS_IDLE_TIMEOUT_MS=10 -DNRF70_RX_MAX_DATA_SIZE=1600 -DNRF70_RX_NUM_BUFS=1 6 -DNRF70_STA_MODE -DNRF70_SYSTEM_MODE -DNRF70_TCP_IP_CHECKSUM_OFFLOAD -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DNRF_WIFI_AP_DEAD_DETECT_TIMEOUT=20 -DNRF_WIFI_DISPLAY_S CAN_BSS_LIMIT=150 -DNRF_WIFI_IFACE_MTU=1500 -DNRF_WIFI_LOW_POWER -DNRF_WIFI_MAX_PS_POLL_FAIL_CNT=10 -DNRF_WIFI_MGMT_BUFF_OFFLOAD -DNRF_WIFI_PS_INT_PS=y -DNRF_WIFI_RPU_MIN_TIME_TO_ENTER_SLEEP_MS=5000 - DNRF_WIFI_RPU_RECOVERY -DNRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS=50000 -DNRF_WIFI_RX_STBC_HT -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -DWIFI_NRF70_LOG_LEVEL=3 -D__LINUX_ERRNO_EXTENS IONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/Users/HanXcel/shell/build/shell/zephyr/include/generated/zephyr -IC:/ncs/v3.1.1/zephyr/include -IC:/Users/HanXcel/shell/build/shell /zephyr/include/generated -IC:/ncs/v3.1.1/zephyr/soc/nordic -IC:/ncs/v3.1.1/zephyr/include/zephyr/posix -IC:/ncs/v3.1.1/zephyr/lib/posix/options/getopt -IC:/ncs/v3.1.1/zephyr/soc/nordic/nrf91/. -IC:/n cs/v3.1.1/zephyr/soc/nordic/common/. -IC:/ncs/v3.1.1/zephyr/subsys/net/l2 -IC:/ncs/v3.1.1/zephyr/subsys/net/lib/dns/. -IC:/ncs/v3.1.1/zephyr/subsys/net/conn_mgr/. -IC:/ncs/v3.1.1/zephyr/subsys/setting s/include -IC:/ncs/v3.1.1/zephyr/subsys/shell/modules/kernel_service/thread/.. -IC:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/inc -IC:/ncs/v3.1.1/zephyr/subsys/net/ip -IC:/ncs/v3.1.1/nrf/include -IC:/Us ers/HanXcel/shell/build/shell/tfm/api_ns/interface/include -IC:/Users/HanXcel/shell/build/shell/zephyr/misc/generated -IC:/ncs/v3.1.1/modules/lib/hostap/port/mbedtls -IC:/ncs/v3.1.1/nrf/subsys/setting s/include -IC:/ncs/v3.1.1/nrf/modules/trusted-firmware-m/. -IC:/ncs/v3.1.1/nrf/include/tfm -IC:/ncs/v3.1.1/nrf/tests/include -IC:/ncs/v3.1.1/zephyr/modules/hostap/src -IC:/ncs/v3.1.1/modules/lib/hosta p -IC:/ncs/v3.1.1/modules/lib/hostap/wpa_supplicant -IC:/ncs/v3.1.1/modules/lib/hostap/src -IC:/ncs/v3.1.1/modules/lib/hostap/src/common -IC:/ncs/v3.1.1/modules/lib/hostap/src/eap_common -IC:/ncs/v3.1 .1/modules/lib/hostap/src/eap_server -IC:/ncs/v3.1.1/modules/lib/hostap/src/radius -IC:/ncs/v3.1.1/modules/lib/hostap/src/crypto -IC:/ncs/v3.1.1/modules/lib/hostap/src/ap -IC:/ncs/v3.1.1/modules/lib/h ostap/src/drivers -IC:/ncs/v3.1.1/modules/lib/hostap/src/rsn_supp -IC:/ncs/v3.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/v3.1.1/zephyr/mod ules/cmsis_6/. -IC:/ncs/v3.1.1/nrf/modules/hal_nordic/. -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk -IC: /ncs/v3.1.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.1.1/zephyr/modules/nrf_wifi/os -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/os_if/inc -IC:/ncs/v3.1.1/nrfxlib/nrf_modem/include -IC:/Users/HanXcel/shel l/build/shell/generated/interface_nrf_security_psa -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/include -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/ threading/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.1.1/modules/crypto/mbedtls/library -IC:/ncs/v3.1.1/modules/cryp to/mbedtls/include -IC:/ncs/v3.1.1/modules/crypto/mbedtls/include/library -IC:/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v3.1.1/mo dules/lib/nrf_wifi -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/../bus -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/utils/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/bus_if/bus/qspi/inc -IC:/ncs/v3.1.1/modules/lib/nrf_w ifi/bus_if/bal/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_if/umac_if/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_load/mips/fw/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/hw_if/hal/inc -IC:/ncs/v3.1.1/mo dules/lib/nrf_wifi/fw_if/umac_if/inc/fw -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw/stats -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw/stats/system -isystem C:/ncs/v3.1.1/ze phyr/lib/libc/common/include -Wshadow -fno-strict-aliasing -Os -imacros C:/Users/HanXcel/shell/build/shell/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=alway s -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.1.1/zephyr/include/zephyr/t oolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=impli cit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/HanXcel/shell=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/dri vers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/fmac_main.c.obj -MF zephyr\drivers\wifi\nrf_wifi\CMakeFiles\nrf_wifi.dir\src\fmac_main.c.obj.d -o zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/sr c/fmac_main.c.obj -c C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c In file included from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/arch.h:20, from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/cpu.h:19, from C:/ncs/v3.1.1/zephyr/include/zephyr/kernel_includes.h:36, from C:/ncs/v3.1.1/zephyr/include/zephyr/kernel.h:17, from C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:14: C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c: In function 'configure_tx_pwr_settings': C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_nrf70_P_wifi_max_tx_pwr_2g_dsss' undeclared (first use in this function) 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3' 5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:27: note: in expansion of macro 'DT_PROP' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT' 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:35: note: in expansion of macro 'DT_NODELABEL' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:566:47: note: in expansion of macro 'MAX_TX_PWR' 566 | tx_pwr_ceil_params->max_pwr_2g_dsss = MAX_TX_PWR(wifi_max_tx_pwr_2g_dsss); | ^~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: note: each undeclared identifier is reported only once for each function it appears in 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3' 5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:27: note: in expansion of macro 'DT_PROP' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT' 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:35: note: in expansion of macro 'DT_NODELABEL' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:566:47: note: in expansion of macro 'MAX_TX_PWR' 566 | tx_pwr_ceil_params->max_pwr_2g_dsss = MAX_TX_PWR(wifi_max_tx_pwr_2g_dsss); | ^~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_nrf70_P_wifi_max_tx_pwr_2g_mcs7' undeclared (first use in this function) 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3' 5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:27: note: in expansion of macro 'DT_PROP' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT' 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:35: note: in expansion of macro 'DT_NODELABEL' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:567:47: note: in expansion of macro 'MAX_TX_PWR' 567 | tx_pwr_ceil_params->max_pwr_2g_mcs7 = MAX_TX_PWR(wifi_max_tx_pwr_2g_mcs7); | ^~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_nrf70_P_wifi_max_tx_pwr_2g_mcs0' undeclared (first use in this function) 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:5271:29: note: in definition of macro 'DT_CAT3' 5271 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3 | ^~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:27: note: in expansion of macro 'DT_PROP' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:196:29: note: in expansion of macro 'DT_CAT' 196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label) | ^~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:508:35: note: in expansion of macro 'DT_NODELABEL' 508 | #define MAX_TX_PWR(label) DT_PROP(DT_NODELABEL(nrf70), label) * 4 | ^~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:568:47: note: in expansion of macro 'MAX_TX_PWR' 568 | tx_pwr_ceil_params->max_pwr_2g_mcs0 = MAX_TX_PWR(wifi_max_tx_pwr_2g_mcs0); | ^~~~~~~~~~ In file included from C:/ncs/v3.1.1/zephyr/include/zephyr/sw_isr_table.h:18, from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/irq.h:19, from C:/ncs/v3.1.1/zephyr/include/zephyr/arch/arm/arch.h:24: C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c: At top level: C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:349:40: error: 'DT_N_INST_0_nordic_wlan_FULL_NAME' undeclared here (not in a function); did you mean 'DT_N_INST_0_nordic_nrf_kmu'? 349 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:1154:25: note: in definition of macro 'Z_DEVICE_INIT' 1154 | .name = name_, \ | ^~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:1281:9: note: in expansion of macro 'Z_DEVICE_BASE_DEFINE' 1281 | Z_DEVICE_BASE_DEFINE(node_id, dev_id, name, init_fn, deinit_fn, flags, \ | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/net_if.h:3441:9: note: in expansion of macro 'Z_DEVICE_DEFINE' 3441 | Z_DEVICE_DEFINE(node_id, dev_id, name, init_fn, NULL, \ | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/ethernet.h:1173:9: note: in expansion of macro 'Z_NET_DEVICE_INIT_INSTANCE' 1173 | Z_NET_DEVICE_INIT_INSTANCE(node_id, dev_id, name, instance, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/ethernet.h:1193:9: note: in expansion of macro 'Z_ETH_NET_DEVICE_INIT_INSTANCE' 1193 | Z_ETH_NET_DEVICE_INIT_INSTANCE(node_id, dev_id, name, 0, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/ethernet.h:1267:9: note: in expansion of macro 'Z_ETH_NET_DEVICE_INIT' 1267 | Z_ETH_NET_DEVICE_INIT(node_id, Z_DEVICE_DT_DEV_ID(node_id), \ | ^~~~~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/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 | ^~~~~~~~~~~ C:/ncs/v3.1.1/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) | ^~~~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/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) | ^~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/sys/util_macro.h:204:9: note: in expansion of macro 'Z_COND_CODE_1' 204 | Z_COND_CODE_1(_flag, _if_1_code, _else_code) | ^~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:936:9: note: in expansion of macro 'COND_CODE_1' 936 | COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \ | ^~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:200:9: note: in expansion of macro 'DT_PROP_OR' 200 | DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id)) | ^~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:537:36: note: in expansion of macro 'DT_CAT' 537 | #define DT_NODE_FULL_NAME(node_id) DT_CAT(node_id, _FULL_NAME) | ^~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:200:36: note: in expansion of macro 'DT_NODE_FULL_NAME' 200 | DT_PROP_OR(node_id, label, DT_NODE_FULL_NAME(node_id)) | ^~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/ethernet.h:1268:31: note: in expansion of macro 'DEVICE_DT_NAME' 1268 | DEVICE_DT_NAME(node_id), init_fn, pm, \ | ^~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/ethernet.h:1281:9: note: in expansion of macro 'ETH_NET_DEVICE_DT_DEFINE' 1281 | ETH_NET_DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/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__) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:349:31: note: in expansion of macro 'UTIL_CAT' 349 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat)) | ^~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:3909:27: note: in expansion of macro 'DT_INST' 3909 | #define DT_DRV_INST(inst) DT_INST(inst, DT_DRV_COMPAT) | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/net/ethernet.h:1281:34: note: in expansion of macro 'DT_DRV_INST' 1281 | ETH_NET_DEVICE_DT_DEFINE(DT_DRV_INST(inst), __VA_ARGS__) | ^~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/fmac_main.c:968:1: note: in expansion of macro 'ETH_NET_DEVICE_DT_INST_DEFINE' 968 | ETH_NET_DEVICE_DT_INST_DEFINE(0, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [458/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[461/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[463/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[464/557] Building C object zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/wpa_supp_if.c.obj FAILED: zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/wpa_supp_if.c.obj C:\ncs\toolchains\c1a76fddb2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=30808 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\" nrf-psa-crypto-config.h\" -DNRF54L_CONFIGURATION_56_ENABLE=0 -DNRF70_2_4G_ONLY -DNRF70_ANT_GAIN_2G=0 -DNRF70_ANT_GAIN_5G_BAND1=0 -DNRF70_ANT_GAIN_5G_BAND2=0 -DNRF70_ANT_GAIN_5G_BAND3=0 -DNRF70_BAND_2G _LOWER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAN D_2G_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_ HT=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UN II_2C_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACK OFF_HE=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UN II_4_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_DATA_TX -DNRF70_LOG_VERBOSE -DNRF70_MAX_TX_PENDING_QLEN=18 -DNRF70_MAX_TX_T OKENS=10 -DNRF70_PCB_LOSS_2G=0 -DNRF70_PCB_LOSS_5G_BAND1=0 -DNRF70_PCB_LOSS_5G_BAND2=0 -DNRF70_PCB_LOSS_5G_BAND3=0 -DNRF70_RPU_PS_IDLE_TIMEOUT_MS=10 -DNRF70_RX_MAX_DATA_SIZE=1600 -DNRF70_RX_NUM_BUFS=1 6 -DNRF70_STA_MODE -DNRF70_SYSTEM_MODE -DNRF70_TCP_IP_CHECKSUM_OFFLOAD -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DNRF_WIFI_AP_DEAD_DETECT_TIMEOUT=20 -DNRF_WIFI_DISPLAY_S CAN_BSS_LIMIT=150 -DNRF_WIFI_IFACE_MTU=1500 -DNRF_WIFI_LOW_POWER -DNRF_WIFI_MAX_PS_POLL_FAIL_CNT=10 -DNRF_WIFI_MGMT_BUFF_OFFLOAD -DNRF_WIFI_PS_INT_PS=y -DNRF_WIFI_RPU_MIN_TIME_TO_ENTER_SLEEP_MS=5000 - DNRF_WIFI_RPU_RECOVERY -DNRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS=50000 -DNRF_WIFI_RX_STBC_HT -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -DWIFI_NRF70_LOG_LEVEL=3 -D__LINUX_ERRNO_EXTENS IONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/Users/HanXcel/shell/build/shell/zephyr/include/generated/zephyr -IC:/ncs/v3.1.1/zephyr/include -IC:/Users/HanXcel/shell/build/shell /zephyr/include/generated -IC:/ncs/v3.1.1/zephyr/soc/nordic -IC:/ncs/v3.1.1/zephyr/include/zephyr/posix -IC:/ncs/v3.1.1/zephyr/lib/posix/options/getopt -IC:/ncs/v3.1.1/zephyr/soc/nordic/nrf91/. -IC:/n cs/v3.1.1/zephyr/soc/nordic/common/. -IC:/ncs/v3.1.1/zephyr/subsys/net/l2 -IC:/ncs/v3.1.1/zephyr/subsys/net/lib/dns/. -IC:/ncs/v3.1.1/zephyr/subsys/net/conn_mgr/. -IC:/ncs/v3.1.1/zephyr/subsys/setting s/include -IC:/ncs/v3.1.1/zephyr/subsys/shell/modules/kernel_service/thread/.. -IC:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/inc -IC:/ncs/v3.1.1/zephyr/subsys/net/ip -IC:/ncs/v3.1.1/nrf/include -IC:/Us ers/HanXcel/shell/build/shell/tfm/api_ns/interface/include -IC:/Users/HanXcel/shell/build/shell/zephyr/misc/generated -IC:/ncs/v3.1.1/modules/lib/hostap/port/mbedtls -IC:/ncs/v3.1.1/nrf/subsys/setting s/include -IC:/ncs/v3.1.1/nrf/modules/trusted-firmware-m/. -IC:/ncs/v3.1.1/nrf/include/tfm -IC:/ncs/v3.1.1/nrf/tests/include -IC:/ncs/v3.1.1/zephyr/modules/hostap/src -IC:/ncs/v3.1.1/modules/lib/hosta p -IC:/ncs/v3.1.1/modules/lib/hostap/wpa_supplicant -IC:/ncs/v3.1.1/modules/lib/hostap/src -IC:/ncs/v3.1.1/modules/lib/hostap/src/common -IC:/ncs/v3.1.1/modules/lib/hostap/src/eap_common -IC:/ncs/v3.1 .1/modules/lib/hostap/src/eap_server -IC:/ncs/v3.1.1/modules/lib/hostap/src/radius -IC:/ncs/v3.1.1/modules/lib/hostap/src/crypto -IC:/ncs/v3.1.1/modules/lib/hostap/src/ap -IC:/ncs/v3.1.1/modules/lib/h ostap/src/drivers -IC:/ncs/v3.1.1/modules/lib/hostap/src/rsn_supp -IC:/ncs/v3.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v3.1.1/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/ncs/v3.1.1/zephyr/mod ules/cmsis_6/. -IC:/ncs/v3.1.1/nrf/modules/hal_nordic/. -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v3.1.1/modules/hal/nordic/nrfx/mdk -IC: /ncs/v3.1.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v3.1.1/zephyr/modules/nrf_wifi/os -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/os_if/inc -IC:/ncs/v3.1.1/nrfxlib/nrf_modem/include -IC:/Users/HanXcel/shel l/build/shell/generated/interface_nrf_security_psa -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/include -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/ threading/include -IC:/ncs/v3.1.1/nrf/subsys/nrf_security/src/utils -IC:/ncs/v3.1.1/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v3.1.1/modules/crypto/mbedtls/library -IC:/ncs/v3.1.1/modules/cryp to/mbedtls/include -IC:/ncs/v3.1.1/modules/crypto/mbedtls/include/library -IC:/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/v3.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v3.1.1/mo dules/lib/nrf_wifi -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/../bus -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/utils/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/bus_if/bus/qspi/inc -IC:/ncs/v3.1.1/modules/lib/nrf_w ifi/bus_if/bal/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_if/umac_if/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_load/mips/fw/inc -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/hw_if/hal/inc -IC:/ncs/v3.1.1/mo dules/lib/nrf_wifi/fw_if/umac_if/inc/fw -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw/stats -IC:/ncs/v3.1.1/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw/stats/system -isystem C:/ncs/v3.1.1/ze phyr/lib/libc/common/include -Wshadow -fno-strict-aliasing -Os -imacros C:/Users/HanXcel/shell/build/shell/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=alway s -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/c1a76fddb2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v3.1.1/zephyr/include/zephyr/t oolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=impli cit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/HanXcel/shell=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v3.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v3.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/dri vers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.dir/src/wpa_supp_if.c.obj -MF zephyr\drivers\wifi\nrf_wifi\CMakeFiles\nrf_wifi.dir\src\wpa_supp_if.c.obj.d -o zephyr/drivers/wifi/nrf_wifi/CMakeFiles/nrf_wifi.di r/src/wpa_supp_if.c.obj -c C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/wpa_supp_if.c In file included from C:/ncs/v3.1.1/zephyr/include/zephyr/toolchain/gcc.h:98, from C:/ncs/v3.1.1/zephyr/include/zephyr/toolchain.h:52, from C:/ncs/v3.1.1/zephyr/include/zephyr/sys/__assert.h:11, from C:/ncs/v3.1.1/zephyr/include/zephyr/irq_multilevel.h:15, from C:/ncs/v3.1.1/zephyr/include/zephyr/devicetree.h:20, from C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:12, from C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/wpa_supp_if.c:13: C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/wpa_supp_if.c: In function 'nrf_wifi_wpa_supp_dev_init': C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_wifi_ORD' undeclared (first use in this function) 96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/toolchain/common.h:168:26: note: in definition of macro '_DO_CONCAT' 168 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:33: note: in expansion of macro '_CONCAT' 96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:293:37: note: in expansion of macro 'DEVICE_NAME_GET' 293 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:310:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 310 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/wpa_supp_if.c:450:39: note: in expansion of macro 'DEVICE_DT_GET' 450 | const struct device *device = DEVICE_DT_GET(DT_CHOSEN(zephyr_wifi)); | ^~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:41: note: each undeclared identifier is reported only once for each function it appears in 96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/toolchain/common.h:168:26: note: in definition of macro '_DO_CONCAT' 168 | #define _DO_CONCAT(x, y) x ## y | ^ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:96:33: note: in expansion of macro '_CONCAT' 96 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id) | ^~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:293:37: note: in expansion of macro 'DEVICE_NAME_GET' 293 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id)) | ^~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/include/zephyr/device.h:310:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 310 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ C:/ncs/v3.1.1/zephyr/drivers/wifi/nrf_wifi/src/wpa_supp_if.c:450:39: note: in expansion of macro 'DEVICE_DT_GET' 450 | const struct device *device = DEVICE_DT_GET(DT_CHOSEN(zephyr_wifi)); | ^~~~~~~~~~~~~ [465/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[466/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[467/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[469/557] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1[470/557] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj ninja: build stopped: subcommand failed. FAILED: _sysbuild/sysbuild/images/shell-prefix/src/shell-stamp/shell-build C:/Users/HanXcel/shell/build/_sysbuild/sysbuild/images/shell-prefix/src/shell-stamp/shell-build cmd.exe /C "cd /D C:\Users\HanXcel\shell\build\shell && C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.exe --build ." ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.EXE' --build C:/Users/HanXcel/shell/build

  • Thanks for providing the logs. How are you starting build? I.e. from the WiFi shell documentation

    I have no issues building the sample on my side.

    Kind regards,
    Øyvind

  • Hi,

    when i was give the board target nrf9160dk/nrf9160_ns there is an problem. when we given the nrf7002 there no problem. please share the device tree and prj.config file for my reference and guide me how we can use the nrf9160 with nrf7001 for wifiscan.

    Thanks and Regards,

    Jagadish M.

  • I am using default settings from device tree and prj.conf as per documentation. Here is my build configuration from VS Code

Reply Children
  • Hi,

    I downgraded the SDK3.1.0 AND toolchain also 3.1.0. but same problem.

    Please find the below logs.

    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/Users/HanXcel/scan/build/scan/zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\ncs\toolchains\b8b84efebd\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf -L"c:/ncs/toolchains/b8b84e
    febd/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp" -lc -lgcc && cmd.exe /C "cd /D C:\Users\HanXcel\scan\build\scan\zephyr && C:\ncs\toolchains\b8b84efebd\o
    pt\bin\cmake.exe -E true""
    c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(main.c.obj): in function `main':
    C:/Users/HanXcel/scan/src/main.c:298: undefined reference to `net_mgmt_NET_REQUEST_ETHERNET_SET_MAC_ADDRESS'
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/scan-prefix/src/scan-stamp/scan-build C:/Users/HanXcel/scan/build/_sysbuild/sysbuild/images/scan-prefix/src/scan-stamp/scan-build
    cmd.exe /C "cd /D C:\Users\HanXcel\scan\build\scan && C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.EXE' --build C:/Users/HanXcel/scan/build

    Thanks and Regards,

    Jagadish M

  • Hello,

    No need to downgrade, as there should not be any changes. 

    please provide build configuration and full build logs from your device. 

    Jagadish Mallesh said:
    C:/Users/HanXcel/scan/src/main.c:298: undefined reference to `net_mgmt_NET_REQUEST_ETHERNET_SET_MAC_ADDRESS'

    How are you building your project? What is the command you are starting build with?

    -Øyvind

  • can you suggest me the pin connections with nrf9160 interfacing with nrf7002-EK? I'm using the wifi-shell example.

    Please give me an step by step process to connect the nrf9160 with nrf7002. Pin configurations, prj.config, how can we scan the wifi by using the wifi shell example.

    Why i cannot build the wifi-scan example.

  • Jagadish Mallesh said:
    Please give me an step by step process to connect the nrf9160 with nrf7002. Pin configurations, prj.config, how can we scan the wifi by using the wifi shell example.

    I am not able to provide any steps without knowing what you are doing on your side for it to fail. Please provide answers to my quesitons.

    Kind regards,
    Øyvind

  • Hi,

    Building scan
    west build --build-dir c:/Users/HanXcel/scan/build c:/Users/HanXcel/scan --pristine --board nrf9160dk/nrf9160/ns

    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.0/zephyr/.cache
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
    Parsing C:/ncs/v3.1.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/Users/HanXcel/scan/build/_sysbuild/empty.conf'
    Merged configuration 'C:/Users/HanXcel/scan/build/_sysbuild/empty.conf'
    Merged configuration 'c:/Users/HanXcel/scan/sysbuild.conf'
    Configuration saved to 'C:/Users/HanXcel/scan/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/HanXcel/scan/build/_sysbuild/autoconf.h'
    --
    **************************
    * Running CMake for scan *
    **************************

    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/HanXcel/scan
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.0/zephyr/.cache
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.0/zephyr)
    -- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
    -- Board: nrf9160dk, Revision: 0.14.0, qualifiers: nrf9160/ns
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b8b84efebd/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v3.1.0/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: C:/ncs/v3.1.0/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_0_14_0.overlay
    -- Generated zephyr.dts: C:/Users/HanXcel/scan/build/scan/zephyr/zephyr.dts
    -- Generated pickled edt: C:/Users/HanXcel/scan/build/scan/zephyr/edt.pickle
    -- Generated devicetree_generated.h: C:/Users/HanXcel/scan/build/scan/zephyr/include/generated/zephyr/devicetree_generated.h

    warning: WIFI_NRF70 (defined at drivers/wifi/nrf_wifi/Kconfig.nrfwifi:11) was assigned the value 'y'
    but got the value 'n'. Check these unsatisfied dependencies: (DT_HAS_NORDIC_NRF7002_SPI_ENABLED ||
    DT_HAS_NORDIC_NRF7002_QSPI_ENABLED || DT_HAS_NORDIC_NRF7001_SPI_ENABLED ||
    DT_HAS_NORDIC_NRF7001_QSPI_ENABLED || DT_HAS_NORDIC_NRF7000_SPI_ENABLED ||
    DT_HAS_NORDIC_NRF7000_QSPI_ENABLED || n) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up WIFI_NRF70 in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


    warning: The choice symbol NRF_WIFI_PATCHES_EXT_FLASH_DISABLED (defined at
    C:/ncs/v3.1.0/nrf\subsys\net\lib\nrf70_fw_ext/Kconfig:22) was selected (set =y), but no symbol ended
    up as the choice selection. See
    docs.zephyrproject.org/.../kconfig.html and/or
    look up NRF_WIFI_PATCHES_EXT_FLASH_DISABLED in the menuconfig/guiconfig interface. The Application
    Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
    the manual might be helpful too.


    warning: The choice symbol NRF70_SCAN_ONLY (defined at drivers/wifi/nrf_wifi/Kconfig.nrfwifi:57) was
    selected (set =y), but no symbol ended up as the choice selection. See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    NRF70_SCAN_ONLY in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.

    Parsing C:/Users/HanXcel/scan/Kconfig
    Loaded configuration 'C:/ncs/v3.1.0/zephyr/boards/nordic/nrf9160dk/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'C:/Users/HanXcel/scan/prj.conf'
    Merged configuration 'C:/Users/HanXcel/scan/build/scan/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/HanXcel/scan/build/scan/zephyr/.config'
    Kconfig header saved to 'C:/Users/HanXcel/scan/build/scan/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING_C: True
    Backup: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING_C: True
    Restore: CONFIG_MBEDTLS_THREADING_ALT: False
    =========== End psa_crypto_library_config ===============
    -- Found gen_kobject_list: C:/ncs/v3.1.0/zephyr/scripts/build/gen_kobject_list.py
    CMake Warning at C:/ncs/v3.1.0/zephyr/CMakeLists.txt:2232 (message):
    __ASSERT() statements are globally ENABLED


    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/HanXcel/scan/build/scan
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/HanXcel/scan/build
    ←[92m-- west build: building application
    [5/10] Performing build step for 'scan'
    [4/275] Generating include/generated/zephyr/version.h
    -- Zephyr version: 4.1.99 (C:/ncs/v3.1.0/zephyr), build: ncs-v3.1.0
    [5/275] Generating include/generated/device-api-sections.ld, include/generated/device-api-secti[6/275] Generating include/generated/device-api-sections.ld, include/generated/device-api-secti[7/275] Generating include/generated/zephyr/syscall_dispatch.c, include/generated/zephyr/syscal[9/275] Generating include/generated/zephyr/kobj-types-enum.h, include/generated/zephyr/otype-t[10/275] Generating ../../tfm/CMakeCache.txt
    -- Found Git: C:/ncs/toolchains/b8b84efebd/mingw64/bin/git.exe (found version "2.37.3.windows.1")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v3.1.0/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/HanXcel/scan/build/scan/tfm
    [15/275] Performing build step for 'tfm'
    [0/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/common/syscalls_stu[2/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/generated/secure_fw/partitions/c[3/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/generated/secure_fw/partitions/p[4/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/partitions/ns_agent_tz/load_info_ns[5/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/c[6/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/partitions/ns_agent_tz/ns_agent_tz_[7/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/c[8/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/c[9/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/c[10/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/[11/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/target/nordic_nrf/[12/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__/platf[15/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/spm/core[16/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/shared/c[17/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/shared/c[18/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__/inter[19/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__/inter[20/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sp_log.dir/tfm_sp_log_raw.[21/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/C_/ncs/v3.1.0/nrf[22/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sprt.dir/__/__/__/__/inter[24/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[25/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[26/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[27/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[28/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[29/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[30/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[31/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[32/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[33/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/__[34/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[35/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[36/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[37/141] Building C object secure_fw/partitions/crypto/CMakeFiles/tfm_psa_rot_partition_crypto.dir/cr[38/141] Building C object secure_fw/partitions/lib/runtime/CMakeFiles/tfm_sp_log.dir/__/__/__/__/pla[39/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[40/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[41/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/crypto_[42/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[43/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[44/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[45/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[46/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[47/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[48/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[49/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/mbedcry[50/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon/CM[51/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon...[52/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon/CM[53/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon/CM[54/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon/CM[55/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon/CM[56/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/core/nrf_oberon/CM[57/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/nrf_sec[58/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/CMakeFiles/nrf_sec[59/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[60/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[61/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[62/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[63/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[64/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[65/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[66/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[67/141] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/drivers/nrf_obe...[68/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/modules/hal/nordic/nrfx/d[69/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/nrf_e[70/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/nrfx_[71/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/nativ[72/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/nativ[73/141] Building C object secure_fw/partitions/platform/CMakeFiles/tfm_psa_rot_partition_platform.di[74/141] Building C object secure_fw/partitions/platform/CMakeFiles/tfm_psa_rot_partition_platform.di[75/141] Building C object secure_fw/partitions/platform/CMakeFiles/tfm_psa_rot_partition_platform.di[78/141] Building C object secure_fw/CMakeFiles/tfm_s.dir/partitions/ns_agent_tz/psa_api_veneers_v80m[79/141] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/platform/ext/target/nordic_nrf/common/co[81/141] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/platform/[82/141] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/crypto/au[83/141] Building C object secure_fw/CMakeFiles/tfm_s.dir/__/platform/ext/target/nordic_nrf/common/co[84/141] Building C object secure_fw/CMakeFiles/tfm_s.dir/partitions/ns_agent_tz/load_info_ns_agent_t[102/141] Building C object secure_fw/spm/CMakeFiles/tfm_spm.dir/__/__/platform/ext/common/tfm_hal_nv[104/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/modules/hal/nordic/nrfx/[105/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/modules/hal/nordic/nrfx/[106/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/serv[107/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/serv[108/141] Building C object platform/CMakeFiles/platform_s.dir/ext/target/nordic_nrf/common/core/cmsi[109/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[110/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[111/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[112/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[113/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[114/141] Building C object platform/CMakeFiles/platform_s.dir/ext/common/tfm_hal_spm_logdev_peripher[115/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[116/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[117/141] Building C object platform/CMakeFiles/platform_s.dir/C_/ncs/v3.1.0/nrf/modules/trusted-firm[126/141] Linking C static library secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\drivers\nr[127/141] Linking C static library secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\core\nrf_o[128/141] Linking C static library secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\libnrf_sec[129/141] Linking C static library secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\libmbedcry[130/141] Linking C static library secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\libcrypto_[135/141] Building C object platform/target/nrf91/nrf_common/CMakeFiles/tfm_s_scatter.dir/__/__/__/__[137/141] Linking C executable bin\tfm_s.axf
    Memory region Used Size Region Size %age Used
    FLASH: 32092 B 32 KB 97.94%
    RAM: 10404 B 32 KB 31.75%
    [141/141] Linking C static library secure_fw\libtfm_s_veneers.a
    [17/275] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [18/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto_base.dir/C_/ncs/[18/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto_base.dir/C_/ncs/[18/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto_base.dir/C_/ncs/[18/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto_base.dir/C_/ncs/[18/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto_base.dir/C_/ncs/[19/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[21/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[22/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/nrf_security_utils.dir/util[25/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[29/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[31/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[32/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[36/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[38/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[41/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[44/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[47/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[52/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/legacy/ecdsa[53/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[55/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[65/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/legacy/ecdsa[67/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[68/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[70/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/ncs/v3.1.[73/275] Building C object modules/nrf/subsys/nrf_security/src/CMakeFiles/mbedcrypto.dir/legacy/ecjpa[78/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.di[79/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.di[81/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.di[83/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.di[87/275] Building C object modules/nrf/modules/trusted-firmware-m/CMakeFiles/tfm_api_nrf.dir/tfm_boar[109/275] Building C object modules/trusted-firmware-m/CMakeFiles/tfm_api.dir/interface/interface.c.o[111/275] Building C object modules/trusted-firmware-m/CMakeFiles/tfm_api.dir/__/__/tfm/api_ns/interf[112/275] Building C object modules/trusted-firmware-m/CMakeFiles/tfm_api.dir/__/__/tfm/api_ns/interf[113/275] Building C object modules/trusted-firmware-m/CMakeFiles/tfm_api.dir/__/__/tfm/api_ns/interf[114/275] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic[120/275] Linking C static library modules\nrf\modules\trusted-firmware-m\lib..__nrf__modules__truste[122/275] Building C object modules/hal_nordic/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic[165/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[167/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[168/275] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m[169/275] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m[170/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[172/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[174/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[175/275] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m[178/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[179/275] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.d[180/275] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m[183/275] Building C object zephyr/arch/arch/arm/core/cortex_m/cmse/CMakeFiles/arch__arm__core__corte[186/275] Building C object zephyr/arch/arch/arm/core/mpu/CMakeFiles/arch__arm__core__mpu.dir/arm_cor[187/275] Building C object zephyr/arch/arch/arm/core/mpu/CMakeFiles/arch__arm__core__mpu.dir/arm_mpu[189/275] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/errno_wrap.c.[196/275] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/abo[199/275] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/mal[201/275] Building C object zephyr/soc/soc/nrf9160/CMakeFiles/soc__nordic.dir/validate_binding_header[204/275] Building C object zephyr/soc/soc/nrf9160/CMakeFiles/soc__nordic.dir/validate_enabled_instan[206/275] Building C object zephyr/boards/nordic/nrf9160dk/CMakeFiles/boards__nordic__nrf9160dk.dir/n[208/275] Building C object zephyr/subsys/debug/coredump/CMakeFiles/subsys__debug__coredump.dir/cored[211/275] Building C object zephyr/subsys/net/l2/wifi/CMakeFiles/subsys__net__l2__wifi.dir/wifi_mgmt.[223/275] Building C object zephyr/subsys/net/l2/offloaded_netdev/CMakeFiles/subsys__net__l2__offload[227/275] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_[229/275] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/entropy_psa_crypto[236/275] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.ob[242/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[244/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[245/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[246/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[247/275] Building C object modules/nrf/lib/modem_antenna/CMakeFiles/..__nrf__lib__modem_antenna.dir/[252/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[254/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[255/275] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/[270/275] Linking C executable zephyr\zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map C:/Users/HanXcel/scan/build/scan/zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\ncs\toolchains\b8b84efebd\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf -L"c:/ncs/toolchains/b8b84e
    febd/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp" -lc -lgcc && cmd.exe /C "cd /D C:\Users\HanXcel\scan\build\scan\zephyr && C:\ncs\toolchains\b8b84efebd\o
    pt\bin\cmake.exe -E true""
    c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(main.c.obj): in function `main':
    C:/Users/HanXcel/scan/src/main.c:298: undefined reference to `net_mgmt_NET_REQUEST_ETHERNET_SET_MAC_ADDRESS'
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/scan-prefix/src/scan-stamp/scan-build C:/Users/HanXcel/scan/build/_sysbuild/sysbuild/images/scan-prefix/src/scan-stamp/scan-build
    cmd.exe /C "cd /D C:\Users\HanXcel\scan\build\scan && C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.EXE' --build C:/Users/HanXcel/scan/build

    I'm using the vs code nrf connect. In that extension i'm adding the generate build option intially. then if i want to build, I will use build option in nrf connect extension.

    Thanks and Regards,

    Jagadish M.

Related