nrf7002ek and nrf52840Dk

Hi All!

I am trying to connect with static SSID & password to connect with the wififund_less2_exer2_solution

Ncs 2.5.2 and vscode studio , Dk's are nrf52840Dk with nrf7002EK

I also tried wifi_provisioning example as well as used the andriod app to provision using BLE .

Both have the same response!

I entered the correct SSID and password.

Uart terminal output with error code is -134

and

cmakelist.txt

cmake_minimum_required(VERSION 3.20.0)


set(SHIELD nrf7002ek)   #added


find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(wifi_fundamentals)

target_sources(app PRIVATE src/main.c)

prj.conf

#
# Copyright (c) 2022 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Wi-Fi
# STEP 1.1 - Enable the Wi-Fi relevant configurations
CONFIG_WIFI=y
CONFIG_WIFI_NRF700X=y
CONFIG_WPA_SUPP=y
# STEP 2 - Configure the Wi-Fi credentials
CONFIG_WIFI_CREDENTIALS=y
# STEP 12.1 - Diasble static Wi-Fi network configuration
CONFIG_WIFI_CREDENTIALS_STATIC=y
CONFIG_WIFI_CREDENTIALS_STATIC_SSID="NETGEAR06"
CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD="bxxxxxxxxx41"


# Networking Management API
# STEP 1.2 Enable the Network Management relevant configurations
CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
CONFIG_NET_MGMT_EVENT_INFO=y
CONFIG_NET_MGMT_EVENT_STACK_SIZE=4096
CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_WIFI_MGMT_EXT=y

# STEP 12.3 Enable support for shell commands
CONFIG_SHELL=y
CONFIG_WIFI_CREDENTIALS_SHELL=y
CONFIG_SHELL_STACK_SIZE=4096

# Logging
CONFIG_LOG=y

# DK library
CONFIG_DK_LIBRARY=y

# System settings
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_NANO=n

# Networking
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_IPV6=n
CONFIG_NET_IPV4=y
CONFIG_NET_DHCPV4=y

# Memory
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=153600

Thanks & Regards,

Muhammad Usman

  • So in other words this is a completely default version of the solution project, just with the credentials added?

    Are you seeing the same issue on the nRF7002DK, if you have it?

    Regards,

    Elfving

  • thank you for the response!

    So in other words this is a completely default version of the solution project, just with the credentials added?

    yes , right credentials added in default with the folliowing line added in the cmakelist.txt as well "set(SHIELD nrf7002ek)

    Are you seeing the same issue on the nRF7002DK, if you have it?

    Sorry I don't have nrf7002dk , only have nrf52840dk and nrf7002ek.

    One more observation is that , when i used ncs2.6.0 then i got following error related to ram overflow 

    phyr-eabi/bin/ld.bfd.exe: region `RAM' overflowed by 35564 bytes.

    To compile with ncs 2.6.0 I disabled the following 

    # STEP 12.3 Enable support for shell commands
    CONFIG_SHELL=n
    CONFIG_WIFI_CREDENTIALS_SHELL=n
    #CONFIG_SHELL_STACK_SIZE=4096

    # Logging
    CONFIG_LOG=n
    Code compiled successfully with ncs2.6.0 but stuck at the first message .
    Thanks & Regards,
  • Hi 

    What I find is that the scan is not started. Although 

    CONFIG_WPA_SUPP=y
    can you please help me in this regard,
    Thanks & Regards,
  • Hi Elfving 

    When I tried the Wifi-Station example, it worked for me! 

    [00:00:06.752,166] <ESC><inf> sta: State: SCANNING<ESC><CR><LF>
    [00:00:07.052,551] <ESC><inf> sta: ==================<ESC><CR><LF>
    [00:00:07.052,581] <ESC><inf> sta: State: SCANNING<ESC><CR><LF>
    [00:00:07.352,722] <ESC><inf> sta: ==================<ESC><CR><LF>
    [00:00:07.352,752] <ESC><inf> sta: State: SCANNING<ESC><CR><LF>
    [00:00:07.652,862] <ESC><inf> sta: ==================<ESC><CR><LF>
    [00:00:07.652,893] <ESC><inf> sta: State: SCANNING<ESC><CR><LF>
    [00:00:07.953,002] <ESC><inf> sta: ==================<ESC><CR><LF>
    [00:00:07.953,033] <ESC><inf> sta: State: AUTHENTICATING<ESC><CR><LF>
    [00:00:08.093,505] <ESC><inf> sta: Connected<ESC><CR><LF>
    [00:00:08.149,963] <ESC><inf> net_config: IPv6 address: fe80::f6ce:36ff:fe00:4e73<ESC><CR><LF>
    [00:00:08.152,038] <ESC><inf> net_dhcpv4: Received: 192.168.1.9<ESC><CR><LF>
    [00:00:08.152,191] <ESC><inf> net_config: IPv4 address: 192.168.1.9<ESC><CR><LF>
    [00:00:08.152,191] <ESC><inf> net_config: Lease time: 86400 seconds<ESC><CR><LF>
    [00:00:08.152,252] <ESC><inf> net_config: Subnet: 255.255.255.0<ESC><CR><LF>
    [00:00:08.152,313] <ESC><inf> net_config: Router: 192.168.1.1<ESC><CR><LF>
    [00:00:08.152,404] <ESC><inf> sta: DHCP IP address: 192.168.1.9<ESC><CR><LF>
    [00:00:08.257,141] <ESC><inf> sta: ==================<ESC><CR><LF>
    [00:00:08.257,171] <ESC><inf> sta: State: COMPLETED<ESC><CR><LF>
    [00:00:08.257,202] <ESC><inf> sta: Interface Mode: STATION<ESC><CR><LF>
    [00:00:08.257,232] <ESC><inf> sta: Link Mode: WIFI 6 (802.11ax/HE)<ESC><CR><LF>
    [00:00:08.257,263] <ESC><inf> sta: SSID: NETGEAR06<ESC><CR><LF>
    [00:00:08.257,293] <ESC><inf> sta: BSSID: C8:9E:43:73:08:8B<ESC><CR><LF>
    [00:00:08.257,324] <ESC><inf> sta: Band: 2.4GHz<ESC><CR><LF>
    [00:00:08.257,324] <ESC><inf> sta: Channel: 2<ESC><CR><LF>
    [00:00:08.257,354] <ESC><inf> sta: Security: WPA2-PSK<ESC><CR><LF>
    [00:00:08.257,385] <ESC><inf> sta: MFP: Optional<ESC><CR><LF>
    [00:00:08.257,385] <ESC><inf> sta: RSSI: -33<ESC><CR><LF>
    [00:00:09.069,885] <ESC><inf> net_config: IPv6 address: 2601:1c0:5002:ccb0:f6ce:36ff:fe00:4e73<ESC><CR><LF>

    Can you please help me to find out the issue in the Nordic Academy example code I want to use other examples in my project. They are easy to understand and use.

    Thanks & Regards,

    Muhammad Usman

  • Muhammad Usman said:

    yes , right credentials added in default with the folliowing line added in the cmakelist.txt as well "set(SHIELD nrf7002ek)

    That should work.

    Muhammad Usman said:

    One more observation is that , when i used ncs2.6.0 then i got following error related to ram overflow 

    phyr-eabi/bin/ld.bfd.exe: region `RAM' overflowed by 35564 bytes.

    To compile with ncs 2.6.0 I disabled the following 

    I would assume it should work with multiple versions of NCS, 2.6.0 as well, though the course was tested with 2.5.0, and there might be some additions to the Wi-Fi stack that has made it require a bit more RAM in 2.6.0. 

    I guess this is why it says that this course is only supported on the nRF7002DK, or the nRF5340DK with an nRF7EK. It needs the additional RAM that the 53 provides.

    Though as you've found out, multiple samples work on the nRF52840.

    Do you have a nRF5340DK you could use?

    Regards,

    Elfving

Related