From e82649190759d5b6c4f0ed49bd1a103d245b05fa Mon Sep 17 00:00:00 2001 From: Adrian Gielniewski Date: Mon, 10 Mar 2025 17:33:16 +0100 Subject: [PATCH] [nrfconnect] Increase heap size for all-clusters-app Increase heap size as commissioning fails due to `CHIP_ERROR_NO_MEMORY` error. Signed-off-by: Adrian Gielniewski --- examples/all-clusters-app/nrfconnect/prj.conf | 3 +++ examples/all-clusters-app/nrfconnect/prj_dfu.conf | 3 +++ examples/all-clusters-app/nrfconnect/prj_release.conf | 3 +++ 3 files changed, 9 insertions(+) diff --git a/examples/all-clusters-app/nrfconnect/prj.conf b/examples/all-clusters-app/nrfconnect/prj.conf index 075fdd8e9d8d19..731a3741f2ce71 100644 --- a/examples/all-clusters-app/nrfconnect/prj.conf +++ b/examples/all-clusters-app/nrfconnect/prj.conf @@ -57,3 +57,6 @@ CONFIG_CHIP_ENABLE_READ_CLIENT=y # Increase the settings partition CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x8000 + +# Increase heap size +CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 diff --git a/examples/all-clusters-app/nrfconnect/prj_dfu.conf b/examples/all-clusters-app/nrfconnect/prj_dfu.conf index 1925502dcad410..e09b17d3c67cce 100644 --- a/examples/all-clusters-app/nrfconnect/prj_dfu.conf +++ b/examples/all-clusters-app/nrfconnect/prj_dfu.conf @@ -55,3 +55,6 @@ CONFIG_CHIP_FACTORY_DATA_BUILD=y # Enable the Read Client for binding purposes CONFIG_CHIP_ENABLE_READ_CLIENT=y + +# Increase heap size +CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 diff --git a/examples/all-clusters-app/nrfconnect/prj_release.conf b/examples/all-clusters-app/nrfconnect/prj_release.conf index 18685a7488fce5..d02d498d21f7f9 100644 --- a/examples/all-clusters-app/nrfconnect/prj_release.conf +++ b/examples/all-clusters-app/nrfconnect/prj_release.conf @@ -66,3 +66,6 @@ CONFIG_CHIP_ENABLE_READ_CLIENT=y # Enable LTO to reduce the flash usage CONFIG_LTO=y CONFIG_ISR_TABLES_LOCAL_DECLARATION=y + +# Increase heap size +CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240