Commit Graph

315 Commits

Author SHA1 Message Date
Wang Meng Yang
744464271d Merge branch 'feat/bt_in_psram' into 'master'
feat(bluedroid): Add config to place btu and hci task stack in psram

Closes BT-4136

See merge request espressif/esp-idf!51002
2026-07-29 14:49:19 +08:00
Rahul Tank
e08609e451 fix(nimble): Migrate to NimBLE 1.9.0 2026-07-27 14:14:35 +05:30
Island
eaa88e26dc Merge branch 'idf/ble_audio_log_compress_misc' into 'master'
feat(ble_audio): Add specific libs for BLE Audio log compression

See merge request espressif/esp-idf!51107
2026-07-27 16:19:44 +08:00
Island
f930f9fe10 Merge branch 'fix/ble_log_compression_issue_on_windows' into 'master'
fix(bt): fix BLE log compression build on Windows

See merge request espressif/esp-idf!51156
2026-07-27 14:10:27 +08:00
Liu Linyan
822d65f9be feat(ble_audio): Add specific libs for BLE Audio log compression 2026-07-27 11:26:25 +08:00
chenjianhua
0407893834 feat(bt): Add host-agnostic BT OSAL and shared BLE profile task
- Add bt_osal: event queues, mutexes, semaphores, callouts, etc.
- Add the shared BLE profile task and event queue
- Bring both up and tear them down in the host init/deinit paths
- Add unit tests for the OSAL and the profile task
2026-07-26 13:24:53 +08:00
hejiaxin
b6b97b8e58 feat(bluedroid): Add config to place btu and hci task stack in psram
- Also adjust the osi_thread_stop implementation.
2026-07-23 14:40:37 +08:00
liqigan
0564b09e86 fix(bt/bluedroid): Fixed use after free issue on osi_event_delete 2026-07-22 14:41:20 +08:00
Zhou Xiao
2fa434eb50 fix(bt): keep BLE log ISR state in internal RAM 2026-07-21 16:27:39 +08:00
luoxu
aa9b565a6d fix(bt): fix BLE log compression build on Windows
The BLE log compression feature (CONFIG_BT_LOG_CRITICAL_ONLY ->
BLE_COMPRESSED_LOG_ENABLE) failed to build on Windows while working
correctly on Linux, due to two shell/platform-specific issues in the
compression script.

1. Module/source argument quoting. CMakeLists.txt passes the
   semicolon-separated module and source lists wrapped in single quotes
   ("'${MODULES}'") to protect ';' from POSIX shells, which strip them.
   cmd.exe does not treat single quotes as quoting characters, so on
   Windows the quotes reached the script literally and
   args.module.split(';') produced "'BLE_MESH" / "BLE_HOST'" instead of
   the clean names. These never matched the YAML module keys, every
   module was skipped ("Skipping module ... - config not found"), the
   compressed sources were never generated, and the build failed. Strip
   surrounding quote characters before splitting; this is a no-op on
   Linux/macOS where the shell already removed them.

2. CRLF line endings. With core.autocrlf=true the IDF sources are
   checked out as CRLF on Windows. The generated *_log_index.h macros
   use backslash-newline line-continuation; a backslash followed by
   '\r\n' is not a valid continuation in C, producing floods of syntax
   errors when the header is compiled. Write generated headers with
   newline='' to force LF, and normalize source content to LF right
   after reading so '\r' embedded inside multi-line argument expressions
   is also handled. Byte offsets stay consistent because both tree-sitter
   parsing and tag replacement operate on the normalized content.

Verified by full clean builds of examples/bluetooth/esp_ble_mesh/
vendor_models/vendor_client (esp32c6, bluedroid + mesh) from both
cmd.exe and PowerShell; both produce an identical vendor_client.bin.
2026-07-21 15:56:17 +08:00
Island
c3083dfae5 Merge branch 'opt/bluedroid_trace_none_without_ble_log_host' into 'master'
change(ble/bluedroid): disable host trace logs when BLE Log host is off

See merge request espressif/esp-idf!50902
2026-07-21 10:39:36 +08:00
zhanghaipeng
1f8f935e3f change(ble/bluedroid): disable host trace logs when BLE Log host is off
Default all Bluedroid layer trace levels to NONE when BLE async log
is enabled without BLE_LOG_HOST_LOG.
2026-07-20 15:43:27 +08:00
luoxu
ee732a4591 feat(ble_log): mirror local compression headers 2026-07-17 15:46:50 +08:00
Rahul Tank
0eab1282ec fix(nimble): Fix ECC HW byte-order and dropped SOC_ESP_NIMBLE_CONTROLLER 2026-07-16 10:40:53 +05:30
Alexey Lapshin
46ddc0f4b2 fix(bt): fix unused-but-set-variable warnings 2026-07-13 12:01:15 +07:00
Wang Meng Yang
607f6d09ed Merge branch 'feat/support_bluedroid_le_coc_and_eatt' into 'master'
feat(ble/bluedroid): Support bluedroid LE COC and EATT features

See merge request espressif/esp-idf!50171
2026-07-10 10:14:44 +08:00
zhiweijian
83f0831c53 feat(ble/bluedroid): Support bluedroid LE COC and EATT features 2026-07-09 14:03:01 +08:00
Zhou Xiao
a2876d304e fix(ble_log): use BIT64 over BIT to support 64-bit IO setup 2026-07-02 11:26:11 +08:00
Island
005dd1ba8c Merge branch 'feat/spi_log_qa_frame_check' into 'master'
feat(ble_log): add FINAL_STAT session-end frame and flush hook before controller restart

See merge request espressif/esp-idf!49433
2026-06-24 10:46:43 +08:00
guozifan
a81322a2ce feat(ble_log): Add frame check support for restart flow 2026-06-23 16:19:30 +08:00
luoxu
c0286b25fa feat(ble): reorganize log compression Kconfig and add ISO
Move sub-Kconfig files into categorized directories (profile/mesh/,
host/, iso/audio/) and create the missing ISO/Audio compression
Kconfig with COMPRESSION + PRESERVE pairs for all 4 log levels,
matching the existing cmake tag definitions.
2026-06-18 15:28:10 +08:00
luoxu
8d4f1cb608 fix(ble): fix Bluedroid log compression for newly added modules 2026-06-18 15:28:10 +08:00
luoxu
d88b964c8d feat(ble): split log compression Kconfig into separate mesh and host files 2026-06-18 15:28:10 +08:00
Island
2fec1965d1 Merge branch 'bugfix/fix_bluedroid_ai_review_bugs_20260427' into 'master'
Bugfix/fix bluedroid ai review bugs 20260427

See merge request espressif/esp-idf!48450
2026-06-01 19:20:35 +08:00
Rahul Tank
e82f4b79f4 Merge branch 'bugfix/add_support_min_count' into 'master'
fix(nimble): Add support for shorter connection interval

Closes BLERP-2778

See merge request espressif/esp-idf!48104
2026-06-01 14:35:14 +05:30
Rahul Tank
9897b1ee7d fix(nimble): Add support for shorter connection intervals 2026-06-01 11:21:17 +05:30
Zhou Xiao
cce5bd6e51 change(ble_log): reverted default ble log buffer size to 2048 bytes 2026-05-29 16:32:02 +08:00
zhiweijian
678fb93245 fix(bt): fix BTC task and BLE mesh bluedroid adapter 2026-05-29 10:15:15 +08:00
Zhou Xiao
725e9ee162 change(ble_log): move spi tx callback to flash when spi isr in iram disabled 2026-05-25 15:18:31 +08:00
Mayank Tyagi
8cb5be9ba2 feat(nimble): ADD BLE HCI logging support for ESP Insights 2026-05-20 13:53:02 +05:30
Island
d8031954f6 Merge branch 'feat/support_bluedroid_key_log' into 'master'
Feat/support bluedroid key log

Closes BLERP-2782

See merge request espressif/esp-idf!48437
2026-05-14 14:04:07 +08:00
Alexey Gerenkov
edb75262a1 Merge branch 'feature/update-esp-clang-to-esp-21.1.3_20260304' into 'master'
feat(tools): update esp-clang version to esp-21.1.3_20260408

Closes IDF-14965, LLVM-501, and LLVM-531

See merge request espressif/esp-idf!46361
2026-05-13 22:54:10 +08:00
zhanghaipeng
0af57d731c feat(ble): Support BLE critical logs 2026-05-13 14:22:40 +08:00
Alexey Gerenkov
f16bb34ff7 fix(build): fix Clang 21 build warnings/errors 2026-05-07 17:42:38 +03:00
Alexey Gerenkov
97e6873e34 feat(tools): update esp-clang version to esp-21.1.3_20260304 2026-05-07 17:42:32 +03:00
Liu Linyan
cae52c454b feat(ble_audio): Support log compression for ISO & LE Audio logs 2026-05-07 15:05:57 +08:00
Rahul Tank
48bf490d48 fix(nimble): cleanup: remove extraneous script file
Removed files that were unintentionally included in an earlier commit
2026-04-29 14:46:42 +05:30
Island
3cedc1f484 Merge branch 'change/ble_update_lib_20260424' into 'master'
change(ble): [AUTO_MR] 20260424 - Update ESP BLE Controller Lib

See merge request espressif/esp-idf!47948
2026-04-27 20:04:58 +08:00
Island
1c8b737ba1 Merge branch 'fix/fix_blufi_memory_copy_len_error' into 'master'
fix(ble): Fix blufi fragment reassembly bounds and buffer overflows

See merge request espressif/esp-idf!47090
2026-04-27 15:38:23 +08:00
Zhou Xiao
836f87cc4a change(ble_log): update ble log version to 5 for esp ble controller log encoding indication 2026-04-27 12:09:54 +08:00
luoxu
0f2935389a fix(bt): Normalize source paths for log compression pattern matching 2026-04-24 22:28:25 +08:00
ShenWeilong
21e83d7eaf change(bt): Separated bt/CMakeLists to nimble/bluedroid/mesh/audio CMakeLists 2026-04-24 15:16:39 +08:00
luoxu
f5a927e055 fix(ble_log): fix size_info nibble misalignment for last odd-count arg 2026-04-23 19:23:45 +08:00
luoxu
58121d2540 test(ble): add comprehensive test suite for log compression 2026-04-23 19:23:45 +08:00
luoxu
b7760a77e4 fix(ble): replace hardcoded tuple indices with FormatToken NamedTuple 2026-04-23 19:23:45 +08:00
luoxu
3f2b6c97f8 fix(ble_log): fix unaligned access and buffer safety in log compression 2026-04-23 19:23:45 +08:00
zhiweijian
94f0c1837a fix(ble): Fixed AI review bugs in bt common 2026-04-23 17:44:21 +08:00
Rahul Tank
8e4f6c56be Merge branch 'feat/nimble_logs_compression' into 'master'
feat(nimble): Support NimBLE log compression and decompression over SPI

See merge request espressif/esp-idf!46967
2026-04-22 08:02:05 +05:30
Wang Mengyang
78f83f60cb fix(ble_log): Fix build errors in using BLE_MBUF 2026-04-21 17:50:36 +08:00
cjin
6f7eec029b feat(ble): support ble on esp32s31 2026-04-21 17:50:36 +08:00