Commit Graph

53196 Commits

Author SHA1 Message Date
Jiang Jiang Jian
2a0dd1921c Merge branch 'contrib/github_pr_18761_v6.1' into 'release/v6.1'
fix(nimble): initialize return value in LED characteristic access cal… (GitHub PR) (v6.1)

See merge request espressif/esp-idf!50150
2026-07-03 20:28:07 +08:00
Jiang Jiang Jian
1bb775f2f1 Merge branch 'fix/lp_core_noreset_under_debug_option_v6.1' into 'release/v6.1'
fix(lp_core): fix build for CONFIG_ULP_NORESET_UNDER_DEBUG=n (v6.1)

See merge request espressif/esp-idf!49866
2026-07-03 20:26:21 +08:00
Jiang Jiang Jian
4c12113aff Merge branch 'backport/49647-v6.1' into 'release/v6.1'
ci: fix pytest markers (backport v6.1)

See merge request espressif/esp-idf!49691
2026-07-03 20:24:16 +08:00
Jiang Jiang Jian
8c79d4b970 Merge branch 'contrib/github_pr_18400_v6.1' into 'release/v6.1'
Improve logging for VFS start_select function (GitHub PR) (v6.1)

See merge request espressif/esp-idf!49549
2026-07-03 20:22:40 +08:00
Jiang Jiang Jian
481813fcd8 Merge branch 'fix/newlib-nano-nosys-linking_v6.1' into 'release/v6.1'
fix(libc): nano: add -lnosys to linking to avoid CMake configuration issues (v6.1)

See merge request espressif/esp-idf!49377
2026-07-03 20:22:23 +08:00
Jiang Jiang Jian
901b57c86c Merge branch 'feature/added_qa_related_vs_cmd_v6.1' into 'release/v6.1'
feat(ble): Updated libble to 6bbfb64 on ESP32-S31 and ESP32-H4 (6.1)

See merge request espressif/esp-idf!50270
2026-07-03 20:02:49 +08:00
Jiang Jiang Jian
f89374f464 Merge branch 'lwip/dns_stack_corruption_fix_v6.1' into 'release/v6.1'
fix(dns): Added addr_cnt to DNS resolution to fix multi-IP buffer overflow (v6.1)

See merge request espressif/esp-idf!49191
2026-07-03 18:47:11 +08:00
Jiang Jiang Jian
b7193c70e1 Merge branch 'feat/refactor_stdio_vfs_v6.1' into 'release/v6.1'
feat(storage/stdio): refactor stdio vfs (v6.1)

See merge request espressif/esp-idf!48957
2026-07-03 17:47:31 +08:00
Jiang Jiang Jian
e3feb73053 Merge branch 'task/buildv2_hygiene_and_dep_declarations_v6.1' into 'release/v6.1'
fix(components): generic dep-declaration and scope-leakage hygiene exposed by cmakev2 (v6.1)

See merge request espressif/esp-idf!48904
2026-07-03 17:47:24 +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
Mahavir Jain
a298836ef1 Merge branch 'fix/fix_psk_hint_key_null_dereference_v6.1' into 'release/v6.1'
Fix/fix psk hint key null dereference (v6.1)

See merge request espressif/esp-idf!50321
2026-07-03 10:06:34 +05:30
Ashish Sharma
5d299793cf fix(esp-tls): guard against NULL PSK hint to prevent crash 2026-07-03 11:36:11 +08:00
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
Mahavir Jain
40974f42a3 Merge branch 'fix/aes_dma_psram_encrypted_mem_s31_v6.1' into 'release/v6.1'
fix(mbedtls/aes): Fix AES-DMA over encrypted PSRAM on ESP32-S31 (v6.1)

See merge request espressif/esp-idf!50252
2026-07-03 08:45:02 +05:30
morris
897347eb58 Merge branch 'fix/flash_32bit_addr_v6.1' into 'release/v6.1'
fix(spi_flash): fix flash 32bit address operation on esp32s31

See merge request espressif/esp-idf!50295
2026-07-03 11:08:45 +08:00
Chen Yu Dong
0b4ed5eff5 ci: fix pytest markers
Backport of !49647 to release/v6.1
- IDFCI-12304
2026-07-03 10:55:51 +08:00
Jiang Jiang Jian
dc9fc38bfe Merge branch 'backport/master-to-release-6.1-20260701' into 'release/v6.1'
fix(ci): Tolerate w32time already running on Windows CI VMs

See merge request espressif/esp-idf!50264
2026-07-03 10:46:04 +08:00
Jiang Jiang Jian
bc42eeed6c Merge branch 'test/vfs_fix_register_check_v6.1' into 'release/v6.1'
test(vfs): Test changes regarding VFS register incorrect check fix and fix VFS host test not being run at all (v6.1)

See merge request espressif/esp-idf!49945
2026-07-03 10:45:43 +08:00
Jiang Jiang Jian
07333f33b0 Merge branch 'bugfix/idfci-12308-fatfs-bdl-test-stack-overflow_v6.1' into 'release/v6.1'
fix(fatfs): avoid stack overflow in BDL diskio partition test (v6.1)

See merge request espressif/esp-idf!50247
2026-07-03 10:45:30 +08:00
Jiang Jiang Jian
271b2cda9b Merge branch 'bugfix/idfci-8839-remove-orphan-test-configs_v6.1' into 'release/v6.1'
fix(fatfs): re-enable fatfs and vfs psram/ccomp CI tests (v6.1)

See merge request espressif/esp-idf!50184
2026-07-03 10:45:17 +08:00
harshal.patil
b5d53b87ef feat(mbedtls/psa_esp_rsa_ds): Expose persistent key buffer format/parse helpers 2026-07-02 16:00:23 +05:30
harshal.patil
b3214f13c6 feat(examples/security): Add example to demonstrate the usage of custom key storages with PSA 2026-07-02 16:00:23 +05:30
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
Jiang Jiang Jian
88554f3551 Merge branch 'fix/backport_some_wifi_fixes_v6.1' into 'release/v6.1'
fix(wifi): backport some wifi fixes to v6.1

See merge request espressif/esp-idf!50183
2026-07-02 17:38:57 +08:00
C.S.M
57484d3a2f fix(spi_flash): fix flash 32bit address operation on esp32s31 2026-07-02 16:53:47 +08:00
Mahavir Jain
7fa3f2e3c8 Merge branch 'fix/panic_spiram_xip_irom_drom_alignment_no_gap_v6.1' into 'release/v6.1'
Handle absent IROM/DROM alignment gap in SPIRAM-XIP memprot tests (v6.1)

See merge request espressif/esp-idf!50233
2026-07-02 11:54:18 +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
ShenWeilong
ef702ca257 feat(ble): Updated libble to 6bbfb64 on ESP32-S31 and ESP32-H4 2026-07-01 21:06:50 +08:00
Sudeep Mohanty
2c371a8163 fix(esp_hal_gpspi): narrow freq_limit scope to its consumer in spi_hal_cal_clock_conf
freq_limit was declared at the top of the #if SPI_LL_SUPPORT_TIME_TUNING
block and only consumed by HAL_EARLY_LOGE inside an inner if(). When the
log macro expands to nothing (e.g. log component absent from the build
closure, as in g0_components, or log level set below ERROR), the
variable became unused and tripped -Wunused-variable, failing builds
under --check-warnings.

Move the declaration into the inner if() that calls HAL_EARLY_LOGE so
it shares the same scope and lifetime as its consumer.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
2585033885 fix(ulp): initialize sources to prevent scope leakage in cmakev2 2026-07-01 19:59:05 +08:00
Sudeep Mohanty
ac527f3192 fix(test_apps/memprot): declare esp_hal_wdt as a private requirement of main
main/{esp32s2,esp32c3,esp32s3}/test_panic.c uses WDT registers from
esp_hal_wdt. Declare it explicitly so the build works under cmakev2's
strict component isolation.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
658df32a06 fix(test_apps/gdb): declare spi_flash as a private requirement of main
main/hello_world_main.c uses spi_flash headers. Declare spi_flash in
PRIV_REQUIRES so the build works under cmakev2's strict component
isolation.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
5600200a4c fix(bootloader_support): declare esp_security as a dependency for flash_encrypt
flash_encrypt.c is in the unconditional source list and includes
esp_security/esp_key_mgr.h whenever SOC_KEY_MANAGER_SUPPORTED is set.
Move the esp_security PRIV_REQUIRES declaration outside the
BOOTLOADER_BUILD branch so every build variant that compiles
flash_encrypt.c gets the dependency consistently.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
5843b491a9 fix(host_test): use ${project_elf} variable and keyword link form
Three host_test CMakeLists.txt files relied on idioms tied to a
specific build system layout. Make them portable:

- spiffs/host_test and esp_partition/host_test/partition_api_test
  passed a hard-coded "<project>.elf" target name to add_dependencies().
  Use ${project_elf}, the canonical variable that resolves to the live
  executable target name in either build system.

- nvs_flash/host_test/nvs_page_test linked --coverage using the plain
  signature of target_link_libraries. CMake forbids mixing plain and
  keyword signatures on the same target; the component library link
  already uses the keyword form. Switch the --coverage link to the
  keyword signature.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
c6a57943e9 fix(esp_stdio): align VFS console force-link with the source-selection condition
stdio_vfs.c (the sole definition of esp_vfs_include_console_register)
is only added to the source list on non-Linux targets. The trailing
target_link_libraries(... -u esp_vfs_include_console_register) was
applied whenever CONFIG_VFS_SUPPORT_IO was enabled, including on the
Linux host build where the symbol is not part of the link. Constrain
the force-undef to the same condition that opts the defining source
in.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
88c5eb6424 fix(hal): initialize priv_include to prevent scope leakage in cmakev2 2026-07-01 19:59:05 +08:00
Sudeep Mohanty
865512024c fix(dns_over_https): declare main and protocol_examples_common deps
dns_over_https/main includes time_sync.h, nvs_flash.h, esp_event.h,
esp_timer.h, and mbedtls headers. Declare nvs_flash, esp_event,
esp_timer, mbedtls and time_sync in PRIV_REQUIRES so the build is
self-describing under any build system.

Also move esp_netif from PRIV_REQUIRES to REQUIRES in
protocol_examples_common, since its public header exposes esp_netif.h.

Also add the PRIVATE keyword to target_link_libraries in the
dns_over_https component — CMake rejects mixed keyword/plain
signatures on the same target.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
a235a694b2 fix(esp_hal_sd): include <stddef.h> for offsetof in sdio_slave_hal.c
picolibc with C23 no longer exposes <stddef.h> implicitly through
other headers; add the explicit include for `offsetof`.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
93b5785aba fix(bt): declare esp_event as a private requirement
bt sources include esp_wifi_types.h via esp_blufi_api.h, which
transitively includes esp_event_base.h from the esp_event component.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
6c6030cdd7 fix(esp_wifi): declare interface deps in non-WiFi stub registration
Public headers (notably esp_wifi_default.h) include esp_event.h,
esp_netif.h and esp_phy.h. Declare these in REQUIRES so the headers
are visible to consumers — same interface as the WiFi-enabled
registration at the bottom of this file.

Also declare wpa_supplicant as PRIV_REQUIRES so the remote/ EAP
stubs can include esp_eap_client.h when the stub registration is
compiled.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
93d4fad8b1 fix(esp_hw_support): use elif __riscv guard in spinlock.h
spinlock.h used #else to include riscv/rv_utils.h for all non-Xtensa
targets. On Linux host (neither __XTENSA__ nor __riscv defined), this
pulls in a non-existent header. Change to #elif __riscv, matching
esp_cpu.h's existing pattern.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
08dd7ce19e fix(components): initialize srcs variable to prevent scope leakage 2026-07-01 19:59:05 +08:00
Sudeep Mohanty
a0a3882897 fix(esp_libc/kconfig): exclude IDF_TARGET_LINUX from LibC menu
On the Linux target the host's C library is used directly; none of the
LibC menu options apply. Mark the entire "LibC" menu as `depends on
!IDF_TARGET_LINUX` so its symbols (LIBC_NEWLIB, LIBC_PICOLIBC, …) stay
undefined on Linux builds.

Also gate the picolibc-specific include in components/console/linenoise/
linenoise.c under `!CONFIG_IDF_TARGET_LINUX` so the file does not try to
pull <stdio-bufio.h> on the host even if CONFIG_LIBC_PICOLIBC is set by
some other build path.
2026-07-01 19:59:05 +08:00
Sudeep Mohanty
ea4cef735a fix(esp_event/test): remove quotes around space-separated PRIV_REQUIRES list
The test app set priv_requires as a single quoted string ("esp_event unity")
instead of separate list items. The v1 build system silently splits on
spaces, but the v2 compat layer treats it as a single component name.
2026-07-01 19:59:05 +08:00
Jakub Kocka
3d35d528f8 fix(ci): Tolerate w32time already running on Windows CI VMs
net start w32time returns exit 2 on warm snapshots; that aborted before_script
before pytest. Continue with NTP config and w32tm /resync as intended.
2026-07-01 13:42:43 +02:00
harshal.patil
4e02ec217c test(mbedtls): move AES test vectors to a dedicated header 2026-07-01 16:51:30 +05:30
harshal.patil
f5d68c1730 fix(mbedtls/aes): Fix AES-DMA over encrypted PSRAM on ESP32-S31
esp_crypto_shared_gdma_done() polled the AXI RX raw interrupt status
(in_done) but never cleared it, so after the first transfer the set bit
made every subsequent call return immediately without waiting.
2026-07-01 16:51:26 +05:30
Adam Múdry
758d17e1b8 test(vfs): Test changes regarding VFS register incorrect check fix 2026-07-01 12:06:13 +02:00