Skip to content

Commit dad2c53

Browse files
committed
Merge branch 'change/ble_update_lib_20250613' into 'master'
change(ble): [AUTO_MR] 20250613 - Update ESP BLE Controller Lib Closes BLERP-1992, BLERP-1988, BLERP-1902, BLERP-1977, BLERP-1993, BLERP-1995, and BLERP-1994 See merge request espressif/esp-idf!39872
2 parents b0ad04b + e44f137 commit dad2c53

File tree

13 files changed

+123
-7
lines changed

13 files changed

+123
-7
lines changed

components/bt/controller/esp32c5/Kconfig.in

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,3 +812,34 @@ config BT_LE_CTRL_FAST_CONN_DATA_TX_EN
812812
help
813813
If this option is enabled, The Controller will continue to
814814
Send an empty PDU after sending valid connection data within an interval.
815+
816+
menu "Reserved Memory Config"
817+
config BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT
818+
int "The value of reserved EXT ADV memory count at initialization"
819+
range 0 4
820+
default 2
821+
help
822+
This value sets the number the Controller will allocate for extended advertisement
823+
instances at initialization process. If more extended advertisement instances are
824+
enabled, those memory will be dynamically allocated.
825+
Using reduced amount of reserved memory will save heap size at the cost of extra
826+
time consumption at advertising start process and possible advertising start failure
827+
due to memory shortage.
828+
The actual reserved memory count will be the minimum value between the maximum
829+
extended advertisement instances and the BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT.
830+
831+
832+
config BT_LE_CONN_RESERVED_MEMORY_COUNT
833+
int "The value of reserved CONN memory count at initialization"
834+
range 0 70
835+
default 2
836+
help
837+
This value sets the number the Controller will allocate for connection instances
838+
at the initialization process. If more connection instances are enabled, those
839+
memory will be dynamically allocated.
840+
Using reduced amount of reserved memory will save heap size at the cost of extra
841+
time consumption at connection establishment process and possible connection
842+
establishment failure due to memory shortage.
843+
The actual reserved memory count will be the minimum value between the maximum
844+
connection instances and the BT_LE_CONN_RESERVED_MEMORY_COUNT.
845+
endmenu

components/bt/controller/esp32c5/esp_bt_cfg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ extern "C" {
280280

281281
#define BLE_LL_TX_PWR_DBM_N (CONFIG_BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF)
282282

283+
#define BLE_LL_ADV_SM_RESERVE_CNT_N MIN(DEFAULT_BT_LE_MAX_EXT_ADV_INSTANCES, CONFIG_BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT)
284+
#define BLE_LL_CONN_SM_RESERVE_CNT_N MIN(DEFAULT_BT_LE_MAX_CONNECTIONS, CONFIG_BT_LE_CONN_RESERVED_MEMORY_COUNT)
285+
283286
#define RUN_BQB_TEST (0)
284287
#define RUN_QA_TEST (0)
285288
#define NIMBLE_DISABLE_SCAN_BACKOFF (0)

components/bt/controller/esp32c6/Kconfig.in

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,3 +846,34 @@ config BT_LE_CTRL_FAST_CONN_DATA_TX_EN
846846
help
847847
If this option is enabled, The Controller will continue to
848848
Send an empty PDU after sending valid connection data within an interval.
849+
850+
menu "Reserved Memory Config"
851+
config BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT
852+
int "The value of reserved EXT ADV memory count at initialization"
853+
range 0 4
854+
default 2
855+
help
856+
This value sets the number the Controller will allocate for extended advertisement
857+
instances at initialization process. If more extended advertisement instances are
858+
enabled, those memory will be dynamically allocated.
859+
Using reduced amount of reserved memory will save heap size at the cost of extra
860+
time consumption at advertising start process and possible advertising start failure
861+
due to memory shortage.
862+
The actual reserved memory count will be the minimum value between the maximum
863+
extended advertisement instances and the BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT.
864+
865+
866+
config BT_LE_CONN_RESERVED_MEMORY_COUNT
867+
int "The value of reserved CONN memory count at initialization"
868+
range 0 70
869+
default 2
870+
help
871+
This value sets the number the Controller will allocate for connection instances
872+
at the initialization process. If more connection instances are enabled, those
873+
memory will be dynamically allocated.
874+
Using reduced amount of reserved memory will save heap size at the cost of extra
875+
time consumption at connection establishment process and possible connection
876+
establishment failure due to memory shortage.
877+
The actual reserved memory count will be the minimum value between the maximum
878+
connection instances and the BT_LE_CONN_RESERVED_MEMORY_COUNT.
879+
endmenu

components/bt/controller/esp32c6/esp_bt_cfg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ extern "C" {
283283

284284
#define BLE_LL_TX_PWR_DBM_N (CONFIG_BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF)
285285

286+
#define BLE_LL_ADV_SM_RESERVE_CNT_N MIN(DEFAULT_BT_LE_MAX_EXT_ADV_INSTANCES, CONFIG_BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT)
287+
#define BLE_LL_CONN_SM_RESERVE_CNT_N MIN(DEFAULT_BT_LE_MAX_CONNECTIONS, CONFIG_BT_LE_CONN_RESERVED_MEMORY_COUNT)
288+
286289
#define RUN_BQB_TEST (0)
287290
#define RUN_QA_TEST (0)
288291
#define NIMBLE_DISABLE_SCAN_BACKOFF (0)

components/bt/controller/esp32h2/Kconfig.in

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,3 +850,34 @@ config BT_LE_CTRL_FAST_CONN_DATA_TX_EN
850850
help
851851
If this option is enabled, The Controller will continue to
852852
Send an empty PDU after sending valid connection data within an interval.
853+
854+
menu "Reserved Memory Config"
855+
config BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT
856+
int "The value of reserved EXT ADV memory count at initialization"
857+
range 0 4
858+
default 2
859+
help
860+
This value sets the number the Controller will allocate for extended advertisement
861+
instances at initialization process. If more extended advertisement instances are
862+
enabled, those memory will be dynamically allocated.
863+
Using reduced amount of reserved memory will save heap size at the cost of extra
864+
time consumption at advertising start process and possible advertising start failure
865+
due to memory shortage.
866+
The actual reserved memory count will be the minimum value between the maximum
867+
extended advertisement instances and the BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT.
868+
869+
870+
config BT_LE_CONN_RESERVED_MEMORY_COUNT
871+
int "The value of reserved CONN memory count at initialization"
872+
range 0 70
873+
default 2
874+
help
875+
This value sets the number the Controller will allocate for connection instances
876+
at the initialization process. If more connection instances are enabled, those
877+
memory will be dynamically allocated.
878+
Using reduced amount of reserved memory will save heap size at the cost of extra
879+
time consumption at connection establishment process and possible connection
880+
establishment failure due to memory shortage.
881+
The actual reserved memory count will be the minimum value between the maximum connection instances and
882+
the BT_LE_CONN_RESERVED_MEMORY_COUNT.
883+
endmenu

components/bt/controller/esp32h2/esp_bt_cfg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ extern "C" {
280280

281281
#define BLE_LL_TX_PWR_DBM_N (CONFIG_BT_LE_DFT_TX_POWER_LEVEL_DBM_EFF)
282282

283+
#define BLE_LL_ADV_SM_RESERVE_CNT_N MIN(DEFAULT_BT_LE_MAX_EXT_ADV_INSTANCES, CONFIG_BT_LE_EXT_ADV_RESERVED_MEMORY_COUNT)
284+
#define BLE_LL_CONN_SM_RESERVE_CNT_N MIN(DEFAULT_BT_LE_MAX_CONNECTIONS, CONFIG_BT_LE_CONN_RESERVED_MEMORY_COUNT)
285+
283286
#define RUN_BQB_TEST (0)
284287
#define RUN_QA_TEST (0)
285288
#define NIMBLE_DISABLE_SCAN_BACKOFF (0)

0 commit comments

Comments
 (0)