Skip to content

Commit 0c2bb62

Browse files
JiafeiPanfabiobaltieri
authored andcommitted
boards: imx95_evk: a55: enlarge networking stack size
The issue is caused by default stack size 1500 bytes of NET_RX_STACK_SIZE is to small for ARM64 platform, then the stack of net_rx thread is overflow and break the net_mgmt thread's stack, as a result net_mgmt thread is crashed. So this patch will enlarge all the stack size of net stack threads. Signed-off-by: Jiafei Pan <[email protected]>
1 parent 5a56cb6 commit 0c2bb62

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

boards/nxp/imx95_evk/Kconfig.defconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,39 @@ config ARM_SCMI_TRANSPORT_INIT_PRIORITY
2828
config CLOCK_CONTROL_INIT_PRIORITY
2929
default 31
3030

31+
# Enlarge default networking stack
32+
if NETWORKING
33+
34+
config NET_L2_ETHERNET
35+
default y
36+
37+
config NET_TX_STACK_SIZE
38+
default 8192
39+
40+
config NET_RX_STACK_SIZE
41+
default 8192
42+
43+
if NET_TCP
44+
45+
config NET_TCP_WORKQ_STACK_SIZE
46+
default 8192
47+
48+
endif # NET_TCP
49+
50+
if NET_MGMT_EVENT
51+
52+
config NET_MGMT_EVENT_STACK_SIZE
53+
default 8192
54+
55+
endif # NET_MGMT_EVENT
56+
57+
if NET_SOCKETS_SERVICE
58+
59+
config NET_SOCKETS_SERVICE_STACK_SIZE
60+
default 8192
61+
62+
endif # NET_SOCKETS_SERVICE
63+
64+
endif # NETWORKING
65+
3166
endif # SOC_MIMX9596_A55

boards/nxp/imx95_evk/imx95_evk_mimx9596_a55.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ supported:
1616
- counter
1717
- i2c
1818
- uart
19+
- net
1920
testing:
2021
binaries:
2122
- flash.bin

0 commit comments

Comments
 (0)