File tree Expand file tree Collapse file tree 4 files changed +49
-8
lines changed
samples/bluetooth/peripheral_hr Expand file tree Collapse file tree 4 files changed +49
-8
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,20 @@ Building and Running
24
24
This sample can be found under :zephyr_file: `samples/bluetooth/peripheral_hr ` in the
25
25
Zephyr tree.
26
26
27
- See :zephyr:code-sample-category: `bluetooth ` samples for details.
27
+ Building a minimal variant
28
+ --------------------------
29
+
30
+ .. zephyr-app-commands ::
31
+ :zephyr-app: samples/bluetooth/peripheral_hr
32
+ :board: qemu_cortex_m3
33
+ :goals: build
34
+ :gen-args: -DCONF_FILE=prj_minimal.conf
35
+
36
+ Building a minimal variant for bbc_microbit
37
+ -------------------------------------------
38
+
39
+ .. zephyr-app-commands ::
40
+ :zephyr-app: samples/bluetooth/peripheral_hr
41
+ :board: bbc_microbit
42
+ :goals: build
43
+ :gen-args: -DCONF_FILE=prj_minimal.conf -DEXTRA_CONF_FILE=overlay-bt_ll_sw_split-minimal.conf
Original file line number Diff line number Diff line change
1
+ # Zephyr open source Bluetooth Low Energy Controller
2
+ CONFIG_BT_LL_SW_SPLIT=y
3
+
4
+ # Optimizations
5
+ CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
6
+ CONFIG_LTO=y
7
+
8
+ # Disable Bluetooth controller features not needed
9
+ CONFIG_BT_CTLR_CONN_PARAM_REQ=n
10
+ CONFIG_BT_CTLR_EXT_REJ_IND=n
11
+ CONFIG_BT_CTLR_PER_INIT_FEAT_XCHG=n
12
+ CONFIG_BT_CTLR_MIN_USED_CHAN=n
13
+
14
+ # Buffer sizes
15
+ CONFIG_BT_CTLR_RX_BUFFERS=1
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ CONFIG_SIZE_OPTIMIZATIONS=y
44
44
45
45
# ARM
46
46
CONFIG_ARM_MPU=n
47
+ CONFIG_BUILTIN_STACK_GUARD=n
47
48
48
49
# In order to correctly tune the stack sizes for the threads the following
49
50
# Configurations can enabled to print the current use:
@@ -91,20 +92,14 @@ CONFIG_BT_PHY_UPDATE=n
91
92
CONFIG_BT_GATT_CACHING=n
92
93
CONFIG_BT_GATT_SERVICE_CHANGED=n
93
94
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=n
94
- CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=y
95
95
CONFIG_BT_HCI_VS=n
96
96
97
- # Disable Bluetooth controller features not needed
98
- CONFIG_BT_CTLR_PRIVACY=n
99
- CONFIG_BT_CTLR_PHY_2M=n
100
-
101
97
# Reduce Bluetooth buffers
102
98
CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT=1
103
99
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=45
104
100
CONFIG_BT_BUF_EVT_RX_COUNT=4
105
101
106
102
CONFIG_BT_L2CAP_TX_BUF_COUNT=2
107
- CONFIG_BT_CTLR_RX_BUFFERS=1
108
103
CONFIG_BT_BUF_ACL_TX_COUNT=3
109
104
CONFIG_BT_BUF_ACL_TX_SIZE=27
110
105
Original file line number Diff line number Diff line change @@ -30,12 +30,27 @@ tests:
30
30
tags : bluetooth
31
31
sysbuild : true
32
32
sample.bluetooth.peripheral_hr.minimal :
33
+ harness : bluetooth
34
+ platform_allow :
35
+ - qemu_cortex_m3
36
+ integration_platforms :
37
+ - qemu_cortex_m3
38
+ extra_args :
39
+ - CONF_FILE=prj_minimal.conf
40
+ tags : bluetooth
41
+ sample.bluetooth.peripheral_hr.bt_ll_sw_split.minimal :
33
42
harness : bluetooth
34
43
platform_allow :
35
44
- bbc_microbit
45
+ - nrf52dk/nrf52832
46
+ - nrf54l15dk/nrf54l15/cpuapp
36
47
integration_platforms :
37
48
- bbc_microbit
38
- extra_args : EXTRA_CONF_FILE=prj_minimal.conf
49
+ - nrf52dk/nrf52832
50
+ - nrf54l15dk/nrf54l15/cpuapp
51
+ extra_args :
52
+ - CONF_FILE=prj_minimal.conf
53
+ - EXTRA_CONF_FILE=overlay-bt_ll_sw_split-minimal.conf
39
54
tags : bluetooth
40
55
sample.bluetooth.peripheral_hr.bt_ll_sw_split.extended :
41
56
harness : bluetooth
You can’t perform that action at this time.
0 commit comments