Skip to content

Commit 322b177

Browse files
Thalleyhenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent a14ae39 commit 322b177

12 files changed

+11
-14
lines changed

samples/bluetooth/hci_ipc/nrf5340_cpunet_bis-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_bt_mesh-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CONFIG_IPC_SERVICE=y
22
CONFIG_MBOX=y
33

4-
CONFIG_HEAP_MEM_POOL_SIZE=6144
4+
CONFIG_HEAP_MEM_POOL_SIZE=4096
55

66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512

samples/bluetooth/hci_ipc/nrf5340_cpunet_cis-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_df-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
1010

1111
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_broadcast-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_central-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_peripheral-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/nrf5340_cpunet_iso_receive-bt_ll_sw_split.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024
55
CONFIG_IDLE_STACK_SIZE=256
66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8-
CONFIG_HEAP_MEM_POOL_SIZE=6144
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
99

1010
CONFIG_BT=y
1111
CONFIG_BT_HCI_RAW=y

samples/bluetooth/hci_ipc/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CONFIG_IPC_SERVICE=y
22
CONFIG_MBOX=y
33

4-
CONFIG_HEAP_MEM_POOL_SIZE=8192
4+
CONFIG_HEAP_MEM_POOL_SIZE=4096
55

66
CONFIG_MAIN_STACK_SIZE=512
77
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512

0 commit comments

Comments
 (0)