Commit Graph

51908 Commits

Author SHA1 Message Date
Erhan Kurubas
08bc66dc08 change(esp_trace): skip unused timer reads on the per-event path
Lock take called esp_timer_get_time() before trying the spinlock, and the
C3 default timestamp went through esp_timer's tick-to-us conversion.
Try the lock first, and read systimer ticks directly.

(cherry picked from commit 4709507f3e)
2026-09-09 12:24:53 +02:00
Erhan Kurubas
1971a58caa change(esp_trace): compile hot path at -O2 regardless of project optimization
Every event record runs through this component, so -Og on the rest of the
project should not set the per-event tracing overhead.

(cherry picked from commit 44a38047bb)
2026-09-09 12:23:11 +02:00
Rahul Tank
16cd970a43 Merge branch 'bugfix/fix_coex_crash_v6.0' into 'release/v6.0'
fix(nimble): Prevent crash in deinit when host init was not completed (v6.0)

See merge request espressif/esp-idf!52565
2026-09-09 11:15:32 +05:30
Wang Meng Yang
2441aff81d Merge branch 'bugfix/bta_disable_not_run_v6.0' into 'release/v6.0'
fix(bt/bluedroid): fixed BTA event dispatch race during module disable (v6.0)

See merge request espressif/esp-idf!51975
2026-09-09 11:39:09 +08:00
Martin Vychodil
059abc43d7 Merge branch 'fix/sdmmc_wait_for_idle_busy_poll_starving_cpu_cores_v6.0' into 'release/v6.0'
fix(sdmmc): back off between CMD13 polls while waiting for card to be ready (v6.0)

See merge request espressif/esp-idf!52533
2026-09-08 19:15:12 +08:00
Alexey Gerenkov
445d48b773 Merge branch 'tracing_test_fixes_v6.0' into 'release/v6.0'
Tracing test fixes (v6.0)

See merge request espressif/esp-idf!52328
2026-09-08 18:43:46 +08:00
Rahul Tank
4cb6a3f218 fix(nimble): Prevent crash in deinit when host init was not completed 2026-09-08 15:35:29 +05:30
morris
927f62448a Merge branch 'ci/fix_the_parlio_rx_spi_test_case_v6.0' into 'release/v6.0'
ci(parlio_rx): fixed the parlio rx spi test case (v6.0)

See merge request espressif/esp-idf!51117
2026-09-08 15:12:17 +08:00
morris
5383352582 Merge branch 'bugfix/uart_extra_current_consumption_in_sleep_v6.0' into 'release/v6.0'
fix(uart): reduce current consumption in sleep mode (v6.0)

See merge request espressif/esp-idf!52347
2026-09-08 15:07:26 +08:00
morris
7f7f6cccbf Merge branch 'feat/isp_dpc_support_v6.0' into 'release/v6.0'
feat(isp): support isp dpc dead pixel correction (v6.0)

See merge request espressif/esp-idf!51470
2026-09-08 15:06:44 +08:00
morris
7dc4ca8c87 Merge branch 'change/remove_lcd_restart_for_p4_s31_v6.0' into 'release/v6.0'
remove(lcd): remove restart support for p4 and s31 (v6.0)

See merge request espressif/esp-idf!51352
2026-09-08 14:55:40 +08:00
morris
c5a48f7808 Merge branch 'fix/fix_rmt_loop_tx_trigger_done_event_v6.0' into 'release/v6.0'
fix(rmt): clear stale TX done status before new transaction (v6.0)

See merge request espressif/esp-idf!51653
2026-09-08 14:54:48 +08:00
morris
9ee2fcd543 Merge branch 'feat/add_timeout_return_for_dsi_panel_v6.0' into 'release/v6.0'
feat(dsi): add timeout check for lp cmd rx (v6.0)

See merge request espressif/esp-idf!52313
2026-09-08 14:44:11 +08:00
morris
5aa18f1104 Merge branch 'fix/spi_flash_keep_program_erase_in_iram_v6.0' into 'release/v6.0'
fix(spi_flash): keep program and erase paths in IRAM (v6.0)

See merge request espressif/esp-idf!51892
2026-09-08 14:43:07 +08:00
morris
50642bc839 Merge branch 'feat/move_flash_120_out_from_experimental_v6.0' into 'release/v6.0'
feat(flash): p4 flash 120MHz is no longer experimental feature (v6.0)

See merge request espressif/esp-idf!51699
2026-09-08 14:41:26 +08:00
morris
a45957cce0 Merge branch 'contrib/github_pr_19038_v6.0' into 'release/v6.0'
fix(esp_lcd): yield from SPI ISR when color trans done callback wakes a task (GitHub PR) (v6.0)

See merge request espressif/esp-idf!52454
2026-09-08 11:20:03 +08:00
Jiang Jiang Jian
3702e3446d Merge branch 'bugfix/qos_not_reported_v6.0' into 'release/v6.0'
fix(bt/controller): update ESP32 libbtdm_app.a to fix missing QoS_Setup_Cmpl event (v6.0)

See merge request espressif/esp-idf!52491
2026-09-08 10:36:17 +08:00
Shu Chen
58fa356e79 Merge branch 'feat/support_multipan_feature_host_20260813_v6.0' into 'release/v6.0'
feat(openthread): add support for the multipan feature on host devices (v6.0)

See merge request espressif/esp-idf!52380
2026-09-08 02:28:23 +00:00
Island
4dd996365c Merge branch 'fix/fix_ble_retention_dependency_order_v6.0' into 'release/v6.0'
fix(ble): fix ble retention dependency order (6.0)

See merge request espressif/esp-idf!52465
2026-09-08 10:25:13 +08:00
Adam Múdry
a2b2b36a57 fix(sdmmc): back off between CMD13 polls while waiting for card to be ready
The loops waiting for the card to leave its busy state started their yield
backoff at 100 ms. A card is typically busy for a few milliseconds after a
write, so the backoff never fired and every write was followed by hundreds
of back-to-back CMD13 commands. Occupying the host controller like this
slows down unrelated work on both cores, not just the calling task.

Delay between polls instead, starting at CONFIG_SD_READY_POLL_PERIOD_START_US
(100 us) and doubling. Both the delay and the configured start period are
capped at one FreeRTOS tick period, where vTaskDelay() already yields and one
command per tick is not a storm. A typical wait now costs a handful of
commands instead of hundreds.

Applies to sdmmc_wait_for_idle(), sdmmc_init_sd_wait_data_ready() and
read_tuning_block().

Closes https://github.com/espressif/esp-idf/issues/19034
2026-09-07 19:40:19 +02:00
Roland Dobai
9d75e0b147 Merge branch 'fix/serial_port_target_mismatch_v6.0' into 'release/v6.0'
fix(tools): Detect serial port matching the project target (v6.0)

See merge request espressif/esp-idf!52523
2026-09-07 16:11:03 +02:00
renpeiying
2b772579dc docs: add CN translation 2026-09-07 14:48:30 +02:00
Vojtech Piroch
6e0fc71aed fix(tools): Detect serial port matching the project target
Auto-detect used to pick the first Espressif device, even when it did
not match IDF_TARGET. With several boards attached, flash/monitor could
talk to the wrong chip.

Pass the project target into esptool so unmatched ports are skipped.
Resolve the port after ensure_build_directory() so the target is known.
For monitor on an unconfigured project, probe the connected chip and
pass it directly to idf_monitor without configuring the project.
2026-09-07 14:48:25 +02:00
cjin
bed7b04631 fix(ble): fix ble retention dependency order 2026-09-07 20:20:03 +08:00
Xu Si Yu
d3af5f1cfb feat(openthread): support multipan feature for host device 2026-09-07 20:17:12 +08:00
Rahul Tank
0ac84fe172 Merge branch 'bugfix/fix_ble_pair_attack_v6.0' into 'release/v6.0'
fix(nimble): Fix for BLERP attack (v6.0)

See merge request espressif/esp-idf!52351
2026-09-07 17:34:09 +05:30
Nachiket Kukade
6920b69487 Merge branch 'fix/eloop-wifi-deinit-leak-delay_v6.0' into 'release/v6.0'
test(wifi): wait for the idle task after esp_wifi_deinit in Wi-Fi UTs (Backport v6.0)

See merge request espressif/esp-idf!52512
2026-09-07 20:02:11 +08:00
Sarvesh Bodakhe
ecab81cf41 test(wifi): wait for the idle task after esp_wifi_deinit in Wi-Fi UTs
The Wi-Fi task deletes itself when esp_wifi_deinit() is called, and FreeRTOS
only reclaims its TCB and stack from the idle task afterwards. Test apps that
read the heap right after deinit therefore see that memory as still allocated
and report a leak, most visibly as the eloop unit tests failing on ESP32.

Wait for the idle task at every point where a test deinitialises Wi-Fi
before a leak check, replacing the single-tick delays that only matched what
esp_wifi_deinit() already waits for internally.

(cherry picked from commit bff264775a)
2026-09-07 15:46:12 +05:30
Rahul Tank
454b29f257 fix(nimble): Fix for BLERP attack 2026-09-07 12:29:32 +05:30
Rahul Tank
6c8da6754b Merge branch 'bugfix/fix_null_proc_dereference_v6.0' into 'release/v6.0'
fix(nimble): Avoid NULL proc dereference in GATT client procedures (v6.0)

See merge request espressif/esp-idf!52218
2026-09-07 11:01:34 +05:30
Laukik Hase
ab5b29e52c Merge branch 'fix/tee_reentrant_svc_and_non_det_sign_v6.0' into 'release/v6.0'
feat(esp_tee): Backports to v6.0

See merge request espressif/esp-idf!52290
2026-09-07 10:10:44 +05:30
Jin Cheng
d05b70bde0 fix(bt/controller): update ESP32 libbtdm_app.a to fix missing QoS_Setup_Cmpl event 2026-09-07 12:21:57 +08:00
Mahavir Jain
62d03c7761 Merge branch 'fix/hmac-ds-reset-corrupts-concurrent-mpi_v6.0' into 'release/v6.0'
fix(esp_security): don't reset DS peripheral in esp_hmac_calculate (v6.0)

See merge request espressif/esp-idf!52200
2026-09-07 08:04:00 +05:30
morris
b361252a4b Merge branch 'fix/cpp-linkage-mcpwm-example_v6.0' into 'release/v6.0'
fix(examples): add C++ linkage guards to MCPWM FOC SVPWM headers (v6.0)

See merge request espressif/esp-idf!52478
2026-09-07 10:07:22 +08:00
Mahavir Jain
ad299bbd82 Merge branch 'contrib/github_pr_18922_v6.0' into 'release/v6.0'
fix(esp_https_server): restore use_secure_element initializer in HTTPD_SSL_CONFIG_DEFAULT() (GitHub PR) (v6.0)

See merge request espressif/esp-idf!52207
2026-09-06 20:37:52 +05:30
Ashish Sharma
7cf8c1fe05 fix(esp_security): don't reset DS peripheral in esp_hmac_calculate
esp_hmac_calculate() enabled and reset the Digital Signature (DS)
peripheral, but HMAC has no dependency on DS (the dependency runs the
other way: a DS operation uses HMAC/SHA).

The DS peripheral drives the RSA (MPI) accelerator internally, so pulsing
the DS reset also resets the RSA datapath. This coupling exists on every
target that has the DS peripheral: the MPI reset routine itself clears the
DS reset "otherwise RSA is held in reset".

esp_hmac_calculate() holds only the HMAC and SHA/AES locks, not the MPI
lock, so it can corrupt a concurrent RSA/MPI operation. On multi-core
targets (e.g. ESP32-P4, ESP32-S31, ESP32-S3) an HMAC on one core resets an
RSA op running on another core; on single-core targets (e.g. ESP32-C5) the
same corruption happens when an HMAC preempts an in-flight RSA op. The
result is a wrong RSA result or a crash in the computation.

Remove the DS peripheral enable/reset from the HMAC path. SHA, which HMAC
depends on, is enabled independently, so the HMAC output is unchanged.
This also drops a few redundant register writes.
2026-09-06 20:14:29 +05:30
Mahavir Jain
307018d1ab Merge branch 'fix/esp_http_server-ws-frame-header-strictness_v6.0' into 'release/v6.0'
Fix(esp http server): ws frame header strictness (v6.0)

See merge request espressif/esp-idf!51857
2026-09-06 20:12:59 +05:30
Rahul Tank
abd362c657 fix(nimble): Avoid NULL proc dereference in GATT client procedures 2026-09-06 09:44:45 +05:30
Wang Meng Yang
8d9613b259 Merge branch 'bugfix/delete_unused_avrcp_rcb_v6.0' into 'release/v6.0'
fix(bt/bluedroid): delete the unused AVRCP acceptor RCB when A2DP open fails (v6.0)

See merge request espressif/esp-idf!52413
2026-09-06 12:08:39 +08:00
Wang Meng Yang
b1f6f992d2 Merge branch 'bugfix/qos_div_zero_v6.0' into 'release/v6.0'
fix(bt): update ESP32 libbtdm_app.a to fix several issues (v6.0)

See merge request espressif/esp-idf!52053
2026-09-06 11:32:52 +08:00
Wang Meng Yang
70d938445d Merge branch 'fix/aireview_pbap_v6.0' into 'release/v6.0'
fix(bt_pbap): Fix some bugs in bluedroid PBAP (v6.0)

See merge request espressif/esp-idf!51728
2026-09-06 11:26:03 +08:00
Wang Meng Yang
d5f9b93781 Merge branch 'change/refactor_hidh_datapath_v6.0' into 'release/v6.0'
Change/refactor hidh datapath[backport v6.0]

See merge request espressif/esp-idf!51279
2026-09-06 11:24:27 +08:00
Wang Meng Yang
a9ad41e428 Merge branch 'bugfix/a2dp_api_init_check_v6.0' into 'release/v6.0'
fix(bt): Fix compatibility with A2DP API legacy usage methods (v6.0)

See merge request espressif/esp-idf!51328
2026-09-06 11:20:08 +08:00
Wang Meng Yang
06a411f81a Merge branch 'fix/aireview_obex_v6.0' into 'release/v6.0'
fix(bt_obex): fix some bugs in bluedroid obex (v6.0)

See merge request espressif/esp-idf!52005
2026-09-06 11:18:52 +08:00
Wang Meng Yang
2cf3ad6d31 Merge branch 'fix/bt_memory_v6.0' into 'release/v6.0'
fix(bt_memory): Reduce memory usage in transfer (v6.0)

See merge request espressif/esp-idf!52276
2026-09-06 11:16:58 +08:00
Erhan Kurubas
cb2af95a4f change(app_trace): remove GPIO range from UART trace pin config 2026-09-05 03:15:58 +08:00
Erhan Kurubas
da26095bd1 fix(esp_trace): send trace data over usb-serial-jtag reliably 2026-09-05 03:15:58 +08:00
Erhan Kurubas
f40df59461 change(esp_trace): increase usj tx buffer size in both examples 2026-09-05 03:15:58 +08:00
Erhan Kurubas
8dfeaa6488 test(sysview_tracing): validate TRACE_STOP per core 2026-09-05 03:15:58 +08:00
Erhan Kurubas
b6032a0b1f fix(esp_system): break into the debugger only on the first panic entry 2026-09-05 03:15:58 +08:00