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:
parent
a14ae39e74
commit
322b177549
12 changed files with 11 additions and 14 deletions
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG_IPC_SERVICE=y
|
||||
CONFIG_MBOX=y
|
||||
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
|
||||
|
||||
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -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=6144
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CONFIG_IPC_SERVICE=y
|
||||
CONFIG_MBOX=y
|
||||
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=8192
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=4096
|
||||
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue