Commit Graph
33440 Commits
Author SHA1 Message Date
Martin Vychodil de94a9d2f3 Merge branch 'bugfix/idfci-10775-fatfs-wl-dyn-buffers-ci-timeout_v5.5' into 'release/v5.5'
fix(storage): mark storage pytest apps flaky in CI (v5.5)

See merge request espressif/esp-idf!48808
2026-05-25 03:29:08 +08:00
DatanoiseTV ae669c7049 fix(i2c_master): yield from ISR when no matching device is found
`i2c_master_isr_handler_default()` may set HPTaskAwoken to pdTRUE via
`xQueueSendFromISR()` (event_queue), `xSemaphoreTakeFromISR()` and
`xSemaphoreGiveFromISR()` on `bus_lock_mux`. When the device list lookup
returns no matching device, the function returned directly, skipping
the `portYIELD_FROM_ISR()` at the bottom of the handler. A higher-
priority task waiting on the bus mux or the event queue would then have
to wait for the next scheduler tick instead of being preempted into
immediately, inflating worst-case event latency.

Replace the early return with a goto to the existing yield check at the
end of the ISR.

Merges https://github.com/espressif/esp-idf/pull/18569
2026-05-22 17:38:48 +08:00
Euripedes Rocha 079a52ead8 Merge branch 'fix/ws_transport_reject_oversize_v5.5' into 'release/v5.5'
fix(ws_transport): reject oversized 64-bit WebSocket payload length (v5.5)

See merge request espressif/esp-idf!48800
2026-05-22 10:30:36 +02:00
Jiang Jiang Jian 50d7885fc6 Merge branch 'fix/pmp_drom_mask_read_only_v5.5' into 'release/v5.5'
fix(cpu_region_protect): set DROM mask PMP entry to read-only (v5.5)

See merge request espressif/esp-idf!47577
2026-05-22 16:29:53 +08:00
Rahul Tank 851efb6119 Merge branch 'bugfix/nimble_hid_fixes_v5.5' into 'release/v5.5'
fix(nimble): Always read initial BAS level and forward HID report/control/protocol writes as HIDD events (v5.5)

See merge request espressif/esp-idf!48693
2026-05-22 13:39:39 +05:30
Jiang Jiang Jian e70164a159 Merge branch 'fix/for_cache_after_p4_wb_loss_issue_v5.5' into 'release/v5.5'
fix(esp_rom): avoid critical issue in writeback v5.5

See merge request espressif/esp-idf!48747
2026-05-22 15:51:42 +08:00
Song Ruo Jing 58d883a99d fix(uart): lp uart rx iomux pin was not working as expected
Introduced in 8818157e42
The workaround in the commit routes the signal to LP GPIO matrix first.
When uses LP IOMUX pin as UART RX, the signal did not bypass the matrix,
which caused the issue.

This commit adds rtc_gpio_iomux_input and rtc_gpio_iomux_output APIs
to align with existing GPIO driver APIs.
2026-05-22 15:36:00 +08:00
Song Ruo Jing 5b7db25db1 refactor(rtcio): split rtcio/gpio switch with rtc iomux func sel func
This allows rtc_gpio_deinit to always switch the pad back to GPIO,
regardless of lp io clock enabled or not, so that gpio_config can
always switch the IO back to GPIO use after wakeup from deep sleep.
2026-05-22 15:35:21 +08:00
Song Ruo Jing df34ee76af fix(isp): disable gamma xcoord error check 2026-05-22 15:31:17 +08:00
Jiang Jiang Jian 7a6e80e1f3 Merge branch 'bugfix/roaming_app_issues_v5.5' into 'release/v5.5'
Fixed some issues in roaming app found using static analysis(v5.5)

See merge request espressif/esp-idf!48619
2026-05-22 15:19:13 +08:00
wanckl 66de12a042 fix(driver_twai): fixed fd data bitrate error on slow bitrate 2026-05-22 14:38:41 +08:00
Michael.B d60abc17b3 test(twai): add regression test for prop_seg in legacy timing config
Verify prop_seg is correctly included in the programmed TSEG1 hardware
register when using the legacy twai_driver_install() with prop_seg > 0.

Closes https://github.com/espressif/esp-idf/issues/18477
2026-05-22 14:38:41 +08:00
diplfranzhoepfinger 7daf14f995 Adjust bus timing configuration in TWAI HAL 2026-05-22 14:38:41 +08:00
Jiang Jiang Jian 8e30fc4fc1 Merge branch 'feat/support_bt_external_coex_v5.5' into 'release/v5.5'
feat(coex): supports external coexisence when bluetooth is enabled (v5.5)

See merge request espressif/esp-idf!48772
2026-05-22 14:07:00 +08:00
Jiang Jiang Jian c4247b1254 Merge branch 'bugfix/esp_idf_h4_ci_issues_v5.5' into 'release/v5.5'
fix(esp_rom): fix RTC_SLEEP_MODE_REG addr mismatch v5.5

See merge request espressif/esp-idf!48788
2026-05-22 13:53:39 +08:00
Jiang Jiang Jian 54152ceb12 Merge branch 'bugfix/idf_13957_v5.5' into 'release/v5.5'
bugfix: fix wifi loss packet and missing interrupt issues when switching root clock source v5.5

See merge request espressif/esp-idf!48759
2026-05-22 13:52:40 +08:00
wanglei 733a5e5d02 feat(esp_rom): do not patch Cache_WriteBack_All for uboot build 2026-05-22 11:53:50 +08:00
Chen Chen 4f6e79ab93 docs(i2s): add note for the restriction of MCLK on esp32
Closes https://github.com/espressif/esp-idf/issues/18564
2026-05-22 11:42:11 +08:00
Wang Meng Yang 7c38176567 Merge branch 'bugfix/fix_bt_incorrect_error_code_v5.5' into 'release/v5.5'
fix(bt): Correct the error code in pairing when pin code req rejected by host (v5.5)

See merge request espressif/esp-idf!48792
2026-05-22 11:21:16 +08:00
wanglei 85f79ecb07 fix(esp_rom): implement cache writeback related apis in iram
avoid critical issues caused by manual cache writeback and conflicting
writes. The issue exist on chips after esp32p4
2026-05-22 10:19:35 +08:00
sonika.rathi 01116e4c9e fix(storage): mark storage pytest apps flaky in CI 2026-05-21 15:48:10 +02:00
surengab d99f569dac fix(ws_transport): reject oversized 64-bit WebSocket payload length 2026-05-21 16:38:17 +04:00
linruihao 5fa64e4f50 fix(bt): Correct the error code in pairing when pin code req rejected by host 2026-05-21 19:05:44 +08:00
hebinglin 83813904f4 fix(esp_rom): fix RTC_SLEEP_MODE_REG addr mismatch 2026-05-21 15:34:38 +08:00
sonika.rathi 2ac25e0b7e fix(nvs_flash): scope NVS unity tests to correct CI configs 2026-05-21 08:50:33 +02:00
Mayank Tyagi 7496cf413e fix(nimble): Added change to read initial BAS level post connection 2026-05-21 12:15:16 +05:30
Mayank Tyagi a49c826a70 fix(nimble): Forward HID report/control/protocol writes as HIDD events 2026-05-21 12:15:16 +05:30
nilesh.kale e3a8feedcc fix(cpu_region_protect): set DROM mask PMP entry to read-only
PMP entry 3 (SOC_DROM_MASK_HIGH, TOR mode) in the memprot path
was incorrectly granted RW permission on esp32h21 and esp32c61.
The mask ROM data region is inherently read-only; remove the W bit.

Also added necessary tests to check voilations and re-enabled
tests for ESP32P4
2026-05-21 11:33:09 +05:30
Rahul Tank f4f8bbd8bf Merge branch 'feat/esp_insight_read_log_master_v5.5' into 'release/v5.5'
feat(nimble): ADD BLE HCI logging support for ESP Insights (v5.5)

See merge request espressif/esp-idf!47580
2026-05-21 11:10:03 +05:30
Mahavir Jain 7b48bb5c40 Merge branch 'fix/protocomm-close-session-id-mismatch_v5.5' into 'release/v5.5'
fix(protocomm): pass current session id when closing existing session (v5.5)

See merge request espressif/esp-idf!48735
2026-05-21 10:45:52 +05:30
linruihao e1ca4b53ae feat(coex): supports external coexisence when bluetooth is enabled 2026-05-21 11:14:35 +08:00
Kapil Gupta 71bbd3cf4d fix(roaming): prevent timeout payload double-free on deinit
Track timeout user_data before registration, untrack on register failure
2026-05-20 19:12:45 +05:30
Kapil Gupta f4a4b9aa35 fix(esp_wifi): Fixed some issues in roaming app found using static analysis 2026-05-20 19:12:37 +05:30
sibeibei 12407c8ab7 bugfix(esp_hw_support):remove ESP32-C5 root clock auto gating bypass in sleep path 2026-05-20 20:16:16 +08:00
sibeibei 45b690e465 bugfix: fix wifi loss packet and missing interrupt issues when switching root clock source 2026-05-20 20:15:50 +08:00
sibeibei 581ad7c9a4 Revert "fix(esp_hw_support): fix the issue of wifi rx packet loss when switchng soc root clock source"
This reverts commit 45ea08b955.
2026-05-20 20:12:30 +08:00
Jiang Jiang Jian 9b0f2616cd Merge branch 'bugfix/fix_some_wifi_bugs_260519_v5.5' into 'release/v5.5'
fix(wifi): fix some wifi bugs 260519 v5.5(Backport v5.5)

See merge request espressif/esp-idf!48708
2026-05-20 17:50:41 +08:00
Jiang Jiang Jian 128defc06a Merge branch 'bugfix/hfp_reg_data_cb_v5.5' into 'release/v5.5'
fix: Remove the check for recv and send being NULL(v5.5)

See merge request espressif/esp-idf!48616
2026-05-20 17:14:07 +08:00
Mayank Tyagi a30e86ca10 feat(nimble): ADD BLE HCI logging support for ESP Insights 2026-05-20 13:38:00 +05:30
Aditya Patwardhan ffac3359fd fix(protocomm): pass current session id when closing existing session
sec1_new_session()/sec2_new_session() were calling sec*_close_session()
with the *new* session_id parameter instead of the existing
cur_session->id. The close handler validates `cur_session->id ==
session_id` before performing teardown, so the call always failed with
ESP_ERR_INVALID_STATE.

Effect: when a peer started a new provisioning session while another was
already active, the previous session's PSA keys, AES context, SRP handle
and username buffer were leaked instead of being destroyed. The cleared
session struct was overwritten by the new session, leaking the previous
key handles inside PSA Crypto and (for security2) leaking heap memory
for the username and SRP context.

Fix: pass cur_session->id so the close path actually executes the
teardown (psa_destroy_key/psa_cipher_abort/esp_srp_free/free) before the
new session takes over.
2026-05-20 12:37:45 +05:30
Mahavir Jain 6a622d12ef fix(openthread): exclude CVE-2026-8369 from the list 2026-05-20 10:50:08 +08:00
Jiang Jiang Jian 286e680522 Merge branch 'fix/ssl_crash_with_rom_crypto_impl' into 'release/v5.5'
fix(mbedtls): fix mbedtls threading alt issues

See merge request espressif/esp-idf!48657
2026-05-20 10:33:55 +08:00
Jiang Jiang Jian ee367e0b68 Merge branch 'bugfix/hfp_co_build_err_v5.5' into 'release/v5.5'
fix(bt/bluedroid): fixed building errors in HFP datapath (v5.5)

See merge request espressif/esp-idf!48568
2026-05-20 10:32:34 +08:00
Xiao Xufeng be62da6ca4 fix(mspi): fixed possible boot failure in some builds when psram is enabled
A typical scenario is: when XIP on PSRAM enabled, compiler optimization level is Os. Under certain binary layout, boot hangs and backtrace points to `esp_sleep_config_gpio_isolate`.

The root cause is that, during PSRAM initialization, it calls esp_gpio_reserve, which happens to place before the reported function. However, after call, there is no barrier before the clock adjustment in `mspi_timing_enter_low_speed_mode`. The clock gets changed when the cache is still fetching data, resulting in the corrupted data in the end of the cache line.

This commits add spi_flash_disable_cache as a barrier to make sure the cache transactions is finished before the clock switch.
2026-05-19 23:55:01 +08:00
muhaidong 81fa030c00 fix(wifi): update auth mode threshold doc 2026-05-19 21:12:11 +08:00
muhaidong d83756db42 fix(wifi): update wifi scan threshold doc 2026-05-19 21:12:11 +08:00
muhaidong 164584cb1d fix(wifi): update rom ld file for fix max connection number issue 2026-05-19 21:12:11 +08:00
muhaidong 6f2db2d402 fix(wifi): fix some wifi bugs 260519 v5.5
1. fix(wifi): fix max connection number issue
2. fix(wifi): fix hidden ap rssi update and owe beacon timeout issue
3. docs: update wifi scan threshold docs
2026-05-19 21:11:13 +08:00
Jiang Jiang Jian 091c972a02 Merge branch 'backport/backport_some_wifi_changes_v5.5_260518' into 'release/v5.5'
backport/backport some wifi changes v5.5 260518(backport v5.5)

See merge request espressif/esp-idf!48614
2026-05-19 16:51:29 +08:00
Euripedes Rocha 64a48bf760 Merge branch 'bugfix/transport_ws_ping_pong_v5.5' into 'release/v5.5'
fix(transport_ws): fix stream desync and chunked delivery of control frames (v5.5)

See merge request espressif/esp-idf!47847
2026-05-19 09:55:24 +02:00