nRF52840 DK wifi sample application

Hi folks,

I found that there is a WIFI sample application with the nRF52840 listed as supported development kit. So I tried to build that one but got strange errors regarding nrf700x. Here is the output of the build command:

west build -b nrf52840dk_nrf52840       
[1/13] Building C object modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj
FAILED: modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj 
ccache /home/mhummels/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/mhummels/ncs/zephyr/include -I/home/mhummels/ncs/nrf/samples/wifi/scan/build/zephyr/include/generated -I/home/mhummels/ncs/zephyr/soc/arm/nordic_nrf/nrf52 -I/home/mhummels/ncs/zephyr/lib/libc/newlib/include -I/home/mhummels/ncs/zephyr/soc/arm/nordic_nrf/common/. -I/home/mhummels/ncs/zephyr/subsys/net/l2 -I/home/mhummels/ncs/nrf/include -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/utils/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/os_if/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/bus_if/bus/qspi/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/bus_if/bal/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/fw_if/umac_if/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/fw_load/mips/fw/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/hw_if/hal/inc -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/inc -I/home/mhummels/ncs/zephyr/subsys/net/ip -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/hw_if/hal/inc/fw -I/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/osal/fw_if/umac_if/inc/fw -I/home/mhummels/ncs/nrf/tests/include -I/home/mhummels/ncs/modules/hal/cmsis/CMSIS/Core/Include -I/home/mhummels/ncs/modules/hal/nordic/nrfx -I/home/mhummels/ncs/modules/hal/nordic/nrfx/drivers/include -I/home/mhummels/ncs/modules/hal/nordic/nrfx/mdk -I/home/mhummels/ncs/zephyr/modules/hal_nordic/nrfx/. -I/home/mhummels/ncs/modules/debug/segger/SEGGER -I/home/mhummels/ncs/modules/debug/segger/Config -I/home/mhummels/ncs/zephyr/modules/segger/. -isystem /home/mhummels/ncs/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros /home/mhummels/ncs/nrf/samples/wifi/scan/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/home/mhummels/zephyr-sdk-0.16.0/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/mhummels/ncs/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -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/mhummels/ncs/nrf/samples/wifi/scan=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/mhummels/ncs/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/mhummels/ncs=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -MD -MT modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj -MF modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj.d -o modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj -c /home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c
In file included from /home/mhummels/ncs/zephyr/include/zephyr/toolchain/gcc.h:89,
                 from /home/mhummels/ncs/zephyr/include/zephyr/toolchain.h:50,
                 from /home/mhummels/ncs/zephyr/include/zephyr/kernel_includes.h:19,
                 from /home/mhummels/ncs/zephyr/include/zephyr/kernel.h:17,
                 from /home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:15:
/home/mhummels/ncs/zephyr/include/zephyr/device.h:83:41: error: '__device_dts_ord_DT_N_NODELABEL_nrf7002_P_host_irq_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/mhummels/ncs/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:316:25: note: in expansion of macro 'DEVICE_DT_GET'
  316 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
      |                         ^~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:30:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   30 | GPIO_DT_SPEC_GET(NRF7002_NODE, host_irq_gpios);
      | ^~~~~~~~~~~~~~~~
In file included from /home/mhummels/ncs/zephyr/include/zephyr/arch/arm/aarch32/arch.h:20,
                 from /home/mhummels/ncs/zephyr/include/zephyr/arch/cpu.h:19,
                 from /home/mhummels/ncs/zephyr/include/zephyr/kernel_includes.h:33:
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:190:36: error: 'DT_N_NODELABEL_nrf7002_P_host_irq_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:3912:9: note: in definition of macro 'DT_CAT7'
 3912 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:317:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  317 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:30:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   30 | GPIO_DT_SPEC_GET(NRF7002_NODE, host_irq_gpios);
      | ^~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:27:22: note: in expansion of macro 'DT_NODELABEL'
   27 | #define NRF7002_NODE DT_NODELABEL(nrf7002)
      |                      ^~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:30:18: note: in expansion of macro 'NRF7002_NODE'
   30 | GPIO_DT_SPEC_GET(NRF7002_NODE, host_irq_gpios);
      |                  ^~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:83:41: error: '__device_dts_ord_DT_N_NODELABEL_nrf7002_P_iovdd_ctrl_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/mhummels/ncs/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:316:25: note: in expansion of macro 'DEVICE_DT_GET'
  316 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
      |                         ^~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:33:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   33 | GPIO_DT_SPEC_GET(NRF7002_NODE, iovdd_ctrl_gpios);
      | ^~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:190:36: error: 'DT_N_NODELABEL_nrf7002_P_iovdd_ctrl_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:3912:9: note: in definition of macro 'DT_CAT7'
 3912 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:317:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  317 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:33:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   33 | GPIO_DT_SPEC_GET(NRF7002_NODE, iovdd_ctrl_gpios);
      | ^~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:27:22: note: in expansion of macro 'DT_NODELABEL'
   27 | #define NRF7002_NODE DT_NODELABEL(nrf7002)
      |                      ^~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:33:18: note: in expansion of macro 'NRF7002_NODE'
   33 | GPIO_DT_SPEC_GET(NRF7002_NODE, iovdd_ctrl_gpios);
      |                  ^~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:83:41: error: '__device_dts_ord_DT_N_NODELABEL_nrf7002_P_bucken_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/mhummels/ncs/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:316:25: note: in expansion of macro 'DEVICE_DT_GET'
  316 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
      |                         ^~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:36:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   36 | GPIO_DT_SPEC_GET(NRF7002_NODE, bucken_gpios);
      | ^~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:190:36: error: 'DT_N_NODELABEL_nrf7002_P_bucken_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:3912:9: note: in definition of macro 'DT_CAT7'
 3912 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:317:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  317 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/drivers/gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:36:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   36 | GPIO_DT_SPEC_GET(NRF7002_NODE, bucken_gpios);
      | ^~~~~~~~~~~~~~~~
/home/mhummels/ncs/zephyr/include/zephyr/devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:27:22: note: in expansion of macro 'DT_NODELABEL'
   27 | #define NRF7002_NODE DT_NODELABEL(nrf7002)
      |                      ^~~~~~~~~~~~
/home/mhummels/ncs/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:36:18: note: in expansion of macro 'NRF7002_NODE'
   36 | GPIO_DT_SPEC_GET(NRF7002_NODE, bucken_gpios);
      |                  ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/mhummels/ncs/nrf/samples/wifi/scan/build

If I try to build a simple example like the hardware ID one, it builds just fine.

I am a little confused why there is the nrf700x mentioned. Do I need to connect the companion chip to the devkit to be able to run this sample application? Where can I find the documentation on doing so? And even if I would have done so, why is the sample application code not building?

Thank you very much.

Best Regards,
M. Hummels

Parents
  • Hi, 

    Since nRF52840DK doesn't have a wifi chip, it would need to connect our nRF7002EK to run this sample. 

    To build for the nRF7002 EK, use the nrf52840dk_nrf52840 build target with the SHIELD CMake option set to nrf7002_ek. The following is an example of the CLI command:

    west build -b nrf52840dk_nrf52840 -- -DSHIELD=nrf7002_ek

    Regards,
    Amanda H. 

  • Hi Amanda,

    I’m running macOS Sonaoma and on a macMini M2; Zephyr SDK 0.16.4; 

    When I try this I get an error; apparently I have no shield named nrf7002_EK; terminal output follows:

    (.venv) jerry@macMini telnet % cd zephyr/samples/net/telnet

    west build --pristine -b nrf52840dk_nrf52840 -- -DSHIELD=nrf7002_ek

    cd: no such file or directory: zephyr/samples/net/telnet

    -- west build: making build dir /Users/jerry/zephyrproject/zephyr/samples/net/telnet/build pristine

    -- west build: generating a build system

    Loading Zephyr default modules (Zephyr base).

    -- Application: /Users/jerry/zephyrproject/zephyr/samples/net/telnet

    -- CMake version: 3.27.9

    -- Found Python3: /Users/jerry/zephyrproject/.venv/bin/python3.11 (found suitable version "3.11.6", minimum required is "3.8") found components: Interpreter 

    -- Cache files will be written to: /Users/jerry/Library/Caches/zephyr

    -- Zephyr version: 3.5.99 (/Users/jerry/zephyrproject/zephyr)

    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")

    -- Board: nrf52840dk_nrf52840

    -- Shield(s): nrf7002_ek

    No shield named 'nrf7002_ek' found

    Please choose from among the following shields:

    adafruit_2_8_tft_touch_v2

    adafruit_2_8_tft_touch_v2_nano

    adafruit_can_picowbell

    adafruit_data_logger

    adafruit_pca9685

    adafruit_winc1500

    amg88xx_eval_kit

    amg88xx_grid_eye_eval_shield

    arceli_eth_w5500

    arduino_uno_click

    atmel_rf2xx

    atmel_rf2xx_arduino

    atmel_rf2xx_legacy

    atmel_rf2xx_mikrobus

    atmel_rf2xx_xplained

    atmel_rf2xx_xpro

    boostxl_ulpsense

    buydisplay_2_8_tft_touch_arduino

    buydisplay_3_5_tft_touch_arduino

    dac80508_evm

    dfrobot_can_bus_v2_0

    esp_8266

    esp_8266_arduino

    esp_8266_mikrobus

    frdm_cr20a

    frdm_kw41z

    frdm_stbc_agm01

    ftdi_vm800c

    g1120b0mipi

    inventek_eswifi

    inventek_eswifi_arduino_spi

    inventek_eswifi_arduino_uart

    keyestudio_can_bus_ks0411

    link_board_eth

    lmp90100_evb

    ls013b7dh03

    m5stack_core2_ext

    max7219_8x8

    mikroe_accel13_click

    mikroe_adc_click

    mikroe_eth_click

    mikroe_mcp2518fd_click

    mikroe_wifi_bt_click

    mikroe_wifi_bt_click_arduino

    mikroe_wifi_bt_click_mikrobus

    npm1100_ek

    npm1300_ek

    npm6001_ek

    rk055hdmipi4m

    rk055hdmipi4ma0

    semtech_sx1262mb2das

    semtech_sx1272mb2das

    semtech_sx1276mb1mas

    sh1106_128x64

    sparkfun_max3421e

    sparkfun_sara_r4

    ssd1306_128x32

    ssd1306_128x64

    ssd1306_128x64_spi

    st7735r_ada_160x128

    st7789v_tl019fqv01

    st7789v_waveshare_240x240

    st_b_lcd40_dsi1_mb1166

    tcan4550evm

    ti_bp_bassensorsmkii

    v2c_daplink

    v2c_daplink_cfg

    waveshare_epaper_gdeh0154a07

    waveshare_epaper_gdeh0213b1

    waveshare_epaper_gdeh0213b72

    waveshare_epaper_gdeh029a1

    waveshare_epaper_gdew042t2

    waveshare_epaper_gdew042t2-p

    waveshare_epaper_gdew075t7

    waveshare_pico_ups_b

    wnc_m14a2a

    x_nucleo_53l0a1

    x_nucleo_eeprma2

    x_nucleo_idb05a1

    x_nucleo_iks01a1

    x_nucleo_iks01a2

    x_nucleo_iks01a2_shub

    x_nucleo_iks01a3

    x_nucleo_iks01a3_shub

    x_nucleo_iks02a1

    x_nucleo_iks02a1_mic

    x_nucleo_iks02a1_shub

    CMake Error at /Users/jerry/zephyrproject/zephyr/cmake/modules/shields.cmake:134 (message):

      Invalid SHIELD; see above.

    Call Stack (most recent call first):

      /Users/jerry/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:129 (include)

      /Users/jerry/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)

      /Users/jerry/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)

      CMakeLists.txt:4 (find_package)

    -- Configuring incomplete, errors occurred!

    FATAL ERROR: command exited with status 1: /opt/homebrew/bin/cmake -DWEST_PYTHON=/Users/jerry/zephyrproject/.venv/bin/python3.11 -B/Users/jerry/zephyrproject/zephyr/samples/net/telnet/build -GNinja -DBOARD=nrf52840dk_nrf52840 -DSHIELD=nrf7002_ek -S/Users/jerry/zephyrproject/zephyr/samples/net/telnet

    (.venv) jerry@macMini telnet % 

    Any ideas?

    Regards,

    Jerry

  • Hi Amanda,

    I am at this very moment trying to do that;.

    Regards,

    Jerry

  • Well, I give up!

    I, under vscode/nrfconnect, have created an application by copying the telnet sample.  It failed with an overwhelming plethora of error messages:

    All I want to do is to build the telnet sample for my nrf52840dk/nrf7002ek; I can’t even get it to build.

    Regards,

    Jerry

    Build output follows:

    * Executing task: nRF Connect: Build [pristine]: telnet/build_nrf52840dk_nrf7--2ek (active)

    Building telnet
    west build --build-dir /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek /Users/jerry/MyApps/telnet --pristine --board nrf52840dk_nrf52840 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/Users/jerry/MyApps/telnet/prj.conf -DEXTRA_CONF_FILE=/Users/jerry/MyApps/telnet/overlay-nrf700x.conf -DBOARD_ROOT=/Users/jerry/MyApps/wifi

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /Users/jerry/MyApps/telnet
    -- CMake version: 3.20.5
    -- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: /Users/jerry/Library/Caches/zephyr
    -- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
    -- Found BOARD.dts: /opt/nordic/ncs/v2.5.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek/zephyr/dts.cmake

    warning: Experimental symbol WPA_SUPP is enabled.


    warning: Experimental symbol WIFI_NRF700X is enabled.


    warning: Experimental symbol NET_CONNECTION_MANAGER is enabled.


    warning: Experimental symbol SHELL_TELNET_SUPPORT_COMMAND is enabled.

    Parsing /opt/nordic/ncs/v2.5.0/zephyr/Kconfig
    Loaded configuration '/opt/nordic/ncs/v2.5.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration '/Users/jerry/MyApps/telnet/prj.conf'
    Merged configuration '/Users/jerry/MyApps/telnet/overlay-nrf700x.conf'
    Configuration saved to '/Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek/zephyr/.config'
    Kconfig header saved to '/Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (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: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek
    -- west build: building application
    [1/414] Preparing syscall dependency handling

    [4/414] Generating include/generated/version.h
    -- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1
    [407/414] Building C object modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj
    FAILED: modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj
    ccache /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DCONFIG_ZEPHYR -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF52840_XXAA -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -I/opt/nordic/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -I/opt/nordic/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf52 -I/opt/nordic/ncs/v2.5.0/zephyr/lib/libc/newlib/include -I/opt/nordic/ncs/v2.5.0/zephyr/lib/posix/getopt/. -I/opt/nordic/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -I/opt/nordic/ncs/v2.5.0/zephyr/subsys/net/l2 -I/opt/nordic/ncs/v2.5.0/zephyr/subsys/net/lib/sockets/. -I/opt/nordic/ncs/v2.5.0/zephyr/subsys/net/lib/dns/. -I/opt/nordic/ncs/v2.5.0/zephyr/subsys/net/conn_mgr/. -I/opt/nordic/ncs/v2.5.0/nrf/include -I/opt/nordic/ncs/v2.5.0/nrf/modules/hostap/src -I/opt/nordic/ncs/v2.5.0/nrf/modules/hostap/../../../modules/lib/hostap -I/opt/nordic/ncs/v2.5.0/nrf/modules/hostap/../../../modules/lib/hostap/wpa_supplicant -I/opt/nordic/ncs/v2.5.0/nrf/modules/hostap/../../../modules/lib/hostap/src -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/utils/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/os_if/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/bus_if/bus/qspi/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/bus_if/bal/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/fw_if/umac_if/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/fw_load/mips/fw/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/hw_if/hal/inc -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/inc -I/opt/nordic/ncs/v2.5.0/zephyr/subsys/net/ip -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/hw_if/hal/inc/fw -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/fw_if/umac_if/inc/fw -I/opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/osal/fw_if/umac_if/inc/default -I/opt/nordic/ncs/v2.5.0/nrf/tests/include -I/opt/nordic/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -I/opt/nordic/ncs/v2.5.0/zephyr/modules/cmsis/. -I/opt/nordic/ncs/v2.5.0/modules/hal/nordic/nrfx -I/opt/nordic/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -I/opt/nordic/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -I/opt/nordic/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -I/opt/nordic/ncs/v2.5.0/modules/debug/segger/SEGGER -I/opt/nordic/ncs/v2.5.0/modules/debug/segger/Config -Imodules/nrf/subsys/nrf_security/src/include/generated -I/opt/nordic/ncs/v2.5.0/nrf/subsys/nrf_security/include -I/opt/nordic/ncs/v2.5.0/nrf/ext/oberon/psa/core/include -I/opt/nordic/ncs/v2.5.0/nrf/ext/oberon/psa/core/library -I/opt/nordic/ncs/v2.5.0/modules/crypto/mbedtls/include -I/opt/nordic/ncs/v2.5.0/modules/crypto/mbedtls/library -I/opt/nordic/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/include -I/opt/nordic/ncs/v2.5.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/opt/nordic/ncs/v2.5.0/nrf/ext/oberon/psa/drivers -isystem /opt/nordic/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /opt/nordic/ncs/v2.5.0/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=/Users/jerry/MyApps/telnet=CMAKE_SOURCE_DIR -fmacro-prefix-map=/opt/nordic/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/opt/nordic/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -D_POSIX_THREADS -std=c99 -MD -MT modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj -MF modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj.d -o modules/nrf/drivers/wifi/nrf700x/CMakeFiles/..__nrf__drivers__wifi__nrf700x.dir/zephyr/src/qspi/src/rpu_hw_if.c.obj -c /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c
    In file included from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/toolchain/gcc.h:92,
    from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/toolchain.h:50,
    from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/kernel_includes.h:19,
    from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/kernel.h:17,
    from /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:15:
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_N_NODELABEL_nrf700x_P_host_irq_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
    85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
    132 | #define _DO_CONCAT(x, y) x ## y
    | ^
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
    85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:211:37: note: in expansion of macro 'DEVICE_NAME_GET'
    211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
    | ^~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:228:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
    228 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
    | ^~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:331:25: note: in expansion of macro 'DEVICE_DT_GET'
    331 | .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
    | ^~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
    367 | GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:30:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
    30 | GPIO_DT_SPEC_GET(NRF7002_NODE, host_irq_gpios);
    | ^~~~~~~~~~~~~~~~
    In file included from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/arch/arm/aarch32/arch.h:20,
    from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/arch/cpu.h:19,
    from /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/kernel_includes.h:33:
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:197:36: error: 'DT_N_NODELABEL_nrf700x_P_host_irq_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
    197 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:4240:9: note: in definition of macro 'DT_CAT7'
    4240 | a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
    | ^~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
    164 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
    | ^~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
    332 | .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx), \
    | ^~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
    367 | GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:30:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
    30 | GPIO_DT_SPEC_GET(NRF7002_NODE, host_irq_gpios);
    | ^~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:197:29: note: in expansion of macro 'DT_CAT'
    197 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:27:22: note: in expansion of macro 'DT_NODELABEL'
    27 | #define NRF7002_NODE DT_NODELABEL(nrf700x)
    | ^~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:30:18: note: in expansion of macro 'NRF7002_NODE'
    30 | GPIO_DT_SPEC_GET(NRF7002_NODE, host_irq_gpios);
    | ^~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_N_NODELABEL_nrf700x_P_iovdd_ctrl_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
    85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
    132 | #define _DO_CONCAT(x, y) x ## y
    | ^
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
    85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:211:37: note: in expansion of macro 'DEVICE_NAME_GET'
    211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
    | ^~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:228:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
    228 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
    | ^~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:331:25: note: in expansion of macro 'DEVICE_DT_GET'
    331 | .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
    | ^~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
    367 | GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:33:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
    33 | GPIO_DT_SPEC_GET(NRF7002_NODE, iovdd_ctrl_gpios);
    | ^~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:197:36: error: 'DT_N_NODELABEL_nrf700x_P_iovdd_ctrl_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
    197 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:4240:9: note: in definition of macro 'DT_CAT7'
    4240 | a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
    | ^~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
    164 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
    | ^~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
    332 | .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx), \
    | ^~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
    367 | GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:33:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
    33 | GPIO_DT_SPEC_GET(NRF7002_NODE, iovdd_ctrl_gpios);
    | ^~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:197:29: note: in expansion of macro 'DT_CAT'
    197 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:27:22: note: in expansion of macro 'DT_NODELABEL'
    27 | #define NRF7002_NODE DT_NODELABEL(nrf700x)
    | ^~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:33:18: note: in expansion of macro 'NRF7002_NODE'
    33 | GPIO_DT_SPEC_GET(NRF7002_NODE, iovdd_ctrl_gpios);
    | ^~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_N_NODELABEL_nrf700x_P_bucken_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
    85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
    132 | #define _DO_CONCAT(x, y) x ## y
    | ^
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
    85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:211:37: note: in expansion of macro 'DEVICE_NAME_GET'
    211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
    | ^~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/device.h:228:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
    228 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
    | ^~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:331:25: note: in expansion of macro 'DEVICE_DT_GET'
    331 | .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
    | ^~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
    367 | GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:36:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
    36 | GPIO_DT_SPEC_GET(NRF7002_NODE, bucken_gpios);
    | ^~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:197:36: error: 'DT_N_NODELABEL_nrf700x_P_bucken_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
    197 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:4240:9: note: in definition of macro 'DT_CAT7'
    4240 | a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
    | ^~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree/gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
    164 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
    | ^~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:332:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
    332 | .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx), \
    | ^~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/drivers/gpio.h:367:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
    367 | GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
    | ^~~~~~~~~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:36:1: note: in expansion of macro 'GPIO_DT_SPEC_GET'
    36 | GPIO_DT_SPEC_GET(NRF7002_NODE, bucken_gpios);
    | ^~~~~~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/zephyr/include/zephyr/devicetree.h:197:29: note: in expansion of macro 'DT_CAT'
    197 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
    | ^~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:27:22: note: in expansion of macro 'DT_NODELABEL'
    27 | #define NRF7002_NODE DT_NODELABEL(nrf700x)
    | ^~~~~~~~~~~~
    /opt/nordic/ncs/v2.5.0/nrf/drivers/wifi/nrf700x/zephyr/src/qspi/src/rpu_hw_if.c:36:18: note: in expansion of macro 'NRF7002_NODE'
    36 | GPIO_DT_SPEC_GET(NRF7002_NODE, bucken_gpios);
    | ^~~~~~~~~~~~
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake --build /Users/jerry/MyApps/telnet/build_nrf52840dk_nrf7--2ek

  • Well it won’t build again; all kinds of errors: 

    All I want to do is under vscode/nrfconnect copy and build the telnet sample for my nrf52840dk/nrf7002ek; is that too much to ask?

    Jerry 

  • Hi, 

    Try to set the build config as

    If it cannot help, please create a new support case for your issue. 

    -Amanda H.

Reply Children
Related