From 776c2b8afc7fec91cb301abee3964ee4bd01f88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Ba=C5=82ys?= Date: Fri, 24 Jun 2022 17:19:42 +0200 Subject: [PATCH] [nrfconnect] Added some code size optimization for all-clusters-app (#19949) All-clusters-app's size became too big and started not to fit the size of the application partition. Because of that, we performed some optimization and disabled adding asserts to the output code. --- examples/all-clusters-app/nrfconnect/prj_dfu.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/all-clusters-app/nrfconnect/prj_dfu.conf b/examples/all-clusters-app/nrfconnect/prj_dfu.conf index ef60c8a8f3fa15..3cad58fa4d6bde 100644 --- a/examples/all-clusters-app/nrfconnect/prj_dfu.conf +++ b/examples/all-clusters-app/nrfconnect/prj_dfu.conf @@ -43,3 +43,9 @@ CONFIG_CHIP_PROJECT_CONFIG="main/include/CHIPProjectConfig.h" # CHIP PID: 32769 == 0x8001 (all-clusters-app) CONFIG_CHIP_DEVICE_PRODUCT_ID=32769 + +# reduce application size by disabling including assertions in the output file. +CONFIG_ASSERT_VERBOSE=n +CONFIG_ASSERT_NO_FILE_INFO=y +CONFIG_ASSERT_NO_COND_INFO=y +CONFIG_ASSERT_NO_MSG_INFO=y