From df27a53d41383d77e88bdf098e169d29cb97fcf2 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 14 Nov 2024 10:50:08 +0100 Subject: [PATCH] samples: bt: reduce system heap memory for the hci_ipc sample Moving from TinyCrypt to PSA Crypto API caused failures in the cpu_net build due to RAM being overflowed. It turned out that 8192 bytes were allocated for system heap memory, but Mbed TLS is the only user of that memory (I found this though puncover) for AES purposes. We reduce that to 1024 bytes because this should be enough for this purpose. Note: albeit this is also a standalone example, it's used extensively in other samples/tests and babblesim, so a failure in building it propagates in a lot of other failures. Signed-off-by: Valerio Setti --- .../bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf b/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf index 21f77a1fe3534a..3c981fffdead77 100644 --- a/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf +++ b/samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf @@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024 CONFIG_IDLE_STACK_SIZE=256 CONFIG_MAIN_STACK_SIZE=512 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512 -CONFIG_HEAP_MEM_POOL_SIZE=8192 +CONFIG_HEAP_MEM_POOL_SIZE=1024 CONFIG_CBPRINTF_REDUCED_INTEGRAL=y CONFIG_ISR_TABLES_LOCAL_DECLARATION=y