Commit Graph

51307 Commits

Author SHA1 Message Date
Guo Zifan
4eb7dde736 remove(ble): migrate BLE Log Console out of ESP-IDF
(cherry picked from commit d8d7c3d904)

Co-authored-by: guozifan <guozifan@espressif.com>
2026-07-10 10:43:56 +08:00
Jiang Jiang Jian
a217842919 Merge branch 'bugfix/idf_ci_hid_example_v6.0' into 'release/v6.0'
fix(bt/example): Add print the device name to verify if it matches in HID example (v6.0)

See merge request espressif/esp-idf!50483
2026-07-10 10:31:10 +08:00
Zhang Wen Xu
e18d27e480 Merge branch 'feat/update_openthread_submodule_and_br_lib_20260624_v6.0' into 'release/v6.0'
feat(openthread): update openthread submodule (v6.0)

See merge request espressif/esp-idf!50519
2026-07-09 10:18:13 +00:00
Aditya Patwardhan
cbb9bf8f55 Merge branch 'backport/44987_v6.0' into 'release/v6.0'
feat(esp-tls): Added a PSA driver for Secure Element (backport v6.0)

See merge request espressif/esp-idf!50511
2026-07-09 14:40:27 +05:30
Mahavir Jain
ac3eb6bdf1 Merge branch 'fix/picolibc-disable-c11-annex-k_v6.0' into 'release/v6.0'
fix(libc): picolibc: disable C11 annex K in compatibility mode (v6.0)

See merge request espressif/esp-idf!48620
2026-07-09 13:16:46 +05:30
Aditya Patwardhan
2188d7b855 docs(esp-tls): clarify caller owns the PSA key in esp_key_config_t
(cherry picked from commit ed6f697ea8)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
aa70f6de09 fix(esp-tls): update secure element build hint for PSA integration
(cherry picked from commit 5f1074045f)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
5285c70499 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.

(cherry picked from commit 7cdd0b5960)
2026-07-09 11:17:03 +05:30
Mike Szczys
2627f6e941 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)
(cherry picked from commit f68cfbf8d4)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
d06dc9f607 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.

(cherry picked from commit b7f53c3868)
2026-07-09 11:17:03 +05:30
Aditya Patwardhan
a7e7a1f6d8 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.

(cherry picked from commit 005072c87e)
2026-07-09 11:17:02 +05:30
Aditya Patwardhan
9c1dcca1af 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-09 11:17:02 +05:30
Aditya Patwardhan
6d7d89378c fix(esp-tls): Use runtime assignment for static key config length in examples
Linker symbol differences (prvtkey_pem_end - prvtkey_pem_start) are not
compile-time constants and cannot be used in static initializers.

(cherry picked from commit 4196734d1a)
2026-07-09 11:17:02 +05:30
Aditya Patwardhan
b6bc9710a1 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-09 11:17:01 +05:30
Aditya Patwardhan
e889a304c5 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-09 11:14:15 +05:30
Aditya Patwardhan
d93ab71681 feat(esp-tls): Add unified private key interface via esp_key_config_t
Add ESP_KEY_SOURCE_BUFFER and ESP_KEY_SOURCE_PSA key sources so all
hardware backends (DS, ECDSA, secure element) are accessed via PSA
key IDs through a single esp_tls_cfg_t.client_key field.

(cherry picked from commit 36090b7161)
2026-07-09 11:14:11 +05:30
morris
e9718d57c9 Merge branch 'bugfix/dma2d_dequeue_mechanism_v6.0' into 'release/v6.0'
fix(dma2d): add a dequeue mechanism for dma2d driver (v6.0)

See merge request espressif/esp-idf!50513
2026-07-09 13:27:20 +08:00
Euripedes Rocha
011ebc5186 Merge branch 'feat/eth_test_component_v6.0' into 'release/v6.0'
feat(esp_eth): updated test_apps to use Ethernet test component (v6.0)

See merge request espressif/esp-idf!49659
2026-07-09 06:50:52 +02:00
Jiang Jiang Jian
98609d1fa2 Merge branch 'coredump_test_fixes_v6.0' into 'release/v6.0'
Coredump fixes (v6.0)

See merge request espressif/esp-idf!50475
2026-07-09 12:37:06 +08:00
Jiang Jiang Jian
c931322083 Merge branch 'fix/fatfs_vulnerabilities_v6.0' into 'release/v6.0'
fix(fatfs): harden against runZero 2026 FatFs bugs (v6.0)

See merge request espressif/esp-idf!50425
2026-07-09 12:36:44 +08:00
Jiang Jiang Jian
11e4196a49 Merge branch 'fix/ble_mesh_fixed_issues_v6.0' into 'release/v6.0'
Resolve reported BLE mesh stack issues (6.0)

See merge request espressif/esp-idf!50407
2026-07-09 12:36:16 +08:00
Jiang Jiang Jian
52198d19a2 Merge branch 'docs/ulp_fsm_instruction_v6.0' into 'release/v6.0'
docs(ulp): clarify ULP FSM instruction cycle timing (v6.0)

See merge request espressif/esp-idf!50367
2026-07-09 12:34:46 +08:00
Jiang Jiang Jian
fdb33a4ce7 Merge branch 'fix/lp_periph_init_fail_with_cpp_v6.0' into 'release/v6.0'
fix(ulp): make LP peripheral default config macros C++ compatible (v6.0)

See merge request espressif/esp-idf!50211
2026-07-09 12:34:03 +08:00
Jiang Jiang Jian
20792c5ada Merge branch 'feat/seperate_ot_citest_tags_v6.0' into 'release/v6.0'
ci: seperate openthread test cases (v6.0)

See merge request espressif/esp-idf!50170
2026-07-09 12:33:14 +08:00
Jiang Jiang Jian
4193c391f2 Merge branch 'fix/lp_core_noreset_under_debug_option_v6.0' into 'release/v6.0'
fix(lp_core): fix build for CONFIG_ULP_NORESET_UNDER_DEBUG=n (v6.0)

See merge request espressif/esp-idf!49868
2026-07-09 12:31:38 +08:00
Jiang Jiang Jian
f579370571 Merge branch 'fix/reduce_acl_event_gaps_v6.0' into 'release/v6.0'
feat(ble): updated libble to 71d180a4 for esp32h4 and esp32s31 (6.0)

See merge request espressif/esp-idf!49592
2026-07-09 12:30:26 +08:00
Alexey Lapshin
aa14636a88 fix(libc): picolibc: disable C11 annex K in compatibility mode 2026-07-09 12:28:17 +08:00
Xu Si Yu
1a53acb870 fix(openthread): disable software retx security in spinel-only config 2026-07-09 11:30:45 +08:00
morris
30df02cb6a Merge branch 'fix/dac_continuous_flag' into 'release/v6.0'
fix(dac): dac_continuous set is_cyclic flag in async mode

See merge request espressif/esp-idf!50490
2026-07-09 11:11:44 +08:00
Song Ruo Jing
9db6c73022 fix(dma2d): fix non-usable DMA2D_CSC_TX_SCRAMBLE option 2026-07-08 23:15:57 +08:00
Song Ruo Jing
3294481ac4 fix(dma2d): fix race with dma2d_force_end and ISR
free_up_channels can only be called once for a started transaction.
Double free will undesirely stop the next picked 2D-DMA transaction on the same channel.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-08 23:15:56 +08:00
Xu Si Yu
30a2d5c25d feat(openthread): update thread-lib for upstream b678a4f6
* esp-openthread: thread_zigbee/esp-openthread@47428f1e8
* openthread: espressif/openthread@b678a4f63
* esp-idf: espressif/esp-idf@c629a359b
2026-07-08 13:01:42 +00:00
Mahavir Jain
cf06294ca9 Merge branch 'fix/esp_http_client_header_buffer_too_small_v6.0' into 'release/v6.0'
feat(esp_http_client): detect oversized headers in tx buffer at send site (v6.0)

See merge request espressif/esp-idf!50314
2026-07-08 18:25:12 +05:30
Mahavir Jain
65aeed5c00 Merge branch 'fix/tls1_3_dynamic_buffer_server_crash_v6.0' into 'release/v6.0'
fix(mbedtls): fixes TLS1.3 server failing with dynamic buffer (v6.0)

See merge request espressif/esp-idf!50387
2026-07-08 18:23:37 +05:30
Mahavir Jain
77fd953aba Merge branch 'fix/harden_mbedtls_port_layer_v6.0' into 'release/v6.0'
fix(mbedtls): harden port layer to zeroize sensitive material (v6.0)

See merge request espressif/esp-idf!50316
2026-07-08 18:22:31 +05:30
Xu Si Yu
c629a359b7 feat(openthread): update openthread submodule 2026-07-08 20:38:44 +08:00
Xu Si Yu
ebc79defd7 fix(openthread): fix TREL peer discovery by selecting IPv6 from mDNS address list 2026-07-08 20:38:44 +08:00
Song Ruo Jing
4fbbc16ac6 fix(dma2d): add a dequeue mechanism for dma2d driver
JPEG driver should be able to either dequeue a pending transaction from
a 2D-DMA pool or force end a processing transaction.
2026-07-08 20:11:08 +08:00
Euripedes Rocha
9369102192 Merge branch 'fix/mqtt_remove_leftovers_v6.0' into 'release/v6.0'
fix(mqtt): Remove mqtt leftovers from IDF

See merge request espressif/esp-idf!49552
2026-07-08 11:03:15 +02:00
Rahul Tank
519ff91e23 Merge branch 'bugfix/ai_reviewer_nimble_1.6_v6.0' into 'release/v6.0'
fix(nimble): Fixes for AI reported issues (v6.0)

See merge request espressif/esp-idf!50014
2026-07-08 13:57:25 +05:30
Hu Rui
45d04d1239 fix(dac): dac_continuous set is_cyclic flag in async mode 2026-07-08 15:47:07 +08:00
yangfeng
41897b6239 fix(bt/example): Add print the device name to verify if it matches in HID example 2026-07-08 15:28:06 +08:00
Erhan Kurubas
737f1f3a38 test(espcoredump): run test_tcb_corrupted with custom stack 2026-07-08 08:47:26 +02:00
Erhan Kurubas
4182ddebbd fix(esp_coredump): count only written tasks against MAX_TASKS_NUM limit 2026-07-08 08:44:29 +02:00
Erhan Kurubas
b89a1b517d fix(esp_coredump): fix unused-but-set-variable warnings 2026-07-08 08:44:10 +02:00
Jiang Jiang Jian
ecb9d864d5 Merge branch 'feat/update_pmu_pau_reg_description_v6.0' into 'release/v6.0'
feat(soc): update esp32c61 PMU & PAU reg header descriptions (v6.0)

See merge request espressif/esp-idf!50432
2026-07-08 14:33:53 +08:00
Jiang Jiang Jian
2a15269b80 Merge branch 'bugfix/fix_some_wifi_bugs_260706_v6.0' into 'release/v6.0'
fix(wifi): fix some wifi bugs 260706 v6.0(Backport v6.0)

See merge request espressif/esp-idf!50396
2026-07-08 14:26:57 +08:00
Ondrej Kosta
6eb451f40f feat(esp_eth): update test_apps to use Ethernet test component
Move test logic into the eth_test_app managed component and slim down
the test_apps main target and pytest suite accordingly.
2026-07-08 08:01:45 +02:00
Ondrej Kosta
9e3ec66892 feat(ci): support downloading extra app artifacts in pytest
Add app_extra S3 artifact type, extend idf-ci download plumbing, and
expose a download_app_extra pytest fixture for managed_components deps.
2026-07-08 08:01:45 +02:00
Euripedes Rocha
97abdf4e3b Merge branch 'contrib/github_pr_18642_v6.0' into 'release/v6.0'
fix(eth): use stored base_increment when computing PTP addend (GitHub PR) (v6.0)

See merge request espressif/esp-idf!49104
2026-07-08 07:59:47 +02:00