Commit Graph
53762 Commits
Author SHA1 Message Date
Marius Vikhammer 9f126baed8 feat(linux): enable more examples for linux target 2026-07-01 15:10:22 +08:00
Mahavir Jain 1c5aa1c5cb Merge branch 'fix/aes_dma_psram_encrypted_mem_s31' into 'master'
fix(mbedtls/aes): Fix AES-DMA over encrypted PSRAM on ESP32-S31

See merge request espressif/esp-idf!49935
2026-07-01 12:16:13 +05:30
wuzhenghui 97a91dea9d feat(soc): update PMU & PAU register description 2026-07-01 14:41:01 +08:00
Island 3011b74b5f Merge branch 'idf/ble_iso_sec_fixes' into 'master'
Idf/ble iso sec fixes

Closes SEC-1067 and SEC-1184

See merge request espressif/esp-idf!50175
2026-07-01 14:08:35 +08:00
Island b295d1f227 Merge branch 'fix/fix_ble_rtc_register_issue_after_reset' into 'master'
fix(ble): fix ble rtc reset issues on esp32-h4 and esp32-s31

Closes BLERP-2934, BLERP-2935, and BLERP-2937

See merge request espressif/esp-idf!50057
2026-07-01 14:04:41 +08:00
Hu Rui 03cf5bb45a Merge branch 'refactor/driver_dac_common' into 'master'
refactor(dac): improve the DAC driver

See merge request espressif/esp-idf!48212
2026-07-01 13:36:23 +08:00
harshal.patil e2c59acc52 test(examples/partitions_ota): handle RSA-less Secure Boot V2 on C2/C61
ESP32-C2 and ESP32-C61 have no RSA based Secure Boot V2 support, so the
CI configs that pin the RSA signing scheme and key fail the app signing
scheme/key check on these targets.

- flash_enc_wifi_2.data_partition_verification: add C2/C61 sdkconfig
  overlays that switch to the ECDSA P-256 signing scheme and key (no
  force-enable needed as Secure Boot V2 itself is not enabled here).
- on_update_no_sb_rsa: disable the build on targets without
  SOC_SECURE_BOOT_V2_RSA, mirroring simple_ota_example, since this
  config specifically exercises the RSA scheme.
2026-07-01 10:54:11 +05:30
Ashish Sharma 131e66a071 Merge branch 'contrib/github_pr_18734' into 'master'
Fix header value truncation detection in httpd_req_get_hdr_value_str (GitHub PR)

Closes IDFGH-17829

See merge request espressif/esp-idf!49833
2026-07-01 10:56:32 +08:00
Rahul Tank 24b90ba6de Merge branch 'contrib/github_pr_18761' into 'master'
fix(nimble): initialize return value in LED characteristic access cal… (GitHub PR)

Closes IDFGH-17862

See merge request espressif/esp-idf!50077
2026-07-01 08:01:40 +05:30
Benedek Brandschott b33745d104 fix(esp_http_server): report truncation when header value length matches buffer size
httpd_req_get_hdr_value_str() detected truncation with `val_size < full_size`, where full_size is the strlcpy() return value. strlcpy() returns strlen() of the source (the terminating null is not counted), so truncation actually occurs when strlen(src) >= val_size. At strlen(src) == val_size the value is copied as val_size - 1 chars + NUL (i.e. truncated) yet ESP_OK was returned, so the caller never learned the value was cut.

Use `val_size <= full_size` and correct the misleading comment about strlcpy()'s return value.

Same truncation-reporting class fixed for httpd_cookie_key_value in PR #16202; httpd_req_get_hdr_value_str was missed. No memory-safety impact: strlcpy() null-terminates if val_size > 0.
2026-07-01 10:20:19 +08:00
Jiang Jiang Jian 9d263e3725 Merge branch 'feat/nd6_static_neighbor_entries' into 'master'
feat(lwip): Add IPv6 static neighbor cache entry support

See merge request espressif/esp-idf!49961
2026-06-30 23:34:17 +08:00
sonika.rathi c76664ce66 ci: add esp-pylib dependency to check-tests-missing-config pre-commit hook 2026-06-30 16:41:46 +02:00
Sudeep Mohanty 8541991224 Merge branch 'fix/lp_spi_driver_and_tests' into 'master'
fix(ulp/lp_spi): fix stale data in driver

Closes IDF-11471, IDF-11472, and IDFCI-10465

See merge request espressif/esp-idf!48972
2026-06-30 15:50:26 +02:00
Sudeep Mohanty ddaa9699b3 Merge branch 'fix/lp_periph_init_fail_with_cpp' into 'master'
fix(ulp): make LP peripheral default config macros C++ compatible

Closes IDFGH-17404

See merge request espressif/esp-idf!49950
2026-06-30 15:36:38 +02:00
Mahavir Jain 195a88db1a Merge branch 'fix/panic_spiram_xip_irom_drom_alignment_no_gap' into 'master'
Handle absent IROM/DROM alignment gap in SPIRAM-XIP memprot tests

Closes IDFCI-5004, IDFCI-11739, and IDFCI-11738

See merge request espressif/esp-idf!50133
2026-06-30 18:16:52 +05:30
Mahavir Jain cb33ab16b3 Merge branch 'contrib/github_pr_18684' into 'master'
feat(httpd): avoid useless string copy by introducing httpd_req_get_url_query_str_ptr() (GitHub PR)

Closes IDFGH-17758

See merge request espressif/esp-idf!49682
2026-06-30 18:15:48 +05:30
Jiang Jiang Jian 9bd49630fc Merge branch 'bugfix/clear_ifx_tx_queue' into 'master'
bugfix(wifi): Clear Sta TX queue to prevent key 2 send failure

Closes WIFIBUG-745 and WIFIBUG-1597

See merge request espressif/esp-idf!40211
2026-06-30 19:47:15 +08:00
Fu Hanxi ae7898bb14 Merge branch 'fix/mspi_pre_commit_fix' into 'master'
fix(spi_flash): remove mspi_test xip_psram test with missing config to fix check_pre_commit job

See merge request espressif/esp-idf!50159
2026-06-30 12:58:48 +02:00
akshat f4708595e6 bugfix(wifi): Clear Sta TX queue to prevent key 2 send failure
Also, Ensure correct return values for key 2 and key 4.
2026-06-30 14:56:15 +05:30
Martin Vychodil 943602c0ac Merge branch 'bugfix/idf-15334-normalize-partition-table-cli' into 'master'
fix(partition_table): normalize CLI output with esp-pylib

Closes IDF-15334

See merge request espressif/esp-idf!49989
2026-06-30 17:10:52 +08:00
Martin Vychodil 7d515c1e2e Merge branch 'bugfix/idfci-12308-fatfs-bdl-test-stack-overflow' into 'master'
fix(fatfs): avoid stack overflow in BDL diskio partition test

Closes IDFCI-12308

See merge request espressif/esp-idf!49895
2026-06-30 16:58:56 +08:00
Jiang Jiang Jian 936083c626 Merge branch 'feat/pasn_verification' into 'master'
feat(nan): Add changes for nan pasn verification

See merge request espressif/esp-idf!49694
2026-06-30 16:58:13 +08:00
Martin Vychodil caf132aaf0 Merge branch 'bugfix/idfci-8839-remove-orphan-test-configs' into 'master'
fix(fatfs): re-enable fatfs and vfs psram/ccomp CI tests

Closes IDFCI-8839

See merge request espressif/esp-idf!49986
2026-06-30 16:55:51 +08:00
cjin 1c17dee316 fix(ble): fix ble timer reset issues on ESP32-H4 2026-06-30 16:30:14 +08:00
cjin 96cecd67e1 fix(ble): fix ble timer reset issues on ESP32-S31 2026-06-30 16:30:11 +08:00
Sudeep MohantyandCursor ae1386e891 test(ulp/lp_spi): improve test stability and add cleanup
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 10:21:56 +02:00
Sudeep MohantyandCursor a019532119 fix(ulp/lp_spi): fix driver bugs and add bus deinit API
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 10:21:34 +02:00
morris aa4532395a fix(esp_crc): clarify CRC helper usage documentation
Document the implicit bitwise inversion behavior in the CRC ROM wrappers
and add regression tests covering continuous-buffer examples.

Closes https://github.com/espressif/esp-idf/issues/18715
2026-06-30 15:37:06 +08:00
Nachiket Kukade 17ff376098 bugfix(nan): Fix hard/soft reset cases in NAN Pairing verification
- Update pairing complete API to record for peer
- Terminate NAN Datapaths using publish_id after receiving PASN M1
2026-06-30 12:58:44 +05:30
Sajia c18887b05c feat(nan): Add support for NAN Pairing Verification
- Add nira attr and verification for pasn auth frames
- Refine key clearing and pairing complete logic for pasn verify
- Add NIRA own-service resolution, cached NIK checks, and dynamic
  pairing IE construction for bootstrap vs verify paths.
- Replace NAN bootstrap events by private callbacks
2026-06-30 12:58:41 +05:30
Jiang Jiang Jian 8b8a2115e4 Merge branch 'bugfix/fix_tx_issues_introduced_by_keep_alive_opt' into 'master'
bugfix/fix tx issues introduced by keep alive opt

Closes WIFIBUG-1991, WIFIBUG-1999, and WIFIBUG-1994

See merge request espressif/esp-idf!50108
2026-06-30 15:16:07 +08:00
Harshal Patil 3bd70e2c34 Merge branch 'change/secure_boot_signing_key_type_check' into 'master'
Validate secure boot signing key type at configure time

See merge request espressif/esp-idf!49529
2026-06-30 12:31:42 +05:30
cjin 958c28c41d fix(ble): change min freq in ble power save 2026-06-30 15:01:34 +08:00
Laukik Hase f055d2a454 fix(esp_tee): Add additional input validation checks for TEE service calls 2026-06-30 12:14:34 +05:30
Linyan Liu c7b53c9a97 fix(ble_iso): Fix null dereference may happened during BIG/CIG creation 2026-06-30 14:38:09 +08:00
Konstantin Kondrashov 1d7bfe4c3f Merge branch 'fix/esp_image_format' into 'master'
fix(esp_image_format): Fix some memory-safety issues

Closes IDF-15801 and SEC-1158

See merge request espressif/esp-idf!49675
2026-06-30 09:19:17 +03:00
Linyan Liu caf9a41581 fix(ble_iso): Fix ISO SDU header pulled without minimum length check 2026-06-30 12:13:32 +08:00
Li Shuai d69aed64ad Merge branch 'feat/pm-788' into 'master'
support sleep retention destroy callback

Closes PM-788

See merge request espressif/esp-idf!49568
2026-06-30 11:55:57 +08:00
Island 6aa3757930 Merge branch 'idf/ble_audio_4.4.1' into 'master'
feat(ble_audio): Support Zephyr LE Audio v4.4.1

See merge request espressif/esp-idf!49780
2026-06-30 11:49:45 +08:00
zhaoweiliang e92c6f7c4c fix(ble): fixed reconfig uart pin build error on ESP32-S31 2026-06-30 09:17:06 +08:00
Wang Meng Yang 3f98aa9ff9 Merge branch 'feat/add_sam' into 'master'
feat(bt): Added support for slot availablity mask functionality

See merge request espressif/esp-idf!49995
2026-06-30 08:48:07 +08:00
Nachiket Kukade d244a37c12 feat(lwip): Add IPv6 static neighbor cache entry support
Add esp_netif_add_static_neighbor() and esp_netif_remove_static_neighbor(),
gated by CONFIG_LWIP_ND6_SUPPORT_STATIC_ENTRIES. These API's let callers
install/remove permanent IPv6->MAC mappings that bypass Neighbor Discovery
(no NS/NA). The calls run in the TCP/IP context and wrap the underlying lwIP
nd6_add_static_neighbor()/nd6_remove_static_neighbor() functions.
2026-06-30 02:21:50 +05:30
morris 6c79fabe36 feat(jpeg): simplify decoder example and add pytest coverage 2026-06-29 22:44:49 +08:00
Aditya Patwardhan ed6f697ea8 docs(esp-tls): clarify caller owns the PSA key in esp_key_config_t 2026-06-29 19:20:23 +05:30
Aditya Patwardhan 5f1074045f fix(esp-tls): update secure element build hint for PSA integration 2026-06-29 19:20:23 +05:30
Aditya Patwardhan 7cdd0b5960 fix(esp-tls): track opaque PSA key ownership and cover the secure-element path
Replace the key-lifetime check with explicit ownership tracking so a
caller-supplied volatile PSA key is also preserved on cleanup, and drop the
DS/HARDWARE_ECDSA compile guard so the ESP_KEY_SOURCE_PSA path is released on
pure secure-element builds.
2026-06-29 19:20:23 +05:30
Mike Szczys f68cfbf8d4 fix(esp-tls): only destroy volatile keys in DS/ECDSA cleanup
The DS/ECDSA cleanup added in 8cb64703 is intended for volatile PSA keys
created internally by the DS and ECDSA peripheral paths. Ensure that
during the cleanup, PSA_KEY_LIFETIME_IS_VOLATILE() is checked to avoid
destroying keys the user has added persistently to PSA.

This resolves an issue in the next commit (adding support for
clientkey_psa_id) where a user passes a PSA key id that is then silently
destroyed if CONFIG_ESP_TLS_USE_DS_PERIPHERAL or
CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN happen to be defined.

Signed-off-by: Mike Szczys <michael.szczys@canonical.com>
(cherry picked from commit da51d69013)
2026-06-29 19:20:22 +05:30
Aditya Patwardhan b7f53c3868 fix(esp-tls): correct test_apps README to match manifest target restriction
.build-test-rules.yml restricts esp-tls test_apps to esp32c3 only.
Commit 19a544203b9 accidentally expanded the README to all targets.
2026-06-29 19:20:22 +05:30
Aditya Patwardhan 005072c87e fix(esp-tls): call mbedtls_pk_init before mbedtls_pk_wrap_psa in PSA key paths
Per mbedTLS API contract, mbedtls_pk_context must be explicitly initialized
with mbedtls_pk_init() before calling mbedtls_pk_wrap_psa(). Add the missing
init calls for both the server_key and client_key PSA-backed key code paths.
2026-06-29 19:20:22 +05:30
Aditya Patwardhan 08b567ef3b 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
2026-06-29 19:20:22 +05:30