Commit Graph
53312 Commits
Author SHA1 Message Date
harshal.patil d8b7df4aa2 fix(examples/partitions_ota): use ECDSA Secure Boot V2 scheme for partitions_ota on C2/C61
ESP32-C2 and ESP32-C61 have no RSA based Secure Boot V2 support
so the virt_sb_v2_and_fe configs cannot use the default RSA signing key.
Add target-specific sdkconfig overlays that switch to the ECDSA P-256 key;
on ESP32-C61 the ECDSA scheme must additionally be force-enabled
SECURE_BOOT_V2_ECDSA_INSECURE).
2026-06-10 15:30:06 +05:30
Adam Múdry f2a583a260 fix(sdmmc): Handle nonsensical max freq correctly
Closes https://github.com/espressif/esp-idf/issues/15250
2026-06-10 11:48:51 +02:00
gadget-man aad525da10 Fix bug in logging for VFS start_select function
Resolves issue identified in https://github.com/espressif/esp-idf/issues/18398 by seperating logging when `vfs == NULL`

Closes https://github.com/espressif/esp-idf/pull/18400
Closes https://github.com/espressif/esp-idf/issues/18398
2026-06-10 11:26:20 +02:00
Zhou Xiao 226a0483b1 change(ble): [AUTO_MR] Update lib_esp32c6 to a6519790 2026-06-10 16:46:35 +08:00
Zhou Xiao a43358587c change(ble): [AUTO_MR] Update lib_esp32c5 to a6519790 2026-06-10 16:46:35 +08:00
Zhou Xiao 8a744e8e93 change(ble): [AUTO_MR] Update lib_esp32h2 to a6519790 2026-06-10 16:46:35 +08:00
Wang Meng Yang b6713bf40f Merge branch 'bugfix/idf_ci_hfp' into 'master'
fix: Fix the incorrect connection of the same-name devices in the HFP example

Closes IDFCI-12151

See merge request espressif/esp-idf!49442
2026-06-10 16:19:09 +08:00
Jiang Jiang Jian f6eceb316a Merge branch 'feat/support_esp32s31_dfu' into 'master'
Feat/support esp32s31 dfu

See merge request espressif/esp-idf!49329
2026-06-10 15:48:00 +08:00
Liu Linyan 15f3df1ea7 docs(ble_audio): Add documents for introducing ISO & LE Audio architectures 2026-06-10 15:41:00 +08:00
Mahavir Jain 8da7627526 change(bootloader): honor SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS during first boot
Previously the bootloader unconditionally revoked unused secure boot key
digest slots while permanently enabling secure boot on the first boot,
ignoring CONFIG_SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS. Now the config is
honored on this path too: when set, the unused digest slots are left
un-revoked. This is safe as long as the debug and download interfaces are
disabled.

Update the Kconfig help and the Secure Boot v2 guide (en and zh_CN)
accordingly.
2026-06-10 13:09:10 +05:30
Mahavir Jain fa28dd8c12 docs(security): fix typos in security guides
- security.rst: remove duplicated word in OTA encryption note
- tee.rst: remove duplicated word in memory allocation note
- flash-encryption.rst: drop redundant phrase and fix subject-verb agreement
2026-06-10 13:09:09 +05:30
Chen Chen 8e2c18f77c fix(i2s/es8311): pass MCLK multiple to codec sample config
Pass EXAMPLE_MCLK_MULTIPLE through esp_codec_dev_sample_info_t so
esp_codec_dev_open() preserves the intended I2S MCLK multiple.

See issue #18696.

Closes https://github.com/espressif/esp-idf/issues/18696
Closes https://github.com/espressif/esp-idf/pull/18697
2026-06-10 15:35:38 +08:00
Angus Gratton 443f1bb791 esp_psram: Downgrade "not found" to a warning if "ignore not found" set.
This avoids ~5 errors being logged during boot if the board
has no PSRAM but is configured to boot anyway.

Closes https://github.com/espressif/esp-idf/pull/18705

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2026-06-10 15:15:47 +08:00
JiangGuangMingandCursor 0f4bf3e097 fix(sleep): disable usb wakeup through generic API
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 15:14:37 +08:00
JiangGuangMingandCursor ec27869a89 fix(usb): use capability macros for wakeup example rule
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 15:14:37 +08:00
Jiang Guang Ming d65b467108 fix(usb): address usb wakeup review comments 2026-06-10 15:14:37 +08:00
JiangGuangMing 348c4a4f19 feat(docs): update docs for usb wakeup from light sleep example 2026-06-10 15:14:37 +08:00
JiangGuangMing 1c9c394197 feat(usb): add usb wakeup from light sleep example 2026-06-10 15:14:33 +08:00
Chen Jichang 8319196c64 fix(rgb_lcd): fix gdma link switch not take effect 2026-06-10 15:13:14 +08:00
Gao Xu 6d14e5867d Merge branch 'fix/adc_monitor_error_on_ch8_9_on_s3' into 'master'
Fix ADC Continuous Monitor Callback Failure for ADC1 Channels 8/9 on ESP32-S3

Closes IDFGH-16674

See merge request espressif/esp-idf!49373
2026-06-10 15:06:48 +08:00
Mahavir Jain b9c8a13326 Merge branch 'fix/esp_tee_bbp' into 'master'
fix(esp_tee): Harden TEE secure services against REE manipulation

See merge request espressif/esp-idf!48710
2026-06-10 12:35:47 +05:30
Marius Vikhammer 0577a6bf87 fix(ulp): fix LP core interrupt vector entry for LP PDMA on esp32s31 2026-06-10 15:03:57 +08:00
wanckl 875b7ab7c0 feat(driver_spi): slave driver support config different tx/rx length 2026-06-10 14:41:13 +08:00
Laukik Hase c9f6efb976 fix(esp_tee): Harden the TEE secure services against REE manipulation
- `bootloader_flash_execute_command_common`: whitelist the flash command
   opcodes the REE actually uses; reject the rest
- `spi_flash_hal_* services`: a forged `host->driver` could hijack TEE
   control flow since the HAL dispatches through it, so swap
   `host->driver` to a TEE-rodata vtable around each HAL call
- Deny partition table and bootloader writes by default and permit
  bootloader writes only when explicitly enabled via
  `CONFIG_SPI_FLASH_DANGEROUS_WRITE_ALLOWED` option
- Protect the TEE-assigned interrupt pin configuration against REE
- Validate nested DS context pointers in start/finish_sign and bound
  the result copy to the SoC max signature size
- Fix the stack usage in service dispatcher argument parsing
2026-06-10 12:02:34 +05:30
He Binglin 02c225b604 Merge branch 'feat/esp_idf_h21_power_optimization' into 'master'
Feat/esp idf h21 power optimization

Closes PM-778 and PM-678

See merge request espressif/esp-idf!49223
2026-06-10 14:18:52 +08:00
Espressif BOT cdff63e838 change(mbedtls/crt_bundle): Update esp_cmn_crt_bundle certificates 2026-06-10 10:10:43 +05:30
Island 909f059277 Merge branch 'fix/gattc-multi-app-notif-warning' into 'master'
fix(bt): Suppress gattc drop-notif warning for unregistered gatt_if

Closes WIFIBUG-1822

See merge request espressif/esp-idf!49389
2026-06-10 11:58:01 +08:00
Island e40c3c4882 Merge branch 'fix/gattc_prep_write_preserve_att_error_status' into 'master'
fix(ble/bluedroid): preserve ATT error on prepare write completion

Closes BLERP-2866

See merge request espressif/esp-idf!49264
2026-06-10 11:57:58 +08:00
yinqingzhao 63b92cf17e fix(wifi): fix scheduling issue when tasks have the same priority as the Wi-Fi task 2026-06-10 11:48:26 +08:00
Marius Vikhammer f7344e0a46 refactor(panic): route panic handlers through esp_sys_event
Let panic-related components register their hooks through
esp_sys_event so panic sequencing stays extensible without
hardcoded esp_system dependencies.
2026-06-10 11:21:47 +08:00
Marius Vikhammer 42bb45db22 fix(ulp): fixes potential race-condition for lp-timer wakeup with lp-core
Reconfigure wakeup time before enabling the wakeup source to avoid
a wakeup from potentially stale values.

Closes https://github.com/espressif/esp-idf/issues/17009
2026-06-10 11:10:01 +08:00
Marius Vikhammer ecb4123afd Merge branch 'bugfix/int_wdt_default_psram' into 'master'
fix(iwdt): increased default timeout if using PSRAM

Closes IDFGH-17392

See merge request espressif/esp-idf!49425
2026-06-10 10:20:20 +08:00
Jin Cheng 149743a8d5 fix(bt/bluedroid): fixed CTKD link key authentication downgrade in SC-Only mode 2026-06-10 08:43:42 +08:00
Aditya Patwardhan ebc4806085 Merge branch 'fix/disable_secure_boot_v2_ecdsa' into 'master'
Fix/disable secure boot v2 ecdsa

See merge request espressif/esp-idf!48834
2026-06-09 23:46:11 +05:30
Aditya Patwardhan 5f8e7058a5 Merge branch 'fix/rsa_ds_driver_constant_time' into 'master'
Fix/rsa ds driver constant time

See merge request espressif/esp-idf!48678
2026-06-09 22:25:23 +05:30
Jiang Jiang Jian f17a63bae9 Merge branch 'feat/optimizations_related_to_keep_alive' into 'master'
feat(wifi): optimizations ralated to keep alive

Closes WIFIBUG-1553

See merge request espressif/esp-idf!46641
2026-06-09 20:47:34 +08:00
Harshal Patil a5591852c5 Merge branch 'fix/remove_nonexistent_crypto_registers_c61' into 'master'
Remove non-existent crypto registers (ESP32-C61)

See merge request espressif/esp-idf!49241
2026-06-09 18:16:01 +05:30
yangfeng b327c9cc8f fix: Fix the incorrect connection of the same-name devices in the HFP example 2026-06-09 19:32:50 +08:00
Aditya Patwardhan 67e10e2b56 change(secure_boot): mark ECDSA based Secure Boot V2 as insecure on affected SoCs
ECDSA based Secure Boot V2 is not functional for certain input vectors on
ESP32-C5/C61/H2/P4 and on the preview targets ESP32-H4/H21. RSA based Secure
Boot V2 is the recommended scheme where the SoC supports it. This issue will be
fixed in a future hardware ECO revision; more details will be shared through the
hardware errata document.

A new hidden Kconfig option SECURE_BOOT_V2_ECDSA_INSECURE marks the affected
mass-production SoCs (ESP32-C5/C61/H2/P4). On these SoCs, when hardware Secure
Boot V2 is enabled, the ECDSA (V2) signing scheme is no longer offered by
default; it must be turned on explicitly via SECURE_BOOT_V2_FORCE_ENABLE_ECDSA
under "Allow potentially insecure options" (CONFIG_SECURE_BOOT_INSECURE). App
signing without hardware Secure Boot is not affected. Note that ESP32-C61 has no
RSA based Secure Boot V2, so it has no Secure Boot scheme enabled by default.

The preview targets ESP32-H4 and ESP32-H21 mark ECDSA Secure Boot V2 as not
supported in their SoC capabilities instead of using the option above. As
ESP32-H4 has no other Secure Boot V2 scheme, Secure Boot is disabled entirely on
it; ESP32-H21 retains RSA based Secure Boot V2.

The security documentation keeps the ECDSA Secure Boot V2 content visible and
adds a warning describing the limitation (including that ECDSA Secure Boot V2 on
ESP32-C61 is not recommended for production). CI apps that exercise ECDSA Secure
Boot V2 on the affected SoCs set CONFIG_SECURE_BOOT_V2_FORCE_ENABLE_ECDSA
accordingly.
2026-06-09 16:55:57 +05:30
Rahul Tank f2a12351e1 fix(nimble): Deinit NimBLE stop event in host task 2026-06-09 16:30:24 +05:30
Tomas Rezucha 162c082111 Merge branch 'feat/usb_host_console' into 'master'
Extend USB Host Library example with interactive console

Closes IDF-15521

See merge request espressif/esp-idf!47689
2026-06-09 12:49:20 +02:00
Tomas Rezucha 3bb1d62b32 feat(usb/host): Extend USB Host Library example with interactive console 2026-06-09 12:27:00 +02:00
Jin Cheng c8cd8f4f30 fix(bt/bluedroid): added buffer length check for L2CAP related functions 2026-06-09 17:57:46 +08:00
Jin Cheng 06a53ca900 fix(bt/bluedroid): added buffer length check for OBEX APIs 2026-06-09 17:57:08 +08:00
Jin Cheng 5a3d291bef fix(bt/bluedroid): added buffer length check for HID host data indication 2026-06-09 17:55:35 +08:00
Marius Vikhammer e3570108ac fix(iwdt): increased default timeout if using PSRAM
Default timeout for interrupt WDT was increased by default
on ESP32, due to some heap integrity check APIs taking a long
time on large PSRAMs and causing timeouts.

But this adjustment was only done for ESP32, not later chips,
even though they may experience the same issue.

Adjusted to have the same behavior on all chips with PSRAM
enabled, making it consistant with the docs.

Closes https://github.com/espressif/esp-idf/issues/18360
2026-06-09 17:18:58 +08:00
Jin Cheng d6a49aedef fix(bt/bluedroid): added validation for all SMP BR opcode lengths in smp_br_data_received 2026-06-09 17:11:08 +08:00
Mahavir Jain 05c70c1fd4 Merge branch 'fix/ecdsa_ecc_hw_input_validation' into 'master'
Validate ECDSA signature range and harden ECC memory power-down

See merge request espressif/esp-idf!48958
2026-06-09 14:40:24 +05:30
Sudeep Mohanty 40d23b124b Merge branch 'fix/buildv2_bootloader_extra_components' into 'master'
fix(cmakev2/bootloader): link components from EXTRA_COMPONENT_DIRS

See merge request espressif/esp-idf!49367
2026-06-09 10:18:20 +02:00
yinqingzhao 42744902c6 feat(wifi): optimizations ralated to keep alive 2026-06-09 16:16:15 +08:00