31815 Commits

Author SHA1 Message Date
morris 30aaf64524 change(version): Update version to 5.5.2 2025-12-24 22:34:47 +08:00
Jiang Jiang Jian e81ca4bb86 Merge branch 'bugfix/c5_add_freq_restriction_again_v5.5' into 'release/v5.5'
fix(esp_system): limit CPU clock to 160MHz in ESP32-C5 for flash encryption (v5.5)

See merge request espressif/esp-idf!44500
2025-12-24 20:59:09 +08:00
morris af96540359 Merge branch 'fix/fix_c5_rng_to_lp_peri_dependency_v5.5' into 'release/v5.5'
fix(esp_hw_support): fix RNG to LP Peri domain dependency on C5 (v5.5)

See merge request espressif/esp-idf!44490
2025-12-24 19:49:28 +08:00
Jiang Jiang Jian a81c787c18 Merge branch 'bugfix/fix_crash_issue_when_send_espnow_data_in_he_phymode_v5.5' into 'release/v5.5'
fix(wifi): fixed the crash issue when send espnow data in HE phymode (v5.5)

See merge request espressif/esp-idf!44501
2025-12-24 18:03:24 +08:00
morris ce76ba349c Merge branch 'fix/mcpwm_p4eco_psram_test_v5.5' into 'release/v5.5'
chor(mcpwm): replace p4 psram test (v5.5)

See merge request espressif/esp-idf!43682
2025-12-24 11:10:38 +08:00
zhangyanjiao 0f1ab3136a fix(wifi): fixed the crash issue when send espnow data in HE phymode 2025-12-24 10:51:44 +08:00
Xiao Xufeng 08f5f0d66b fix(esp_system): limit CPU clock to 160MHz in ESP32-C5 for flash encryption
This reverts commit 7145fc9558.
2025-12-24 02:31:57 +08:00
wuzhenghui 5d5d15fbfc fix(esp_hw_support): fix RNG to LP Peri domain dependency on C5 2025-12-23 23:43:13 +08:00
morris dc3df80c12 Merge branch 'fix/set_dma_incr_fail_on_p4eco5_v5.5' into 'release/v5.5'
fix(gdma): fix set dma burst size failure on p4 v3.0 (v5.5)

See merge request espressif/esp-idf!44461
2025-12-23 23:41:47 +08:00
morris cff4ebe8ff Merge branch 'feat/support_parlio_gdma_eof_on_p4eco5_v5.5' into 'release/v5.5'
feat(parlio): support parlio gdma eof on p4 rev3.0 (v5.5)

See merge request espressif/esp-idf!44038
2025-12-23 22:40:38 +08:00
Chen Jichang 3678a25e4c fix(gdma): fix set dma burst size failure on p4 v3.0 2025-12-23 11:22:47 +08:00
Jiang Jiang Jian e0577ae677 Merge branch 'fix/fix_esp32s2_phy_issue_v55' into 'release/v5.5'
fix(phy): fix esp32s2 phy lib issue v55

See merge request espressif/esp-idf!44341
2025-12-18 15:48:01 +08:00
Island 8789584388 Merge branch 'bugfix/bug_ble_max_device_record_v5.5' into 'release/v5.5'
fix(ble/bluedroid): Fixed BLE incorrect device record count issue (v5.5)

See merge request espressif/esp-idf!43597
2025-12-18 14:29:52 +08:00
Island a63ae743b1 Merge branch 'bugfix/fix_reconnect_failed_with_extend_adv_v5.5' into 'release/v5.5'
fix(ble/bluedroid): Fixed the issue that extend advertising might not restart if the connection fails (v5.5)

See merge request espressif/esp-idf!44251
2025-12-18 14:26:44 +08:00
Island 5cf7ec68bc Merge branch 'bugfix/fix_ble_security_issue_2025_v5.5' into 'release/v5.5'
Fix potential CVE-2024-0039 out-of-bounds write in attp_build_value_cmd (v5.5)

See merge request espressif/esp-idf!43807
2025-12-18 14:25:15 +08:00
Island 51493f9445 Merge branch 'bugfix/fix_reattempt_sync_estab_v5.5' into 'release/v5.5'
fix(nimble): Add change to cancel sync in case of reattempt (v5.5)

See merge request espressif/esp-idf!43949
2025-12-18 14:21:18 +08:00
Jiang Jiang Jian f230471ee6 Merge branch 'bugfix/fix_esp32_coex_cache_disable_crash_v5.5' into 'release/v5.5'
fix(coex): fix esp32 coex crash issue v5.5

See merge request espressif/esp-idf!44288
2025-12-18 14:05:52 +08:00
Jiang Jiang Jian 2a039e30d4 Merge branch 'bugfix/fix_bt_4205_v5.5' into 'release/v5.5'
Fixed BLE assert lld_con.c 1479 on ESP32-C3 and ESP32-S3(5106725) (v5.5)

See merge request espressif/esp-idf!44328
2025-12-18 13:59:23 +08:00
wangtao@espressif.com c8ba727536 fix(phy): fix esp32s2 phy lib issue 2025-12-17 20:36:28 +08:00
zhanghaipeng c4cc87501b fix(ble/bledroid): fix codespell issues in bluedroid code 2025-12-17 17:10:58 +08:00
Chen Jian Hua ebd08a5aa6 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(5106725)
- Fixed BLE assert lld_con.c 1479


(cherry picked from commit 22641241fa)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-12-17 12:53:55 +08:00
Xiao Xufeng 27f1484774 test(esp_flash): fixed test config that c5 not support 120MHz 2025-12-17 12:16:55 +08:00
Xiao Xufeng 187f43a3bb Revert "fix(esp_system): limit CPU clock to 160MHz in ESP32-C5 for flash encryption"
This reverts commit 3c5d2e6b58.
2025-12-17 03:33:30 +08:00
Xiao Xufeng faf6cc4f84 feat(spi_flash): implement dynamic CPU frequency switching workaround for encrypted writes
This commit implements a workaround that allows ESP32-C5 to run at 240MHz CPU frequency
normally, while automatically reducing CPU frequency during encrypted flash writes to
ensure correct operation. The frequency limit is chip revision dependent:
- v1.2 and above: limited to 160MHz during encrypted writes
- v1.0 and below: limited to 80MHz during encrypted writes

Key implementation details:
- Frequency limiting is triggered automatically when esp_flash_write_encrypted() is called
- Uses start() flags (ESP_FLASH_START_FLAG_LIMIT_CPU_FREQ) to integrate with OS layer
- Works with both PM enabled and disabled configurations
- Frequency is automatically restored after encrypted write completes
- For ESP32-C5 with 120MHz flash, Flash clock and timing registers are adjusted when
  CPU frequency is reduced to 80MHz
- SPI1 timing registers are configured during frequency switching since encrypted writes
  use SPI1 and must work correctly at reduced CPU frequencies

Code improvements:
- Use SOC_MSPI_FREQ_AXI_CONSTRAINED capability macro instead of hardcoded chip checks
- Control workaround via Kconfig (CONFIG_PM_WORKAROUND_FREQ_LIMIT_ENABLED) instead of
  hardcoded macros
- Add comprehensive test cases covering various PM configurations and edge cases

This workaround enables ESP32-C5 applications to benefit from 240MHz CPU performance
while maintaining reliable encrypted flash write functionality.
2025-12-17 03:33:29 +08:00
Mahavir Jain 9ab736cbd1 fix(spi_flash): limit CPU clock to 160MHz for encrypted flash writes 2025-12-17 03:33:29 +08:00
liuning 3aa928d503 fix(coex): fix esp32 coex crash issue (7260f71) 2025-12-16 16:04:58 +08:00
Jiang Jiang Jian e3d0b196c9 Merge branch 'bugfix/fix_regdma_data_race_v5.5' into 'release/v5.5'
fix: add mutex protection for software trigger RegDMA start to avoid data races V5.5

See merge request espressif/esp-idf!44168
2025-12-15 23:41:38 +08:00
Zhi Wei Jian 5452adbcb9 fix(ble/bluedroid): Fixed reconnection failed with extend adv
(cherry picked from commit ec4052c1c7)

Co-authored-by: zhiweijian <zhiweijian@espressif.com>
2025-12-15 21:23:25 +08:00
Aditya Patwardhan 9bb7aa84fe Merge branch 'feat/mbedtls_aes_tests_v5.5' into 'release/v5.5'
Only reallocate unaligned external AES and SHA buffers (v5.5)

See merge request espressif/esp-idf!44162
2025-12-15 14:25:22 +05:30
Akshat Agrawal b81023c19e bugfix(wifi): Resolve the memory corruption issue in FTM 2025-12-12 15:05:06 +05:30
harshal.patil 11c8f6aa94 fix(mbedtls/aes): Reallocate buffers only if in external RAM 2025-12-12 13:00:40 +05:30
Chen Jichang 0e541d8348 feat(parlio): support parlio gdma eof on p4 rev3.0 2025-12-12 11:50:49 +08:00
sibeibei 0f07ad18b6 fix: add mutex protection for software trigger RegDMA start to avoid data races 2025-12-11 20:32:53 +08:00
Jiang Jiang Jian 332c73b20b Merge branch 'fix/fix_an_ot_trel_risk_v5.5' into 'release/v5.5'
fix(openthread): fix a potential stack overflow in TREL (v5.5)

See merge request espressif/esp-idf!43932
2025-12-11 16:42:26 +08:00
zwx 8a70704be6 fix(openthread): open nvs from the configured partition 2025-12-05 14:06:19 +08:00
zwx acc569fd95 fix(802.15.4): fixed energy detection result 2025-12-05 12:20:23 +08:00
Xu Si Yu 26e23725da feat(openthread): Use PSRAM by default for OpenThread message buffers when PSRAM is enabled 2025-12-05 12:20:11 +08:00
Xu Si Yu 74b294187d fix(openthread): fix an error in Kconfig 2025-12-05 12:20:02 +08:00
Tan Yan Quan 5af377ce18 fix(openthread): resolve deadlock issues due to switching_lock
* esp-openthread: thread_zigbee/esp-openthread@4a650cc2f
* openthread: espressif/openthread@36b14d3ef
* esp-idf: espressif/esp-idf@871ec2c1e
2025-12-04 16:09:30 +08:00
Jiang Jiang Jian 871ec2c1ef Merge branch 'feat/enable_lowpower_tests_for_p4_v3_v5.5' into 'release/v5.5'
feat: re-enable P4 pm/wakeup tests for rev3.0 (v5.5)

See merge request espressif/esp-idf!43760
2025-12-04 10:46:56 +08:00
Jiang Jiang Jian ddb9f5d9dc Merge branch 'fix/fix_mspi_write_stuck_after_reset_v5.5' into 'release/v5.5'
fix(esp_system): fix mspi write stuck after cpu/digital reset on c5/c61 (v5.5)

See merge request espressif/esp-idf!43732
2025-12-04 10:34:56 +08:00
Jiang Jiang Jian b1e3248f23 Merge branch 'feat/update_libphy_for_c5_c61_v5.5' into 'release/v5.5'
feat(phy): update libphy to fix c5/c61 reset(backport v5.5)

See merge request espressif/esp-idf!43854
2025-12-03 19:48:28 +08:00
Jiang Jiang Jian 70ab2dde1b Merge branch 'bugfix/oob_in_bta_dm_sdp_result_v5.5' into 'release/v5.5'
fix(bt/bluedroid): fixed an OOB write in bta_dm_sdp_result (v5.5)

See merge request espressif/esp-idf!43203
2025-12-03 16:49:49 +08:00
Jiang Jiang Jian e492290391 Merge branch 'fix/increase_c61_default_sleep_out_overhead_us_v5.5' into 'release/v5.5'
fix(esp_hw_support): update DEFAULT_SLEEP_OUT_OVERHEAD_US for esp32c61 (v5.5)

See merge request espressif/esp-idf!43912
2025-12-03 13:49:12 +08:00
Zhang Hai Peng d28b874e35 fix(ble/bluedroid): Fix security issues in GATT module
(cherry picked from commit f502b2aab1)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:24 +08:00
Zhang Hai Peng ef96110b4d fix(ble/bluedroid): Fix security issues in HCI module
(cherry picked from commit b163685c06)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:23 +08:00
Zhang Hai Peng 7c7f30aa09 fix(ble/bluedroid): Fix security issues in GAP module
(cherry picked from commit 1ed5a4465d)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:22 +08:00
Zhang Hai Peng 569854b55a fix(ble/bluedroid): Add length check in prepare write response
(cherry picked from commit b03ff3cf21)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:22 +08:00
Zhang Hai Peng 1936ba80d7 fix(ble/bluedroid): Add boundary check for adv_handle in btm_ble_adv_set_terminated_evt
(cherry picked from commit d2baf3b0d4)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:21 +08:00
Zhang Hai Peng 1ab91f0b5f fix(ble/bluedroid): Add NULL checks in GATT APIs
(cherry picked from commit a6730c7da6)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-12-03 11:54:20 +08:00