Commit Graph

53573 Commits

Author SHA1 Message Date
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
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
Sudeep Mohanty
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 Mohanty
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
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
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
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
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
Sudeep Mohanty
caa1397768 fix(spi_flash): remove mspi_test xip_psram test with missing config 2026-06-29 15:21:31 +02:00
Mahavir Jain
1ec9740baf Merge branch 'fix/harden_mbedtls_port_layer' into 'master'
fix(mbedtls): harden port layer to zeroize sensitive material

Closes SEC-395

See merge request espressif/esp-idf!49693
2026-06-29 18:45:17 +05:30
Shuai Wang
c7dacda2a6 fix(nimble): initialize return value in LED characteristic access callback
When the NimBLE stack called this callback for a GATT Write Request, the
uninitialized stack value was interpreted as a non-zero GATT error code,
causing the stack to send BLE_ATT_ERR_UNLIKELY (0x0E) back to the client.
2026-06-29 20:00:21 +08:00
harshal.patil
100084bd61 change(bootloader): validate secure boot signing key type at configure time
The signing step (espsecure sign-data) derives the signature block type
from the key file itself, so selecting e.g. the RSA app signing scheme
with an ECDSA signing key produced a successfully built image that only
failed signature verification at boot.

Check the key at configure time and fail with a clear error when:

- the key family (RSA vs ECDSA) does not match the selected app signing
  scheme
- the ECDSA curve does not match the selected ECDSA key size for the
  ECDSA (V1/V2) schemes
- the key cannot be parsed as an unencrypted PEM private key
2026-06-29 16:59:52 +05:30
sonika.rathi
c56aa642b0 fix(partition_table): normalize CLI output with esp-pylib 2026-06-29 12:58:37 +02:00
Sudeep Mohanty
c5d8ff7ef6 fix(ulp): make LP peripheral default config macros C++ compatible
Use dual-path macros: C keeps fragment-style designated initializers;
C++ uses GNU statement expressions (ESP_LOG_CONFIG_INIT pattern).
Add compile-only C++ regression tests for LP UART/I2C and ULP RISC-V I2C.

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

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 12:16:39 +02:00
Liu Linyan
d6f24a448a feat(ble_audio): Support Zephyr LE Audio v4.4.1 2026-06-29 17:43:53 +08:00
Konstantin Kondrashov
e08d198fd6 fix(esp_image_format): validate MMU page size 2026-06-29 12:10:50 +03:00
yinqingzhao
9bb9bbc781 fix(wifi): fix tx issues introduced by keeping alive optimization 2026-06-29 16:18:38 +08:00
yinqingzhao
7aa7a9da9c fix(wifi): comment out functions from ld files 2026-06-29 16:18:38 +08:00
harshal.patil
64e694541b fix(panic): handle absent IROM/DROM alignment gap in spiram-xip memprot tests
The spiram-xip IROM/DROM alignment tests assumed the XIP region always
leaves an alignment gap before the next MMU page: they executed into the
gap and expected an instruction access fault followed by a register dump.
When the section ends exactly on an MMU page boundary there is no gap - the
device prints "<IROM/DROM> alignment gap not added into heap" and returns,
the framework restarts cleanly (esp_restart_noos, no panic), and the test
timed out waiting for a register dump.
2026-06-29 13:00:54 +05:30
Marius Vikhammer
a6a4b7b903 Merge branch 'contrib/github_pr_18767' into 'master'
fix(examples): fix types on 64-bit cpu support(linux) (GitHub PR)

Closes IDFGH-17869

See merge request espressif/esp-idf!50109
2026-06-29 15:04:38 +08:00
morris
a4fac3bed7 Merge branch 'feat/async_color_convert_scramble' into 'master'
feat(dma2d): support RGB24 and BGR24 scramble conversion

Closes IDF-15802

See merge request espressif/esp-idf!49814
2026-06-29 14:44:32 +08:00
Mahavir Jain
12496c87bf Merge branch 'fix/esp_http_client_header_buffer_too_small' into 'master'
feat(esp_http_client): detect oversized headers in tx buffer at send site

Closes IDFGH-17696

See merge request espressif/esp-idf!49056
2026-06-29 11:39:47 +05:30
Marius Vikhammer
687fe76364 fix(linux): fixed compile issues for freertos basic example on linux target 2026-06-29 14:00:38 +08:00
Frantisek Hrbata
4cc2d22c48 Merge branch 'docs/cmakev2-build-system-v2' into 'master'
docs(cmakev2): Restructure build system v2 documentation into a guide

Closes IDF-15079 and IDF-15475

See merge request espressif/esp-idf!49781
2026-06-29 07:36:01 +02:00
Rahul Tank
de70cf7e6b Merge branch 'bugfix/fix_gatt_crash' into 'master'
fix(nimble): serialize NPL eventq ops to fix callout_reset race

Closes BLERP-2939

See merge request espressif/esp-idf!49967
2026-06-29 10:21:02 +05:30
Jiang Jiang Jian
ae860abd4c Merge branch 'bugfix/ai_review_btu_common' into 'master'
fix: Fix the critical issues of btu and bt_common from AI review report

See merge request espressif/esp-idf!49574
2026-06-29 12:00:22 +08:00
Jiang Jiang Jian
af7e18f9d0 Merge branch 'bugfix/ai_review_a2dp' into 'master'
fix(bt): Fix the critical issues related to A2DP from AI review report

See merge request espressif/esp-idf!49355
2026-06-29 11:58:39 +08:00
Michael (XIAO Xufeng)
c1b218b640 Merge branch 'fix/mmap_cache_flash_wr' into 'master'
fix(mmap): fixed mmap read data wrong when flash being erased/written and cache not disabled

Closes IDFGH-14084

See merge request espressif/esp-idf!29804
2026-06-29 11:44:10 +08:00
liqigan
5b25128be8 feat(bt): Added support for slot availablity mask functionality 2026-06-29 10:57:53 +08:00
morris
624a21f359 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-28 17:07:18 +08:00
Richard Allen
c75b7daa3c fix(examples): fix types on 64-bit cpu support(linux)
Address these:

lock_example.c:162:60: error: cast to pointer from integer of different size
[-Werror=int-to-pointer-cast]
  162 |         xTaskCreatePinnedToCore(inc_num_mutex, NULL, 4096, (void *)thread_id, TASK_PRIO_3, NULL, tskNO_AFFINITY);
      |                                                            ^

create_task_example.c:30:19: error: cast from pointer to integer of different size
[-Werror=pointer-to-int-cast]
   30 |     int task_id = (int)arg;
2026-06-26 22:21:46 -05:00