Skip to content

Commit

Permalink
samples: wifi: Increase stack sizes to accomodate latest Wi-Fi
Browse files Browse the repository at this point in the history
The latest Wi-Fi needs heavier stack size, primarily due to WPA
supplicant usage, so, increase MAIN and SHELL thread stack sizes for all
Wi-Fi samples, including the ones that don't use WPA supplicant.

There is a task to run through each sample and find an optimized value,
so, this will be revisited later, right now trying to avoid crashes.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 authored and rlubos committed Oct 26, 2024
1 parent 82cfff1 commit b3c4447
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion samples/wifi/ble_coex/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CONFIG_NET_CONFIG_INIT_TIMEOUT=0
CONFIG_NET_SOCKETS_POLL_MAX=10

# Memories
CONFIG_MAIN_STACK_SIZE=4300
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096

Expand Down
2 changes: 1 addition & 1 deletion samples/wifi/offloaded_raw_tx/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CONFIG_WIFI_NRF70=y
CONFIG_NRF70_OFFLOADED_RAW_TX=y

# Memories
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_HEAP_MEM_POOL_SIZE=18000
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
2 changes: 1 addition & 1 deletion samples/wifi/provisioning/ble/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.165.100.1"
CONFIG_NET_SOCKETS_POLL_MAX=10

# Memories
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096

Expand Down
4 changes: 2 additions & 2 deletions samples/wifi/radio_test/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ CONFIG_NRF70_RADIO_TEST=y
#CONFIG_INIT_STACKS=y

# Memories
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SHELL_STACK_SIZE=4096
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_SHELL_STACK_SIZE=5200
#64K memory needed for IQ sample captures.
CONFIG_HEAP_MEM_POOL_SIZE=98304
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
Expand Down
2 changes: 1 addition & 1 deletion samples/wifi/shutdown/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CONFIG_NET_OFFLOAD=y
CONFIG_INIT_STACKS=y

# Memories
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_MAIN_STACK_SIZE=5200

# Debugging
CONFIG_STACK_SENTINEL=y
Expand Down
2 changes: 1 addition & 1 deletion samples/wifi/softap/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CONFIG_NET_SOCKETS_POLL_MAX=10
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096
CONFIG_SOFTAP_SAMPLE_START_WIFI_THREAD_STACK_SIZE=4300
CONFIG_SOFTAP_SAMPLE_START_WIFI_THREAD_STACK_SIZE=5200

# Debugging
CONFIG_STACK_SENTINEL=y
Expand Down
2 changes: 1 addition & 1 deletion samples/wifi/thread_coex/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_INIT_TIMEOUT=0

# Memories
CONFIG_MAIN_STACK_SIZE=4500
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096

Expand Down
4 changes: 2 additions & 2 deletions samples/wifi/throughput/overlay-high-performance.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ CONFIG_NRF70_MAX_TX_TOKENS=12
CONFIG_ZVFS_OPEN_MAX=20
CONFIG_NET_SOCKETS_POLL_MAX=20
# Sockets: select + poll take up more stack
CONFIG_MAIN_STACK_SIZE=4200
CONFIG_SHELL_STACK_SIZE=4700
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_SHELL_STACK_SIZE=5200
CONFIG_NET_MGMT_EVENT_STACK_SIZE=4600
4 changes: 2 additions & 2 deletions samples/wifi/throughput/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ CONFIG_NET_SHELL=y
CONFIG_NET_SOCKETS_POLL_MAX=12

# Memories
CONFIG_MAIN_STACK_SIZE=4200
CONFIG_SHELL_STACK_SIZE=4444
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_SHELL_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096

Expand Down
4 changes: 2 additions & 2 deletions samples/wifi/wfa_qt_app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_SHELL=y

# Memories
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SHELL_STACK_SIZE=4300
CONFIG_MAIN_STACK_SIZE=5200
CONFIG_SHELL_STACK_SIZE=5200
CONFIG_NET_TX_STACK_SIZE=4096
CONFIG_NET_RX_STACK_SIZE=4096

Expand Down

0 comments on commit b3c4447

Please sign in to comment.