Build Errors when trying Zephyr sample for wifi

Hello,

   I am trying to play with zephyr networking samples on my nRF5340 + nRF7002 EK devkit board.

I am using NCS 2.7.0 release SDK. i was able to build and run some Wi-Fi samples in the SDK.

Now i want to run some samples from zephyr networking as documented here
https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/wifi_zephyr.html

However compilation is failing when i try to compile samples here. i tried `dhcpv4_client` and `mqtt_publisher` and both of them gave this error

"/Desktop/technical/ncs/nrf/modules/hostap/src/supp_main.c:623: undefined reference to `__device_dts_ord_6'"

I just added WiFi credentials in the overlay other than that i am using the SDK as is via commandline.

I checked the build zephyr.dts file in the build folder and i do see `zephyr,wifi = &nordic_wlan0;` 

Am i missing something in my setup?

Parents
  • on further analysis i see that `CONFIG_WIFI_NRF700X` is not set when building zephyr network sample even though it is set in overlay file.
    It does not work even if i set this config manually in prj.conf or via menuconfig also. I don't know what is happening in the new kconfig since there is no error or warning shown also for this config. it is like this config is ignored/unset silently.

    If i build the sample for `nRF7002 DK` directly then it compiles but not for `nRF5340 DK + nRF7002 EK`


    do you know anything about this?

Reply
  • on further analysis i see that `CONFIG_WIFI_NRF700X` is not set when building zephyr network sample even though it is set in overlay file.
    It does not work even if i set this config manually in prj.conf or via menuconfig also. I don't know what is happening in the new kconfig since there is no error or warning shown also for this config. it is like this config is ignored/unset silently.

    If i build the sample for `nRF7002 DK` directly then it compiles but not for `nRF5340 DK + nRF7002 EK`


    do you know anything about this?

Children
Related