samples: Bluetooth: Reduce heap for hci_ipc

Reducing the heap requirement for the hci_ipc sample from
8KiB to 4KiB. It has been tested in various configurations to
work with 2300, but 4KiB was used to provide some leeway for
future updates.

The heap requirement is not documented, and it is unclear why
values lower than 2300 (not exact number) won't boot, and should
be investigated further.

Memory has become a very scarce resource for especially the ISO
builds for the nRF5340, which is why this is getting reduced.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-11-21 16:00:56 +01:00 committed by Henrik Brix Andersen
commit 322b177549
12 changed files with 11 additions and 14 deletions

View file

@ -1,8 +1,5 @@
# Apply this overlay at hci_ipc controller build
# Changes towards reduced RAM usage, in order to fit the tweaks
CONFIG_HEAP_MEM_POOL_SIZE=7168
# PTS required counts
CONFIG_BT_MAX_CONN=3

View file

@ -6,7 +6,7 @@ CONFIG_IDLE_STACK_SIZE=256
CONFIG_MAIN_STACK_SIZE=512
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
CONFIG_BT=y