Skip to content

Commit c1d6f8a

Browse files
committed
[nrf noup] Align heap configuration to Wi-Fi needs
Force the default value of the libc heap to remain dynamic instead of propagating 30k of pre-reserved pool from wpa_supplicat. Also align the sys_heap pool to match the default Wi-Fi heap size. Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
1 parent 4936f9f commit c1d6f8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/nrfconnect/chip-module/Kconfig.defaults

+5-1
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ config HEAP_MEM_POOL_SIZE
5555
default 80000 if CHIP_WIFI
5656

5757
config CHIP_MALLOC_SYS_HEAP_SIZE
58-
default 28672 if CHIP_WIFI
58+
default 30720 if CHIP_WIFI
5959
default 8192 if NET_L2_OPENTHREAD
6060

61+
# We use sys_heap based allocators, so make sure we don't reserve unused libc heap anyway
62+
config COMMON_LIBC_MALLOC_ARENA_SIZE
63+
default -1
64+
6165
config NVS_LOOKUP_CACHE_SIZE
6266
default 512
6367

0 commit comments

Comments
 (0)