Skip to content

Commit eddaf03

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'feat/add_ble_ctrl_log_module_on_esp32c3_v5.3' into 'release/v5.3'
feat(bt): Added BLE log module on ESP32-C3 and ESP32-S3(723439d) (v5.3) See merge request espressif/esp-idf!37360
2 parents 4b43d63 + 2b80f75 commit eddaf03

File tree

4 files changed

+415
-4
lines changed

4 files changed

+415
-4
lines changed

components/bt/controller/esp32c3/Kconfig.in

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,3 +556,71 @@ config BT_CTRL_CHECK_CONNECT_IND_ACCESS_ADDRESS
556556
Enabling this option will add stricter verification of the Access Address in the CONNECT_IND PDU.
557557
This improves security by ensuring that only connection requests with valid Access Addresses are accepted.
558558
If disabled, only basic checks are applied, improving compatibility.
559+
560+
menu "Controller debug log Options (Experimental)"
561+
config BT_CTRL_LE_LOG_EN
562+
depends on BT_CTRL_RUN_IN_FLASH_ONLY
563+
bool "Enable BLE debug log"
564+
default n
565+
566+
config BT_CTRL_LE_HCI_LOG_EN
567+
depends on BT_CTRL_LE_LOG_EN
568+
bool "Enable BLE HCI log"
569+
default n
570+
571+
config BT_CTRL_LE_LOG_DUMP_ONLY
572+
depends on BT_CTRL_LE_LOG_EN
573+
bool "Enable BLE log dump only"
574+
default n
575+
576+
config BT_CTRL_LE_LOG_STORAGE_EN
577+
depends on BT_CTRL_LE_LOG_EN
578+
bool "Enable BLE log storage to flash"
579+
default n
580+
581+
config BT_CTRL_LE_LOG_PARTITION_SIZE
582+
int "The size of ble controller log partition(Multiples of 4K)"
583+
depends on BT_CTRL_LE_LOG_STORAGE_EN
584+
default 65536
585+
help
586+
The size of ble controller log partition shall be a multiples of 4K.
587+
The name of log partition shall be "bt_ctrl_log".
588+
The partition type shall be ESP_PARTITION_TYPE_DATA.
589+
The partition sub_type shall be ESP_PARTITION_SUBTYPE_ANY.
590+
591+
config BT_CTRL_LE_LOG_SPI_OUT_EN
592+
bool "Output ble controller logs to SPI bus"
593+
depends on BT_CTRL_LE_LOG_EN
594+
depends on !BT_CTRL_LE_LOG_DUMP_ONLY
595+
select BT_BLE_LOG_SPI_OUT_ENABLED
596+
default n
597+
help
598+
Output ble controller logs to SPI bus
599+
600+
config BT_CTRL_LE_LOG_MODE_EN
601+
depends on BT_CTRL_LE_LOG_EN
602+
int "Enable log for specified BLE mode"
603+
range 0 4095
604+
default 4093
605+
606+
config BT_CTRL_LE_LOG_LEVEL
607+
depends on BT_CTRL_LE_LOG_EN
608+
int "The level of BLE log"
609+
range 0 5
610+
default 2
611+
612+
config BT_CTRL_LE_LOG_BUF1_SIZE
613+
depends on BT_CTRL_LE_LOG_EN
614+
int "The size of BLE log buffer1"
615+
default 1024
616+
617+
config BT_CTRL_LE_LOG_HCI_BUF_SIZE
618+
depends on BT_CTRL_LE_LOG_EN
619+
int "The size of BLE log HCI buffer"
620+
default 1024
621+
622+
config BT_CTRL_LE_LOG_BUF2_SIZE
623+
depends on BT_CTRL_LE_LOG_EN
624+
int "The size of BLE log buffer2"
625+
default 1024
626+
endmenu

0 commit comments

Comments
 (0)