nrf7002 - wifi_supplicant: Failed to add iface wlan0

I am trying to run the WiFi Station sample, unchanged on a nrf7002DK, but receive the following error: "wifi_supplicant: Failed to add iface wlan0" Complete output as follows:

*** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
[00:00:00.615,020] <inf> net_config: Initializing network
[00:00:00.615,020] <inf> net_config: Waiting interface 1 (0x20001448) to be up...
[00:00:00.615,203] <inf> net_config: IPv4 address: 192.168.1.99
[00:00:00.615,234] <inf> net_config: Running dhcpv4 client...
[00:00:03.197,265] <inf> sta: Starting nrf7002dk with CPU frequency: 64 MHz
[00:00:03.198,028] <inf> wifi_supplicant: wpa_supplicant initialized
[00:00:04.197,418] <inf> sta: QSPI Encryption disabled
[00:00:04.197,479] <inf> sta: Static IP address (overridable): 192.168.1.99/255.255.255.0 -> 192.168.1.1
[00:00:04.197,479] <inf> sta: Waiting for Wi-Fi to be ready
[00:00:05.187,713] <err> wifi_supplicant: Failed to add iface wlan0

So you can see I'm using the latest nRF Connect SDK: 3.1.1, using VSCode, nRF Connect for VS Code Extension Pack: 2025.4.4

All the latest tools, etc... and am not sure why an unchanged sample will not run?

Parents
  • Hi,

     

    The sample shall run without issues on v3.1.1:

    *** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
    *** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
    [00:00:00.583,862] <inf> net_config: Initializing network
    [00:00:00.583,862] <inf> net_config: Waiting interface 1 (0x20000f90) to be up...
    [00:00:00.584,014] <inf> net_config: IPv4 address: 192.168.1.99
    [00:00:00.584,045] <inf> net_config: Running dhcpv4 client...
    [00:00:00.584,869] <inf> sta: Starting nrf7002dk with CPU frequency: 64 MHz
    [00:00:00.585,540] <inf> wifi_supplicant: wpa_supplicant initialized
    [00:00:01.585,021] <inf> sta: QSPI Encryption disabled
    [00:00:01.585,083] <inf> sta: Static IP address (overridable): 192.168.1.99/255.255.255.0 -> 192.168.1.1
    [00:00:01.585,083] <inf> sta: Waiting for Wi-Fi to be ready
    [00:00:05.196,044] <inf> net_wifi_mgmt: Connection requested
    [00:00:05.196,075] <inf> sta: Connection requested
    [00:00:05.196,136] <inf> sta: ==================
    [00:00:05.196,166] <inf> sta: State: SCANNING
    [00:00:05.496,307] <inf> sta: ==================
    ...
    

    Have you checked that both jumpers are connected on the pin headers for current consumption, located just above the "IMCU USB" connector?

     

    Kind regards,

    Håkon

  • Can you post your entire project? I just took the nrf7002dk brand new to try the example, didn't change any jumpers / settings, etc... The jumpers are both on that you mention.

  • The example I ran is a completely stock ncs v3.1.1 wifi/sta, compiled for board nrf7002dk/nrf5340/cpuapp.

     

    Here's the hex: 6710.merged.hex

     

    Try this and see if it still shows an error.

     

    Kind regards,

    Håkon

Reply Children
Related