Commit Graph

8359 Commits

Author SHA1 Message Date
Jiang Jiang Jian
e61a30edce Merge branch 'backport/support-esp32s31-dfu-v6.1' into 'release/v6.1'
Feat/support esp32s31 dfu (v6.1)

See merge request espressif/esp-idf!50863
2026-07-18 08:07:22 +08:00
Jiang Jiang Jian
0f579637ed Merge branch 'fix/fix_esp_tee_iv_length_check_v6.1' into 'release/v6.1'
feat(esp_tee): ESP-TEE Security Audit fixes (v6.1)

See merge request espressif/esp-idf!50850
2026-07-18 01:31:29 +08:00
Jiang Jiang Jian
88b053119a Merge branch 'doc/bootloader-anti-rollback-fix_v6.1' into 'release/v6.1'
fix(docs): Update bootloader anti-rollback documentation (v6.1)

See merge request espressif/esp-idf!50837
2026-07-17 23:34:48 +08:00
Laukik Hase
0809185c85 feat(esp_tee): Restrict REE access to TEE-owned secure storage keys 2026-07-17 18:14:38 +05:30
Jiang Jiang Jian
e56f3d4c20 Merge branch 'fix/jpeg_enc_encrypt_v6.1' into 'release/v6.1'
fix(jpeg): Jpeg can encode and decode in encryption situation (backport v6.1)

See merge request espressif/esp-idf!50662
2026-07-17 15:57:07 +08:00
Jiang Guang Ming
5c3306ac04 fix(dfu): retry dfu-util flash on macOS detach failure
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 11:09:20 +08:00
JiangGuangMing
729241db7f docs: update docs with esp32s31 dfu feature 2026-07-17 11:09:20 +08:00
Jiang Jiang Jian
9adc0ecf8e Merge branch 'backport/spi_slave_add_independent_tx_rx_length-v6.1' into 'release/v6.1'
feat(driver_spi): slave driver support config different tx/rx length (v6.1)

See merge request espressif/esp-idf!49960
2026-07-17 10:54:57 +08:00
Jiang Jiang Jian
f8e6e94dca Merge branch 'feat/usb_dfu_console_soc_caps_backport_v6.1' into 'release/v6.1'
feat(soc): add USB DFU and OTG console caps (backport v6.1)

See merge request espressif/esp-idf!49580
2026-07-17 10:30:26 +08:00
Jiang Jiang Jian
947e534927 Merge branch 'fix/mmap_cache_flash_wr_v6.1' into 'release/v6.1'
fix(mmap): fixed mmap read data wrong when flash being erased/written and cache not disabled (v6.1)

See merge request espressif/esp-idf!50117
2026-07-17 10:30:14 +08:00
Jiang Jiang Jian
adc1f663b4 Merge branch 'feat/add_lmp_dbg_vendor_v6.1' into 'release/v6.1'
feat(bt/controller): Added LMP debug vendor HCI and fixed some bugs ts on ESP32-S31 [backport v6.1]

See merge request espressif/esp-idf!50704
2026-07-16 18:56:58 +08:00
Konstantin Kondrashov
6b5a248638 fix(docs): Update bootloader anti-rollback documentation 2026-07-16 13:39:14 +03:00
Aditya Patwardhan
9dc17f98b0 Merge branch 'backport/44987_v6.1' into 'release/v6.1'
feat(esp-tls): Added a PSA driver for Secure Element (backport v6.1)

See merge request espressif/esp-idf!50334
2026-07-16 15:37:49 +05:30
liqigan
1004beff62 feat(bt/controller): Added LMP debug vendor HCI and fixed some bugs ts on ESP32-S31 2026-07-16 14:30:38 +08:00
igor.masar
f7e24571ea feat(soc): add USB DFU and OTG console caps
Add USB DFU and OTG console SOC capability flags for esp32s2, esp32s3, and esp32p4.

Use these caps in Kconfig, documentation conditionals, and idf.py DFU actions so USB support
is derived from SOC capabilities instead of hardcoded target names.
2026-07-16 12:16:11 +08:00
Jiang Jiang Jian
cc979db24b Merge branch 'backport/support_two_MAC_esp32s31_v6.1' into 'release/v6.1'
fix(esp32s31): restrict UNIVERSAL_MAC_ADDRESSES to Two (backport v6.1)

See merge request espressif/esp-idf!50571
2026-07-16 12:07:20 +08:00
Jiang Jiang Jian
301caa6d45 Merge branch 'docs/ulp_fsm_instruction_v6.1' into 'release/v6.1'
docs(ulp): clarify ULP FSM instruction cycle timing (v6.1)

See merge request espressif/esp-idf!50365
2026-07-16 10:48:39 +08:00
Xiao Xufeng
3e8389cc31 fix(mmap): fixed some API read wrong data via mmap when flash being erased/written while XIP on PSRAM
Before:

The cache won't be disabled when XIP on psram. But during flash
erasing/programming, read data will be courrupt.

When XIP in psram is enabled, the image is not mapped to the cache so
usually there will be no flash access. The only way to read from flash
is via the driver or use mmap. The driver has protection during erasing,
while th mmap region not.

Now:

Mmap APIs provide a flag to make mmap->unmap region mutually exclusive
to flash erase/programming when XIP from psram. SPI Flash write APIs
will benefit from this. When the flag is used, no concurrent access to
mapped region will happen while writing; otherwise the cache will be
disable to avoid data corruption.

Most ESP-IDF APIs calls mmap with this flag. As for users calling
mmap-like APIs directly, they can choose whether to enable this by a
flag.

Closes https://github.com/espressif/esp-idf/issues/14897
2026-07-15 18:57:08 +08:00
Aditya Patwardhan
3e6429e881 fix(esp-tls): Keep deprecated use_secure_element field for compatibility
Restore the use_secure_element field in esp_tls_cfg_t, esp_tls_cfg_server_t
and httpd_ssl_config_t, and esp_transport_ssl_use_secure_element(), as
deprecated no-ops so that existing code keeps compiling. Setting them now
fails at runtime with ESP_ERR_NOT_SUPPORTED, as the feature is accessed
via the esp_key_config_t interface. To be removed in the next major release.

No compile-time deprecation attribute on this release branch; the field and
function stay warning-free here and carry only documentation notes.
2026-07-15 15:34:17 +05:30
morris
f91e2baa41 feat(jpeg): simplify decoder example and add pytest coverage 2026-07-13 16:18:51 +08:00
C.S.M
e92e669dee fix(jpeg): JPEG can encode and decode in encryption situation 2026-07-13 15:00:31 +08:00
Jack
7ca1369ffc docs(esp_hw_support): fix IEEE 802.15.4 spelling and EUI-64 byte-range notation
Correct "802.154" to "802.15.4" and change the EUI-64 derivation notation
from base_mac[0:3]/base_mac[3:6] to the inclusive base_mac[0:2]/base_mac[3:5]
in the esp32h2/esp32h21/esp32h4 Kconfig.mac help text and the EN/zh_CN
misc_system_api docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 811c64c17c)
2026-07-09 17:44:22 +08:00
Jack
b5cd9ce7fa docs(esp_hw_support): document one-universal-MAC scheme and esp32s31 Four-option constraint
Add help text to the esp32h2/esp32h21/esp32h4 Kconfig.mac explaining
that these chips only consume one universally administered MAC address:
the IEEE 802.154 EUI-64 is derived from the base MAC and MAC_EXT, and
Bluetooth reuses the base MAC as-is (no BT offset, since there is no
Wi-Fi).

Add a matching 1-MAC derivation table and note to misc_system_api.rst
(EN and zh_CN) under a new `.. only:: esp32h2 or esp32h21 or esp32h4`
block, and exclude these targets from the generic 4/2 table.

Add an esp32s31-only note stating that the "Four" option may only be
used with a customer-provided custom base MAC range, since ESP32-S31
only provides two universally administered MAC addresses in eFuse.

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit e3bc260178)
2026-07-09 17:44:22 +08:00
wuzhenghui
38421b8db7 change(heap): reserve DMA pool with low priority MALLOC_CAP_DEFAULT caps 2026-07-09 17:30:46 +08:00
nilesh.kale
6cf7191e1d feat: update docs for ESP32H4 security chapters 2026-07-06 15:08:02 +05:30
wanckl
072f62d70d feat(driver_spi): slave driver support config different tx/rx length 2026-07-06 11:58:20 +08:00
Marius Vikhammer
65f107e14b docs(ulp): clarify ULP FSM instruction cycle timing
Closes https://github.com/espressif/esp-idf/issues/4088
2026-07-06 11:03:26 +08:00
Mahavir Jain
0362f806e1 Merge branch 'feat/psa_its_custom_backend_v6.1' into 'release/v6.1'
Support custom storage backend for persistent PSA keys (v6.1)

See merge request espressif/esp-idf!49151
2026-07-03 11:34:23 +05:30
morris
fdb5e07768 Merge branch 'refactor/driver_dac_common_v6.1' into 'release/v6.1'
refactor(dac): improve the DAC driver (v6.1)

See merge request espressif/esp-idf!50237
2026-07-03 11:16:57 +08:00
harshal.patil
6634a0b620 feat(mbedtls): Support custom storage backend for persistent PSA keys 2026-07-02 16:00:23 +05:30
Mahavir Jain
ffaf55cd6b Merge branch 'fix/align_sw_psa_drivers_and_hw_esp_psa_drivers_v6.1' into 'release/v6.1'
Align s/w and h/w PSA drivers (v6.1)

See merge request espressif/esp-idf!49704
2026-07-02 15:22:15 +05:30
Aditya Patwardhan
72b2e4f4fd fix(esp-tls): address MR review comments for SE PSA driver
- esp_tls_mbedtls: require cert when PSA-backed server/client key is set
- esp_tls_mbedtls: drop redundant pk_init/x509_crt_init (calloc handles it)
- psa SE driver: copy callbacks/opaque_key by value (no lifetime coupling)
- psa SE driver: replace atomic CAS with simple null check on register
- psa SE driver: use sig_len from sign callback with bounds validation
- psa SE driver: validate pubkey_len returned by export_pubkey callback
- psa SE driver: check hash sub-alg in RSA PKCS1V15 branch of validate_request
- psa SE driver: align secure_element_register_callbacks doc with value-copy impl
- esp_https_server: initialize server_key in HTTPD_SSL_CONFIG_DEFAULT
- mbedtls: move SECURE_ELEMENT_DRIVER_ENABLED to esp_config.h for parity
  with ESP_ECDSA_DRIVER_ENABLED; drop target_compile_definitions
- docs: fix esp_tls_cfg_t -> esp_http_client_config_t cross-reference
- docs: check psa_import_key() status in ESP-TLS PSA example
- hints/error_output: point at CONFIG_MBEDTLS_SECURE_ELEMENT_DRIVER_ENABLED

(cherry picked from commit 08b567ef3b)
2026-07-02 11:41:49 +05:30
Aditya Patwardhan
b6947348c6 docs(esp-tls): Update documentation for unified key interface and SE driver
Update esp_tls, esp_http_client docs and migration guide to reflect
the new esp_key_config_t interface and secure element PSA driver.

(cherry picked from commit 37808e2386)
2026-07-02 11:41:49 +05:30
Aditya Patwardhan
a35e056816 feat(mbedtls): Add PSA Crypto driver for external secure elements
Add generic secure element PSA driver with runtime callback registration.
Consolidate Kconfig into single MBEDTLS_SECURE_ELEMENT_DRIVER_ENABLED option.

Closes https://github.com/espressif/esp-idf/issues/18388

(cherry picked from commit 1c20f525b4)
2026-07-02 11:41:48 +05:30
Hu Rui
9c73af2261 refactor(dac): improve the DAC driver 2026-07-02 11:20:37 +08:00
Mahavir Jain
c9bdb79314 Merge branch 'docs/add_ws_post_handshake_cb_doc_v6.1' into 'release/v6.1'
docs(esp_http_server): adds doc and migration entry for ws server post handshake cb (v6.1)

See merge request espressif/esp-idf!49336
2026-07-01 20:47:10 +05:30
renpeiying
b75d565c35 udpate CN trans for hmac 2026-07-01 17:41:48 +08:00
Ashish Sharma
33cb603e02 fix(mbedtls/port): add additional hardening for PSA drivers 2026-07-01 17:41:48 +08:00
morris
9583d6df06 Merge branch 'feat/async_color_converter_v6.1' into 'release/v6.1'
feat(esp_driver_dma): add async color convert driver (v6.1)

See merge request espressif/esp-idf!49747
2026-07-01 10:22:42 +08:00
Jiang Jiang Jian
cf515d20d7 Merge branch 'feat/support_usb_wakeup_v6.1' into 'release/v6.1'
feat: support usb as wakeup source from light sleep (v6.1)

See merge request espressif/esp-idf!49497
2026-06-30 19:40:33 +08:00
Jiang Jiang Jian
554e88416f Merge branch 'feat/mcp_server_accept_project_dir_v6.1' into 'release/v6.1'
feat(tools): mcp-server accepts project_dir from chat (v6.1)

See merge request espressif/esp-idf!50032
2026-06-30 14:20:47 +08:00
Jiang Jiang Jian
090b0660c3 Merge branch 'docs/add_semihosting_chapter_v6.1' into 'release/v6.1'
docs(jtag-debugging): add semihosting chapter (v6.1)

See merge request espressif/esp-idf!49887
2026-06-30 14:17:56 +08:00
Jiang Jiang Jian
0cbf614bda Merge branch 'idf/ble_audio_docs_misc_update_v6.1' into 'release/v6.1'
docs(ble_audio): Adopt SIG product name and add LE Audio API guide entry (v6.1)

See merge request espressif/esp-idf!49774
2026-06-30 14:15:05 +08:00
Mahavir Jain
10f9230dfb Merge branch 'fix/sb_digest_revocation_workflow_v6.1' into 'release/v6.1'
change(bootloader): honor SECURE_BOOT_ALLOW_UNUSED_DIGEST_SLOTS during first boot (v6.1)

See merge request espressif/esp-idf!49712
2026-06-30 10:02:46 +05:30
morris
caf09a3c97 feat(dma2d): support RGB24 and BGR24 scramble conversion
Add async color convert coverage for direct RGB24/BGR24 byte-order swaps
and
thread both TX and RX CSC state through DMA2D transactions for future
extensibility.
2026-06-30 11:51:40 +08:00
morris
ac5fcd73ef docs(dma2d): added async color convert programming guide 2026-06-30 11:51:40 +08:00
morris
1660ff9993 Merge branch 'fix/twaifd_assert_fail_v6.1' into 'release/v6.1'
fix(driver_twai): fix driver assert fail when send frame (v6.1)

See merge request espressif/esp-idf!49939
2026-06-30 11:25:35 +08:00
morris
19249ab573 Merge branch 'refactor/jpeg_encoder_example_v6.1' into 'release/v6.1'
feat(jpeg): simplify encode example and add pytest coverage (v6.1)

See merge request espressif/esp-idf!50139
2026-06-30 11:17:08 +08:00
morris
c2db07dcaa feat(jpeg): simplify encode example and add pytest coverage
Embed a 720p BGR raw asset and stream the encoded JPEG over UART so
this example no longer depends on SD card setup.

Add pytest coverage that reconstructs the JPEG from base64 output and
compares it against a checked-in golden image.
2026-06-29 17:26:08 +08:00
JiangGuangMing
b7ce090780 feat(docs): update docs for usb wakeup from light sleep example
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 16:08:35 +08:00