Commit Graph

42952 Commits

Author SHA1 Message Date
Jin Chen
8cdb74f49d change(ble): [AUTO_MR] Update lib_esp32h2 to 18aafc6f
(cherry picked from commit d7b7876c3c)

Co-authored-by: cjin <jinchen@espressif.com>
2026-07-29 08:42:09 +08:00
wuzhenghui
8f397e0407 fix(bootloader_support): fix RTC retain mem offset for secure boot fast wakeup
Pointer arithmetic on rtc_retain_mem_t* subtracted ESP_SECURE_BOOT_DIGEST_LEN
in struct units instead of bytes. Cast through uintptr_t so retain mem stays
below the ROM verified-image digest region on deep-sleep wake.

Partial backport of !51265 (bootloader_common_loader.c only).
2026-07-28 21:50:51 +08:00
Wang Meng Yang
9079e1473a Merge branch 'bugfix/ai_review_avrcp_v5.3' into 'release/v5.3'
fix(bt): Fix the critical and high issues related to AVRCP from AI review report (v5.3)

See merge request espressif/esp-idf!50023
2026-07-28 19:59:39 +08:00
Wang Meng Yang
d9f2d61539 Merge branch 'bugfix/hid_host_oob_read_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fixed possible 1-byte OOB read in bta_hh_ctrl_dat_act (v5.3)

See merge request espressif/esp-idf!50975
2026-07-28 19:52:02 +08:00
Wang Meng Yang
e13cc8ef6f Merge branch 'bugfix/bredr_critical_bugs_v5.3' into 'release/v5.3'
fix(bt/bluedroid): fixed issues from AI review in GAP, SPP, HID, L2CAP and HCI (v5.3)

See merge request espressif/esp-idf!51081
2026-07-28 19:43:58 +08:00
morris
ee2818b7ff Merge branch 'fix/uhci_rx_size_check_v5.3' into 'release/v5.3'
fix(uhci): rx fsm race condition and buffer size check (v5.3)

See merge request espressif/esp-idf!51234
2026-07-28 18:22:54 +08:00
Hu Rui
194de3ab4b fix(uhci): rx fsm race condition and buffer size check
Closes https://github.com/espressif/esp-idf/issues/18819
Closes https://github.com/espressif/esp-idf/issues/18820
2026-07-28 14:56:43 +08:00
Luo Xu
e2fbba666a 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.


(cherry picked from commit aa9b565a6d)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-28 13:43:33 +08:00
luoxu
eada85080b feat(ble_mesh): update lib to 79e3fee04e 2026-07-28 12:12:30 +08:00
chenjianhua
67960f06d7 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-27 19:52:30 +08:00
Li Shuai
38c2c69378 change(esp_hw_support): optimize get hp/lp dbias implementation iram or flash usage 2026-07-27 19:14:08 +08:00
Alexey Lapshin
390a496942 fix(cxx): fix TLS classes destructor call
Closes https://github.com/espressif/esp-idf/issues/14360
2026-07-27 15:16:36 +07:00
Xu Si Yu
b762a6f5d0 fix(coex): move 15.4 register configuration to 15.4 init
1. move 15.4 register configuration to 15.4 init
2. fix coex status get issue
2026-07-27 11:41:56 +08:00
morris
25039385e2 Merge branch 'backport/spi_flash_fixes_v5.3' into 'release/v5.3'
fix(spi_flash): backport aes-xts error-path & mxic fixes (v5.3)

See merge request espressif/esp-idf!51138
2026-07-27 10:36:36 +08:00
Luo Xu
ad9f88b13f feat(ble_mesh): supported get lib version
(cherry picked from commit 56f78da32c)

Co-authored-by: luoxu <luoxu@espressif.com>
2026-07-27 10:03:12 +08:00
Rahul Tank
6590778c43 Merge branch 'bugfix/nimble_security_fixes_v5.3' into 'release/v5.3'
fix(nimble): Ai reported security fixes (v5.3)

See merge request espressif/esp-idf!50694
2026-07-25 18:49:34 +05:30
Shreeyash Bhakare
f2b7aa1db8 fix(nimble): Added security related fixes 2026-07-25 13:48:33 +05:30
Rahul Tank
b6aaa5f765 Merge branch 'bugfix/l2cap_throughput_degrading_v5.3' into 'release/v5.3'
Preserve throughput when switching from LE Coded to 1M/2M PHY (v5.3)

See merge request espressif/esp-idf!50833
2026-07-25 08:35:44 +05:30
Astha Verma
8025ab856c fix(nimble): Restore throughput after switching from LE Coded PHY 2026-07-24 18:08:38 +05:30
Shu Chen
dae526045b Merge branch 'feat/update_phylib_on_s31_c6_for_track_v5.3' into 'release/v5.3'
feat(phy): update phy lib for esp32s31 & esp32c6 for track (v5.3)

See merge request espressif/esp-idf!50794
2026-07-24 11:05:06 +00:00
Rahul Tank
cc3a5ec838 Merge branch 'bugfix/fix_ai_example_review_v5.3' into 'release/v5.3'
fix(nimble): Fix nimble examples review issues (v5.3)

See merge request espressif/esp-idf!50844
2026-07-24 16:23:33 +05:30
Rahul Tank
8aa7006649 fix(nimble): Fix issues found in review for nimble examples 2026-07-24 15:53:38 +05:30
Rahul Tank
7ec47c264d Merge branch 'bugfix/red_rem_feat_evt_v5.3' into 'release/v5.3'
Handle Read Remote Supported Feature failure (v5.3)

See merge request espressif/esp-idf!50812
2026-07-24 14:28:47 +05:30
Jiang Jiang Jian
8363d0e4d1 Merge branch 'bugfix/a2dp_sbc_v5.3' into 'release/v5.3'
fix(bt): Fix the pointer sbc_start_frame is not initialized (v5.3)

See merge request espressif/esp-idf!51020
2026-07-24 16:02:04 +08:00
Shu Chen
a6e1a47dd7 Merge branch 'support/ot_register_154_event_cb_v5.3' into 'release/v5.3'
feat(openthread): use ieee802154 event callback list instead of weak overrides (v5.3)

See merge request espressif/esp-idf!51130
2026-07-24 08:00:58 +00:00
Song Ruo Jing
134328affb fix(ppa): add checks for input to avoid any OOB access 2026-07-24 15:39:29 +08:00
C.S.M
c7dd46e84b fix(spi_flash): Fix spi_flash leaks release aes-xts in error path
(cherry picked from commit 305c5869ee)
2026-07-24 15:00:50 +08:00
Shengyu Qu
352d18b48e fix(spi_flash): add #if check for s_mxic_set_required_regs()
Currently, s_mxic_set_required_regs() lacks checking for
CONFIG_SPI_FLASH_SUPPORT_MXIC_OPI_CHIP. And this causes a defined but not
used warning when MXIC flash driver is disabled in project config. So add
a #if check for this to supress warning.

Signed-off-by: Shengyu Qu <wiagn@4d2.org>
(cherry picked from commit 062c948c18)
2026-07-24 15:00:50 +08:00
zwx
5b13be2889 feat(openthread): use ieee802154 event callback list instead of weak overrides 2026-07-24 14:23:55 +08:00
Island
7efbfbb0a1 Merge branch 'fix/ble_hidd_remove_ccc_gating_v5.3' into 'release/v5.3'
fix(esp_hid/bluedroid): remove app-layer CCC gating in HID device (5.3)

See merge request espressif/esp-idf!51004
2026-07-23 19:26:18 +08:00
Wang Meng Yang
9c15348402 Merge branch 'bugfix/low_spp_throughput_v5.3' into 'release/v5.3'
change(bt/bluedroid): increased port low watermark of RFCOMM (v5.3)

See merge request espressif/esp-idf!51087
2026-07-23 16:41:33 +08:00
Luo Xu
7d95ac9de6 fix(bt): Fixed build error on array-bounds in HFP AG
(cherry picked from commit bbd20cae01)

Co-authored-by: Wang Mengyang <wangmengyang@espressif.com>
2026-07-23 16:17:45 +08:00
morris
9727ba62c3 Merge branch 'bugfix/ana_cmpr_macro_v5.3' into 'release/v5.3'
fix(ana_cmpr): Fix swapped POS/NEG cross interrupt masks on ESP32-C5/P4 (v5.3)

See merge request espressif/esp-idf!50802
2026-07-23 14:56:22 +08:00
Island
8f897fb259 Merge branch 'fix/ble_log_compression_safety_v5.3' into 'release/v5.3'
fix(ble_log): fix unaligned access and buffer safety in log compression (5.3)

See merge request espressif/esp-idf!47928
2026-07-23 14:22:57 +08:00
Jin Cheng
ed20c79614 change(bt/bluedroid): increased port low watermark of RFCOMM
When PORT_RX_BUF_LOW_WM is too low, RFCOMM replenishes credits only
after receiving a relatively large number of packets, which may cause
the peer to exhaust its credits and enter a stop-and-wait state.
Increase the low watermark to replenish credits more promptly and
reduce the likelihood of the peer stalling while waiting for additional
credits.
2026-07-23 08:11:29 +08:00
Jin Cheng
d70a124dec fix(bt/bluedroid): fixed issues from AI review in GAP, SPP, HID, L2CAP and HCI 2026-07-23 07:53:22 +08:00
Jack
f69b8bde01 fix(phy): removed all librfate logic from cmake 2026-07-22 20:06:39 +08:00
zhuanghang
0476dfa707 feat(phy): update phy lib for esp32s31 & esp32c6 for track 2026-07-22 20:06:24 +08:00
yangfeng
ff7ce10233 fix(bt): Fix the high issues related to AVRCP from AI review report
- SDP/registration: handle SDP record creation and discovery failures safely
- AVRC stack: fix packet checks, fragment leaks, response build, and compile guards
- BTC AVRCP: fix return codes, connection state, metadata parsing, and memory leaks
- AVCTP: fix event passing, L2CAP conflicts, TX queue leaks, and disconnect handling
- Example: remove TG RN capability setup before initialization
2026-07-22 17:33:27 +08:00
yangfeng
3138799982 fix(bt): Fix the critical issues related to AVRCP from AI review report
- recalculate len_left per attribute in avrc_bld_app_setting_text_rsp
- abort fragmented message reassembly when reassembly buffer alloc fails
2026-07-22 17:32:28 +08:00
Wang Meng Yang
16308c6c71 Merge branch 'bugfix/idf_ci_example_avrcp_v5.3' into 'release/v5.3'
fix(bt/example): Add log in the failure path for avrcp_ct_metadata example (v5.3)

See merge request espressif/esp-idf!51062
2026-07-22 16:05:06 +08:00
yangfeng
bed07ac360 fix(bt/example): Add log in the failure path for avrcp_ct_metadata example 2026-07-22 15:36:52 +08:00
Astha Verma
75fd7a08cc fix(nimble): Handle Read Remote Supported Features failure correctly 2026-07-22 12:21:07 +05:30
Island
e171d8c754 Merge branch 'fix/ble-log-store-access-fault_v5.3' into 'release/v5.3'
fix: Ensure BLE Log Global Variables in Internal RAM (5.3)

See merge request espressif/esp-idf!51033
2026-07-22 14:02:54 +08:00
Tiago Medicci
e9e6a3dcf0 test(ana_cmpr): Add edge-specific interrupt direction test case
Add a Unity test case that arms only ANA_CMPR_CROSS_POS (resp. only
ANA_CMPR_CROSS_NEG) on a unit and asserts that a real transition of
the matching direction fires the callback exactly once, while a
transition of the opposite (never-armed) direction does not fire at
all.

This closes a gap in the existing test_apps: none of the current
cases isolate cross direction, so a swapped POS/NEG interrupt mask in
the LL layer (fixed in the previous commit) previously went
undetected.

On the scan-based comparator IP (ESP32-H4/S31), a crossing is only
sampled/latched when a scan is explicitly triggered, so the new test
case also triggers a scan after each level change on that IP, plus
one extra priming scan right after enabling the unit so the internal
compare state starts in sync with the already-set initial GPIO level.

Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
2026-07-22 12:11:17 +08:00
Tiago Medicci
5cc17ee75a fix(ana_cmpr): Fix swapped POS/NEG cross interrupt masks on ESP32-P4 2026-07-22 12:11:17 +08:00
Mahavir Jain
c14fc50a34 Merge branch 'feat/mbedtls_update_3.6.7_v5.3' into 'release/v5.3'
feat(mbedtls): update to version 3.6.7 (v5.3)

See merge request espressif/esp-idf!50659
2026-07-22 09:00:54 +05:30
Zhou Xiao
f0be40c78e fix(bt): keep BLE log ISR state in internal RAM
(cherry picked from commit 2fa434eb50)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-07-21 19:44:12 +08:00
Euripedes Rocha
7ec3fe8a2c Merge branch 'fix/sec-1137-br-glue-double-free_v5.3' into 'release/v5.3'
fix(esp_netif): harden br_glue instance-handler cleanup against double-free (SEC-1137) (v5.3)

See merge request espressif/esp-idf!50646
2026-07-21 10:42:25 +02:00
yangfeng
dac2ceaaa5 fix(bt): Fix the pointer sbc_start_frame is not initialized
- Closes https://github.com/espressif/esp-idf/issues/18835
2026-07-21 16:10:31 +08:00