Commit Graph

20171 Commits

Author SHA1 Message Date
sibeibei 0687165375 Revert "fix(esp32): Fixed qa program may fail issue when cpu 240m (v5.0)"
This reverts commit 453f78e011.
2025-05-08 17:39:10 +08:00
Jiang Jiang Jian 84801979ff Merge branch 'feat/pawr_bugfix_v5.0' into 'release/v5.0'
fix(nimble): Fix sync handle assignment for pawr connection (v5.0)

See merge request espressif/esp-idf!38506
2025-05-07 14:12:11 +08:00
Jiang Jiang Jian c91fa88602 Merge branch 'feat/spi_ble_log_improvement_v5.0' into 'release/v5.0'
feat(ble): Improved SPI BLE Log functionality (v5.0)

See merge request espressif/esp-idf!38737
2025-05-07 10:12:20 +08:00
Jiang Jiang Jian d1b2ad339d Merge branch 'fix/ble_mesh_trans_pending_fix_v5.0' into 'release/v5.0'
fix(ble_mesh): remove tx pending assert (v5.0)

See merge request espressif/esp-idf!38641
2025-05-07 10:10:26 +08:00
Jiang Jiang Jian ae32f091fc Merge branch 'fix/multi_core_race_cond_in_panic_handler_v5.0' into 'release/v5.0'
fix(panic_handler): Prevent race condition in panic handler (v5.0)

See merge request espressif/esp-idf!38668
2025-05-07 10:09:57 +08:00
chenjianhua 790859ef1a fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed ble lib linkage issue
2025-04-28 12:15:29 +08:00
chenjianhua e79ae69a92 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(edf923e)
- Fixed MIC error disconnection when pairing with iOS devices
2025-04-28 12:14:46 +08:00
Zhou Xiao 80b64e21a7 feat(ble): Improved SPI BLE Log functionality
* Added checksum for every frame
* Added SPI slave transaction interval workaround
* Added SPI tx done isr issue workaround
* Turned buffer flush to a menuconfig and disabled by default
* Modified packet loss write operation and trigger condition
* Optimized buffer append efficiency for controller ISR
2025-04-25 16:03:08 +08:00
Sudeep Mohanty a896bc5b7d fix(panic_handler): Prevent race condition in panic handler
This commit updates all RTC WDT contexts to be local instead of global
to avoid race conditions when both cores enter the panic handler
simultaneously.
2025-04-23 15:13:35 +02:00
luoxu 8493d2b42b fix(ble_mesh): remove tx pending assert 2025-04-23 14:20:15 +08:00
Jiang Jiang Jian a7d6b07851 Merge branch 'bugfix/fix_not_update_country_in_beacon' into 'release/v5.0'
fix(wifi): fix not update country in beacon(backport v5.0)

See merge request espressif/esp-idf!38585
2025-04-22 10:19:07 +08:00
Jiang Jiang Jian c58641e9d0 Merge branch 'fix/s2_adc_cali_loss_resolution_v5.0' into 'release/v5.0'
fix(adc): fix s2 cali loss resolution (v5.0)

See merge request espressif/esp-idf!38599
2025-04-22 10:12:34 +08:00
Jiang Jiang Jian a5ecb8a5dc Merge branch 'bugfix/fix_some_ble_bugs_2503_v5.0' into 'release/v5.0'
Bugfix/fix some ble bugs 2503 (v5.0)

See merge request espressif/esp-idf!38287
2025-04-22 10:08:08 +08:00
gaoxu aac8132912 fix(adc): fix s2 cali loss resolution 2025-04-21 19:48:05 +08:00
zhanghaipeng 287f45ad8b fix(ble/bluedroid): Fix potential uint32_t overflow in BLE btu_start_timer 2025-04-21 19:15:09 +08:00
Zhang Hai Peng 3a16029484 fix(ble/bluedrooid): Fixed memory leak issue when deinit the host
(cherry picked from commit 6becf74cbb)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-21 16:28:50 +08:00
Zhang Hai Peng 1660aa1a84 fix(ble/bluedroid): Fix missing event reporting in esp_ble_create_sc_oob_data
(cherry picked from commit f291725936)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-21 16:28:50 +08:00
Zhang Hai Peng be5aa8712b fix(ble/bluedroid): Fixed BLE crash when disable bluedroid host
(cherry picked from commit 9dfa6ab0e9)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-04-21 16:28:50 +08:00
yinqingzhao 8ab3480ea9 fix(wifi): fix not update country in beacon 2025-04-21 16:07:21 +08:00
Chen Jian Hua f726c1d454 fix(bt): Update bt lib for ESP32-C3 and ESP32-S3(a684dd5)
- Fixed clear legacy adv error when adv not exist
- Disable anonymous extended adv reporting
- Fixed BLE assert lld_adv.c 2992
- Fixed heap assert due to adv data buffer double freeing
- Fixed BLE 0x08 disconnect when the win size is greater than half of the conn interval


(cherry picked from commit 4602665e5d)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2025-04-21 14:33:18 +08:00
Jiang Jiang Jian 36a8ce4896 Merge branch 'fix/blemesh25-92_v5.0' into 'release/v5.0'
fix(ble_mesh): fixed issues with decrypt failed when resending messages (v5.0)

See merge request espressif/esp-idf!38556
2025-04-21 14:07:47 +08:00
Jiang Jiang Jian 77819073b7 Merge branch 'bugfix/tsens_read_abnormal_value_v5.0' into 'release/v5.0'
fix: tsens read abnormal value in esp32c2eco4(backport v5.0)

See merge request espressif/esp-idf!38553
2025-04-21 11:40:30 +08:00
Jiang Jiang Jian 26e70c3969 Merge branch 'bugfix/fix_phy_data_partition_restoring_default_fails_issue_v5.0' into 'release/v5.0'
fix(phy): fix phy data partition restoring default fails issue(Backport v5.0)

See merge request espressif/esp-idf!38552
2025-04-21 11:06:31 +08:00
Jiang Jiang Jian 0e567403ba Merge branch 'fix/revert_esp32s2_phy_lib_v50' into 'release/v5.0'
fix(phy): revert esp32s2 libphy txrx time change

See merge request espressif/esp-idf!38554
2025-04-19 15:04:36 +08:00
Sarvesh Bodakhe 455df4ff02 fix(wifi): Avoid writing to NVS if station configuration is not changed
Fixes the regression introduced by e93ddfd739
2025-04-19 10:20:16 +05:30
Luo Xu 9e944c86a5 fix(ble_mesh): fixed issues with decrypt failed when resending messages
(cherry picked from commit 4803cea3cc)

Co-authored-by: luoxu <luoxu@espressif.com>
2025-04-18 20:23:26 +08:00
Jiang Jiang Jian 5082a268a6 Merge branch 'bugfix/crypto_reset_on_exit_v5.0' into 'release/v5.0'
fix(esp_system): reset crypto peripherals before device restart (v5.0)

See merge request espressif/esp-idf!38480
2025-04-18 19:27:10 +08:00
wangtao@espressif.com ee271a44af fix(phy): revert esp32s2 libphy txrx time change 2025-04-18 19:16:13 +08:00
sibeibei aeeccb7a7c fix: tsens read abnormal value in esp32c2eco4 2025-04-18 19:05:27 +08:00
muhaidong 26d9925393 fix(phy): fix phy data partition restoring default fails issue
Closes https://github.com/espressif/esp-idf/issues/14698
2025-04-18 17:49:16 +08:00
linruihao 1d6002c6c2 fix(bt/controller): Fixed access external memory in isr context 2025-04-18 15:56:48 +08:00
Jin Cheng 8bd0b2dcff fix(bt/controller): update libbtdm_app.a
- fixed errors in the coexistance of ACL and SCO
- fixed dynamic priority config error in dual mode
2025-04-18 15:56:31 +08:00
Jiang Jiang Jian ef9dbc787b Merge branch 'fix/fix_wifi_connect_mem_leakage_v50' into 'release/v5.0'
fix(wifi): fix wifi connect mem leakage v50

See merge request espressif/esp-idf!38488
2025-04-18 14:43:32 +08:00
Island 5fe7b4c80f Merge branch 'change/ble_update_lib_20250414_v5.0' into 'release/v5.0'
change(ble): [AUTO_MR] 20250414 - Update ESP BLE Controller Lib (v5.0)

See merge request espressif/esp-idf!38490
2025-04-18 11:09:18 +08:00
Jiang Jiang Jian 2d8537a8f9 Merge branch 'bugfix/no_write_evt_report_v5.0' into 'release/v5.0'
fix(bt): fixed spp not reporting write event(v5.0)

See merge request espressif/esp-idf!38462
2025-04-17 15:38:55 +08:00
Abhinav Kudnar 18f69e8ef5 fix(nimble): Fix sync handle assignment for pawr connection 2025-04-17 14:33:15 +08:00
Zhou Xiao 3673c57cdd fix(ble): remove null pointer assert in npl event deinit
(cherry picked from commit ece108c0bf)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 14:05:22 +08:00
Zhou Xiao fb1267a01a change(ble): bugs fixed on spi ble log
* removed spi master in iram select for flash only firmware
* fixed memory issue in transaction init function
* fixed memory issue in transaction deinit function
2025-04-17 14:05:22 +08:00
cjin 4124ce77aa feat(ble): use new section for ble sleep on ESP32-C2 2025-04-17 14:05:22 +08:00
Jiang Jiang Jian 43005566ac Merge branch 'fix/some_issues_in_bt_controller_v5.0' into 'release/v5.0'
fix(bt): fixed some issues in bt controller(backport v5.0)

See merge request espressif/esp-idf!38446
2025-04-17 12:50:17 +08:00
Jiang Jiang Jian 2122c077de Merge branch 'change/allow_keep_sar_poweron_in_light_sleep_v5.0' into 'release/v5.0'
change(esp_hw_support): allow sar power keep on during lightsleep (v5.0)

See merge request espressif/esp-idf!38427
2025-04-17 11:12:38 +08:00
Zhou Xiao 3adf9fd579 change(ble): [AUTO_MR] Update lib_esp32c2 to fca2b9ea
(cherry picked from commit 09467baed0)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-04-17 10:53:37 +08:00
wangtao@espressif.com 22bc32930c fix(wifi): fix wifi connect mem leakage 2025-04-17 10:45:46 +08:00
Jiang Jiang Jian 152eb37307 Merge branch 'fix/fix_incorrect_ota_address_assignment_v5.0' into 'release/v5.0'
fix(nimble): Fix incorrect OTA address type assignment (v5.0)

See merge request espressif/esp-idf!38352
2025-04-17 10:37:34 +08:00
Mahavir Jain f22fd00f93 fix(esp_system): reset crypto peripherals before device restart
This change addresses a rare but critical issue observed on certain
ESP32-C3 and ESP32-S3 devices, where secure boot verification
intermittently fails due to improper cleanup of crypto peripherals
during a restart.

Background – Restart Behavior in IDF
------------------------------------
In ESP-IDF, when the device restarts (via `esp_restart()` or due to a
panic/exception), a partial peripheral reset is performed followed by a
CPU reset. However, until now, crypto-related peripherals were not
included in this selective reset sequence.

Problem Scenario
----------------
If a restart occurs while the application is in the middle of a bignum
operation (i.e., using the MPI/Bignum peripheral), the ROM code may
encounter an inconsistent peripheral state during the subsequent boot.
This leads to transient RSA-PSS secure boot verification failures.

Following such a failure, the ROM typically triggers a full-chip reset
via the watchdog timer (WDT). This full reset clears the crypto
peripheral state, allowing secure boot verification to succeed on the
next boot.

Risk with Aggressive Revocation
-------------------------------
If secure boot aggressive revocation is enabled (disabled by default in
IDF), this transient verification failure could mistakenly lead to
revocation of the secure boot digest.

If your product configuration has aggressive revocation enabled,
applying this fix is strongly recommended.

Frequency of Occurrence
-----------------------
The issue is rare and only occurs in corner cases involving
simultaneous use of the MPI peripheral and an immediate CPU reset.

Fix
---
This fix ensures that all crypto peripherals are explicitly reset prior
to any software-triggered restart (including panic scenarios),
guaranteeing a clean peripheral state for the next boot and preventing
incorrect secure boot behavior.
2025-04-16 20:45:18 +08:00
xiongweichao 5abe6e4c52 fix(bt): fixed spp not reporting write event 2025-04-16 17:14:23 +08:00
Jiang Jiang Jian bb02c680fa Merge branch 'fix/fix_uart_console_broken_after_sleep' into 'release/v5.0'
fix(esp_hw_support): fixed gpio sleep switching filling junk data to the console UART FIFO (v5.0)

See merge request espressif/esp-idf!38426
2025-04-16 16:40:10 +08:00
gongyantao 90c4674d4f fix(bt): fixed some issues in bt controller
- add check for Wi-Fi channel
- fix the incorrect unit of duration_min in cpb tx
- recalculate the channel map when afh is enabled
- fix incorrect vendor event count causing an assertion failure
2025-04-16 15:24:54 +08:00
Shreeyash 04f9e94dea fix(nimble): Fix incorrect OTA address assignment 2025-04-16 11:54:18 +05:30
wuzhenghui 6af2629bcd fix(esp_hw_support): fix unused OSC source deinit breaks XTAL32K configuration 2025-04-15 22:07:23 +08:00