Commit Graph
53637 Commits
Author SHA1 Message Date
Mahavir Jain bd250902b8 Merge branch 'fix/fix_esp_tee_failing_deterministic_ecdsa_sign' into 'master'
fix(esp_tee): release SHA held by HMAC after crypto peripheral reset

See merge request espressif/esp-idf!50286
2026-07-02 13:46:59 +05:30
Guillaume Souchere 06c7851457 Merge branch 'fix/freertos-linux-simulator' into 'master'
fix(freertos): discard stale wake events on linux port context switch

Closes IDF-15882

See merge request espressif/esp-idf!50285
2026-07-02 10:11:04 +02:00
Mahavir Jain 98f7c78787 Merge branch 'fix/gcc16_unused_but_set_variable' into 'master'
Fix unused-but-set-variable warnings with GCC 16

See merge request espressif/esp-idf!50282
2026-07-02 13:40:46 +05:30
Fu Hanxi d62782054a Merge branch 'ci/fix_test_apps_shuffle' into 'master'
ci: fix test apps shuffle command

See merge request espressif/esp-idf!50271
2026-07-02 09:37:24 +02:00
Guillaume Souchere b8f697b80d Merge branch 'feat/console-add-linux-support-for-examples' into 'master'
feat(console): Add linux support for console examples

Closes IDF-15778

See merge request espressif/esp-idf!50268
2026-07-02 09:30:48 +02:00
Wang Meng Yang b4211b144d Merge branch 'bugfix/hfp_example_ci' into 'master'
fix: Fix the HFP example fails to discovery target device

Closes IDFCI-12151 and IDFCI-4605

See merge request espressif/esp-idf!50148
2026-07-02 15:02:28 +08:00
Ashish Sharma 2cbd0afed8 fix(esp_tee): fixes double panic when ESP-TEE panics 2026-07-02 14:52:53 +08:00
Ashish Sharma 2458c81d7d fix(esp_tee): release SHA held by HMAC after crypto peripheral reset 2026-07-02 14:52:53 +08:00
Shen Wei Long 49d191730e Merge branch 'feature/added_qa_related_vs_cmd' into 'master'
feat(ble): Updated libble to 6bbfb64 on ESP32-S31 and ESP32-H4

See merge request espressif/esp-idf!50267
2026-07-02 06:42:40 +00:00
Guillaume Souchere 513c013403 fix(freertos): discard stale wake events on linux port context switch
On the Linux port, tasks are pthreads that cannot be forcibly paused;
the scheduler "unschedules" a task only by selecting a different next
task, and the outgoing task keeps running until it next blocks itself
in event_wait (e.g. via vPortYield). If the scheduler later switches
back into such a task (event_signal) before it ever parked in
event_wait, that wake is never consumed and event_triggered stays
latched. The task's next voluntary block then returns immediately
instead of blocking (e.g. vTaskDelay(100ms) returning in 0ms), which
desynchronizes kernel and port scheduling state.

Clear the outgoing task's pending event when switching to a different
task, under s_port_mutex and atomically with the scheduling decision.
Any latched-but-unconsumed wake is stale at that point; a legitimate
wake can only be delivered later, once the scheduler selects the task
again as next_thread.

Add event_clear() to the wait_for_event helper to support this.

Verified: minimal repros (busy-wait with another ready task, and
pthread-blocked task) now measure 92-101 ms for vTaskDelay(100ms)
instead of 0 ms; linux_freertos kernel test app 18/18 pass; the
previously failing esp_linenoise host test suite passes 34/34.
2026-07-02 08:30:14 +02:00
David Čermák 59d66afdd2 Merge branch 'fix/lwip_sec_high' into 'master'
fix(lwip): high severity lwip fixes

See merge request espressif/esp-idf!49930
2026-07-02 14:15:34 +08:00
morris 6d42fedb5c Merge branch 'docs/i2s_ws_setting' into 'master'
docs(i2s): clarify WS width setting for standard mode

Closes IDFGH-17842

See merge request espressif/esp-idf!49932
2026-07-02 14:12:05 +08:00
Aditya Patwardhan b5023d4343 Merge branch 'feature/unified_priv_key_interface_across_idf' into 'master'
feat(esp-tls): Added a PSA driver for Secure Element

See merge request espressif/esp-idf!44987
2026-07-02 11:00:42 +05:30
morris 0816b7f600 Merge branch 'fix/dac_unused_value' into 'master'
fix(dac): remove redundant assert in continuous enable

See merge request espressif/esp-idf!50279
2026-07-02 12:50:01 +08:00
Guillaume Souchere c18c10f51d feat(console): Add linux support for console examples 2026-07-02 06:46:06 +02:00
Meet Patel 8da676cd87 Merge branch 'feat/ulp_adc_two_channel_example' into 'master'
feat(ulp): demonstrate multi-channel ADC in ULP-RISC-V example

See merge request espressif/esp-idf!50246
2026-07-02 10:00:21 +05:30
yangfeng fe76a65d22 fix: Fix the HFP example fails to discovery target device 2026-07-02 10:50:38 +08:00
morrisandCursor 829576fdab fix(dac): remove redundant assert in continuous enable
Drop the internal assert in dac_continuous_enable() and call
 dac_priv_enable_channel() directly, since the surrounding state
 machine already guarantees the preconditions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 10:36:34 +08:00
Mahavir Jain e16593ebc0 fix(esp_psram): fix unused-but-set-variable warning with GCC 16
GCC 16 flags the volatile accumulator in the cache writeback loops even
though it is volatile, as it is only used to update itself. Drop the
accumulator and rely on the volatile-qualified psram pointer to keep
the cache-line reads from being optimized out.
2026-07-02 07:55:14 +05:30
Mahavir Jain bd567cf046 fix(wpa_supplicant): fix unused-but-set-variable warnings with GCC 16
GCC 16 raised the default level of -Wunused-but-set-variable and now
flags variables that are only used to update themselves. Remove the
'removed' counter in pmksa_cache_flush() (its only read was commented
out) and mark the EAP-FAST PAC entry counters as unused, since their
only read is inside wpa_printf(MSG_DEBUG, ...) which compiles to a
no-op when debug logging is disabled.
2026-07-02 07:55:13 +05:30
David Cermak 4c3d56aeb6 fix(lwip): tcp/ooseq: do not accept empty fin seg (+ other fixes)
* Update submodule: git log --oneline 9d2d8041..c6f2f878
  - test(lwip): add DHCP MTU validation unit test (espressif/esp-lwip@c6f2f878)
  - ppp: fix potential oob read in VJ decompression (espressif/esp-lwip@2ff439e6)
  - ip6-frag: Fix incorrect memcpy size to the actual struct (espressif/esp-lwip@91ad363b)
  - tcp/ooseq: do not accept empty fin seg (espressif/esp-lwip@fe4fb18c)
2026-07-01 20:21:59 +02:00
Evgeny Torbin bf95b231e4 ci: check file existence before shuffling test apps 2026-07-01 16:50:04 +02:00
ShenWeilong 297ee2cc5b feat(ble): Updated libble to 6bbfb64 on ESP32-S31 and ESP32-H4 2026-07-01 20:38:09 +08:00
Laukik Hase 0daee142a3 Merge branch 'fix/esp_tee_sec_srv_arg_chk' into 'master'
fix(esp_tee): Add additional input validation checks for TEE service calls

Closes SEC-585, SEC-610, and SEC-1058

See merge request espressif/esp-idf!50062
2026-07-01 17:35:05 +05:30
Laukik Hase aa98b92e25 Merge branch 'fix/esp_tee_part_check_sizes' into 'master'
fix(partition_table): Exclude TEE partitions from the REE app size check

See merge request espressif/esp-idf!50242
2026-07-01 15:36:58 +05:30
Harshal Patil cbf8b877e1 Merge branch 'fix/partitions_ota_c2_c61_secure_boot_scheme' into 'master'
test: Incorrect SB key type for C2/C61

See merge request espressif/esp-idf!50232
2026-07-01 15:34:41 +05:30
Meet Patel 69d755b1e6 feat(ulp): demonstrate multi-channel ADC in ULP-RISC-V example 2026-07-01 14:09:05 +05:30
Wu Zheng Hui d8b255280b Merge branch 'fix/fix_mpll_enable_order' into 'master'
fix(esp_hw_support): fix esp32s31 mpll initialization

Closes IDF-15820

See merge request espressif/esp-idf!49927
2026-07-01 16:35:20 +08:00
morris d56d5532fc Merge branch 'refactor/jpeg_decoder_example' into 'master'
feat(jpeg): simplify decoder example and add pytest coverage

See merge request espressif/esp-idf!49733
2026-07-01 16:27:50 +08:00
Fu Hanxi 59296315b1 Merge branch 'ci/esp-pylib-tests-missing-config' into 'master'
ci: add esp-pylib dependency to check-tests-missing-config pre-commit hook

See merge request espressif/esp-idf!50216
2026-07-01 09:32:39 +02:00
David Cermak 71eeec18c4 fix(lwip): Adds nullchecks after DHCP server alloc'd pools 2026-07-01 09:27:10 +02:00
David Cermak 32ca6039a0 fix(lwip): reject invalid DHCP MTU option values
Validate MTU from DHCP option 26 against RFC 2132 minimum (68 bytes)
before applying to netif->mtu, preventing rogue DHCP servers from
setting MTU to 0 or other dangerously low values that cause integer
wraparound in IPv4 fragmentation.
2026-07-01 09:27:10 +02:00
Laukik Hase 75fc3dfc82 fix(partition_table): Exclude TEE partitions from the REE app size check
- Remove the invalid check that compared the TEE app partition size
  against the user application (REE) binary size
2026-07-01 12:53:45 +05:30
morris e34e2af9e4 Merge branch 'docs/esp_crc_rom_api' into 'master'
fix(esp_crc): clarify CRC ROM helper usage documentation

Closes IDFGH-17804

See merge request espressif/esp-idf!50177
2026-07-01 15:11:11 +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
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