Skip to content

Commit 0a02957

Browse files
committed
samples: net: wifi: wifiutils App for memory test
Application used to test RPU memory through read/write operations. Signed-off-by: Ajay Parida <[email protected]>
1 parent 9122a63 commit 0a02957

File tree

6 files changed

+831
-0
lines changed

6 files changed

+831
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
project(wifiutils)
11+
12+
target_sources(app PRIVATE src/main.c)

samples/net/wifi/wifiutils/build.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Build command for QSPI -
2+
west build -p -b nrf7002dk/nrf5340/cpuapp -- -DDTC_OVERLAY_FILE=fpga_qspi.overlay
3+
4+
Build command for SPI -
5+
west build -p -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek -DDTC_OVERLAY_FILE=fpga_spi.overlay
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
&nrf70 {
7+
qspi-frequency = <8000000>;
8+
/* Wi-Fi Pins used */
9+
iovdd-ctrl-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
10+
bucken-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
11+
host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
12+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
&nrf70 {
7+
spi-max-frequency = <8000000>;
8+
/* Wi-Fi Pins used */
9+
iovdd-ctrl-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
10+
bucken-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | NRF_DRIVE_E0E1)>;
11+
host-irq-gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
12+
};

samples/net/wifi/wifiutils/prj.conf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
#
6+
7+
CONFIG_NRF70_BUSLIB=y
8+
CONFIG_HEAP_MEM_POOL_SIZE=50000
9+
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
10+
11+
# System settings
12+
CONFIG_ASSERT=y
13+
14+
CONFIG_INIT_STACKS=y
15+
CONFIG_SHELL=y
16+
17+
# Memories
18+
CONFIG_MAIN_STACK_SIZE=5200
19+
20+
# Debugging
21+
CONFIG_STACK_SENTINEL=y
22+
CONFIG_DEBUG_COREDUMP=y
23+
CONFIG_DEBUG_COREDUMP_BACKEND_LOGGING=y
24+
CONFIG_SHELL_CMDS_RESIZE=n
25+
CONFIG_WIFI_NRF70_BUSLIB_LOG_LEVEL_DBG=y
26+
27+
# Logging
28+
CONFIG_LOG=y
29+
CONFIG_PRINTK=y
30+
# If below config is enabled, printk logs are
31+
# buffered. For unbuffered messages, disable this.
32+
CONFIG_LOG_PRINTK=n
33+
CONFIG_LOG_MODE_IMMEDIATE=y
34+
CONFIG_WIFI_NRF71=y

0 commit comments

Comments
 (0)