Skip to content

Commit b0c75a1

Browse files
committed
app: Re-introduce networking configurations
Some configurations got higher defaults when they were removed as part of connection manager removal. Re-introducing them reduces total RAM footprint. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
1 parent 4dcc54c commit b0c75a1

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

app/prj.conf

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ CONFIG_LTE_LC_PSM_MODULE=y
4040
CONFIG_LTE_LC_EDRX_MODULE=y
4141
CONFIG_LTE_LC_CONN_EVAL_MODULE=y
4242

43+
# Modem library shared memory buffers - 4KB is sufficient for this application
44+
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=4096
45+
CONFIG_NRF_MODEM_LIB_SHMEM_RX_SIZE=4096
46+
4347
# Enable PSM (Power Saving Mode)
4448
CONFIG_LTE_LC_WORKQUEUE_STACK_SIZE=896
4549
CONFIG_LTE_PSM_REQ=y
@@ -178,23 +182,27 @@ CONFIG_NET_IPV6=n
178182
CONFIG_NET_NATIVE=y
179183
CONFIG_NET_DHCPV4=n
180184

181-
# Network buffers and packets (need enough for concurrent WiFi scan + CoAP)
185+
# Network buffers and packets (restore original values before conn mgr removal)
182186
CONFIG_NET_BUF_RX_COUNT=8
183187
CONFIG_NET_BUF_TX_COUNT=8
184-
CONFIG_NET_PKT_RX_COUNT=4
185-
CONFIG_NET_PKT_TX_COUNT=4
188+
# Keep at 1 - original value that worked before
189+
CONFIG_NET_PKT_RX_COUNT=1
190+
CONFIG_NET_PKT_TX_COUNT=1
186191

187-
# Network thread stack sizes (need headroom for CoAP/DTLS processing)
188-
CONFIG_NET_TX_STACK_SIZE=1024
189-
CONFIG_NET_RX_STACK_SIZE=1024
192+
# Network thread stack sizes (restore original values)
193+
CONFIG_NET_TX_STACK_SIZE=512
194+
CONFIG_NET_RX_STACK_SIZE=512
190195
CONFIG_NET_MGMT_EVENT_STACK_SIZE=1280
191196

192-
# Network resources (multiple contexts needed for CoAP + WiFi operations)
197+
# Network resources (same as before connection manager removal)
193198
CONFIG_NET_TC_TX_COUNT=1
194-
CONFIG_NET_MAX_CONTEXTS=5
195-
CONFIG_NET_MAX_CONN=4
199+
CONFIG_NET_MAX_CONTEXTS=3
200+
CONFIG_NET_MAX_CONN=2
196201
CONFIG_NET_IF_MAX_IPV4_COUNT=2
197202

203+
# Reduce Memfault logging buffer for debug builds to fit in RAM
204+
CONFIG_MEMFAULT_LOGGING_RAM_SIZE=3584
205+
198206
# For debugging purposes
199207
CONFIG_THREAD_NAME=y
200208

0 commit comments

Comments
 (0)