Commit Graph

45105 Commits

Author SHA1 Message Date
Jiang Jiang Jian
61064b442a Merge branch 'docs/add_compatibility_c6_0v2' into 'master'
doc(compatibility): add supported version for C6 v0.2

See merge request espressif/esp-idf!32304
2025-04-16 10:29:26 +08:00
Jiang Jiang Jian
b737136d83 Merge branch 'bugfix/dpp_optimizations' into 'master'
WiFi: DPP code optimizations

Closes IDFGH-9228

See merge request espressif/esp-idf!34014
2025-04-16 10:20:30 +08:00
Jiang Jiang Jian
323119a0b6 Merge branch 'feature/improve_ps_compatibility_master_2025' into 'master'
feat(wifi): improve ps compatibility

Closes WIFI-6757, WIFI-6304, and AUD-4813

See merge request espressif/esp-idf!35960
2025-04-16 02:58:40 +08:00
Konstantin Kondrashov
d889031504 feat(soc): Adds core_num definition for Linux target
Closes https://github.com/espressif/esp-idf/issues/15758
2025-04-15 18:54:33 +03:00
Tomas Rezucha
b37c882aa9 Merge branch 'docs/update_cn_translation_for_usb' into 'master'
docs: Provide CN translation for usb device

See merge request espressif/esp-idf!38387
2025-04-15 22:37:08 +08:00
Alexey Gerenkov
0181d1b1ce Merge branch 'feat/add_esp_clang_libs_tool' into 'master'
Add support for esp-clang-libs to IDF tools

Closes IDFGH-15043

See merge request espressif/esp-idf!36391
2025-04-15 22:29:19 +08:00
Mahavir Jain
13515d729e Merge branch 'feat/ensure_not_all_of_the_security_versions_are_disabled' into 'master'
feat(wifi_prov): Ensure not all security versions are disabled at same time

Closes IDF-12794

See merge request espressif/esp-idf!38029

Related https://github.com/espressif/esp-idf/issues/15549
2025-04-15 21:41:26 +08:00
Mahavir Jain
55a2ad3df3 fix(esp_system): reset crypto peripherals before device restart
This change addresses a rare but critical issue observed on certain
ESP32-C3 and ESP32-S3 devices, where secure boot verification
intermittently fails due to improper cleanup of crypto peripherals
during a restart.

Background – Restart Behavior in IDF
------------------------------------
In ESP-IDF, when the device restarts (via `esp_restart()` or due to a
panic/exception), a partial peripheral reset is performed followed by a
CPU reset. However, until now, crypto-related peripherals were not
included in this selective reset sequence.

Problem Scenario
----------------
If a restart occurs while the application is in the middle of a bignum
operation (i.e., using the MPI/Bignum peripheral), the ROM code may
encounter an inconsistent peripheral state during the subsequent boot.
This leads to transient RSA-PSS secure boot verification failures.

Following such a failure, the ROM typically triggers a full-chip reset
via the watchdog timer (WDT). This full reset clears the crypto
peripheral state, allowing secure boot verification to succeed on the
next boot.

Risk with Aggressive Revocation
-------------------------------
If secure boot aggressive revocation is enabled (disabled by default in
IDF), this transient verification failure could mistakenly lead to
revocation of the secure boot digest.

If your product configuration has aggressive revocation enabled,
applying this fix is strongly recommended.

Frequency of Occurrence
-----------------------
The issue is rare and only occurs in corner cases involving
simultaneous use of the MPI peripheral and an immediate CPU reset.

Fix
---
This fix ensures that all crypto peripherals are explicitly reset prior
to any software-triggered restart (including panic scenarios),
guaranteeing a clean peripheral state for the next boot and preventing
incorrect secure boot behavior.
2025-04-15 19:06:26 +05:30
Marek Fiala
1507ec7466 fix(test): Proper cleanup after build_custom_cmake pytest
The test create build folder in current directory which
in this case is defined by (test_app_copy).
It also creates sdkconfig file in cmake source directory, which
is defined as $IDF_PATH/examples/build_system/cmake/idf_as_lib

The fixtures ensures proper cleanup even when test fails.
2025-04-15 15:09:27 +02:00
Marek Fiala
58b3c60f59 fix(tools): Update ruff-format changes 2025-04-15 15:09:27 +02:00
Marek Fiala
c288935305 ci(tools): Run Win build system tests when patterns-build_system changed 2025-04-15 15:09:27 +02:00
Marek Fiala
87a118361f test(tools): skip custom cmake project test for host on Win 2025-04-15 15:09:27 +02:00
Tomas Rezucha
179a468adf Merge branch 'fix/usb_host_hcd_test_pipe_stall' into 'master'
feat(usb_host): Fix HCD test HCD control pipe STALL

See merge request espressif/esp-idf!38338
2025-04-15 20:43:15 +08:00
Jiang Jiang Jian
30ba95a89b Merge branch 'feature/optimize_coex_schm_to_rodata' into 'master'
feat(coex): optimize coex schm to rodata

See merge request espressif/esp-idf!38398
2025-04-15 19:35:37 +08:00
Kapil Gupta
9c75d7961c Merge branch 'bugfix/h2e_porting_improvement' into 'master'
change(esp_wifi): Improve handling group parameter A in H2E

Closes IDFGH-14994 and IDFGH-14995
Closes https://github.com/espressif/esp-idf/issues/15691
Closes https://github.com/espressif/esp-idf/pull/15692

See merge request espressif/esp-idf!38319
2025-04-15 18:36:12 +08:00
gaoxu
ce06a878ae feat(i2c): update i2c reg and struct on h21 2025-04-15 17:39:11 +08:00
nilesh.kale
d9f03d7f28 fix(hal): updated API description and added comments 2025-04-15 14:58:53 +05:30
Mahavir Jain
78ef080251 Merge branch 'fix/ota_pytest_idf_path_fix' into 'master'
fix(ota): Fix the pytest's idf_path

See merge request espressif/esp-idf!38321
2025-04-15 17:04:39 +08:00
hrushikesh.bhosale
06beaefa88 feat(wifi_prov): Ensure not all security versions are disabled at same time
Disabling all the protocomm security versions give empty enum value build
error.

Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
Note - Disabling the protocomm security 0 by default
2025-04-15 16:46:44 +08:00
Ivan Grokhotkov
977d841229 fix(build): query correct property for interface libraries
431ee5c058 has changed the way ldgen works by introducing the
recursive lookup of component libraries reachable from the executable.
The implementation incorrectly queried LINK_LIBRARIES instead of the
INTERFACE_LINK_LIBRARIES property for INTERFACE targets.
2025-04-15 10:23:20 +02:00
Igor Masar
ea57c1b491 Merge branch 'docs/usb_msc_perf' into 'master'
docs(usb_msc_device): Update documentation with performance optimization results

Closes DOC-10816

See merge request espressif/esp-idf!36919
2025-04-15 15:42:07 +08:00
Sudeep Mohanty
3caddd5393 test(freertos): Added a unit test for tickless idle tick jump scenario
This commit adds a unit test to test that tickless idle mode does not
cause an unexpected jump in tick count after tickless idle mode is
exited.
2025-04-15 09:38:26 +02:00
Sudeep Mohanty
3af5603938 fix(freertos): Fixed tickless idle tick count accounting
This commit fixes an issue where the FreeRTOS kernel does not account
for the pended ticks occuring during automatic light-sleep mode and
hence causing a jump in the tick count at a later stage in the
application lifetime.

Closes: https://github.com/espressif/esp-idf/issues/15642
2025-04-15 09:38:26 +02:00
Island
1edf45e3e8 Merge branch 'bugfix/fix_some_ble_bugs_250331_esp32c3' into 'master'
Fixed some BLE bugs 250331 on esp32c3

Closes BLERP-1682, BLERP-1713, BLERP-1714, BLERP-1715, BLERP-1716, BLERP-1717, BLERP-1718, BLERP-1720, BLERP-1719, BLERP-1721, BLERP-1712, BLERP-1723, BT-3474, BT-3319, BT-3431, and IDFCI-2586

See merge request espressif/esp-idf!38170
2025-04-15 15:28:58 +08:00
Wu Zheng Hui
d98c580d40 Merge branch 'fix/esp32p4_xtal_path_not_on_top' into 'master'
fix(esp_hw_support): fix esp32p4 xtal_xpd depends on TOP power domain

See merge request espressif/esp-idf!38328
2025-04-15 14:54:13 +08:00
Wu Zheng Hui
22f0ee5405 Merge branch 'change/allow_keep_sar_poweron_in_light_sleep' into 'master'
change(esp_hw_support): allow sar power keep on during lightsleep

Closes IDFGH-11268

See merge request espressif/esp-idf!38379
2025-04-15 14:47:55 +08:00
liuning
6418d4fcf3 feat(wifi): support ESP_WIFI_SLP_SAMPLE_BEACON_FEATURE and ESP_WIFI_SLP_BEACON_LOST_DROP_BEACON 2025-04-15 14:40:30 +08:00
C.S.M
03ae34e3f9 Merge branch 'refactor/add_flash_list_check' into 'master'
refactor(spi_flash): Add spi_flash driver list linked check

See merge request espressif/esp-idf!38343
2025-04-15 13:59:41 +08:00
hrushikesh.bhosale
3e1317fd13 fix(ota): Fix the OTA pytest idf_path
Due to ci/pytest-mark-formatter(branch) fix, while executing the main
function from the pytest, it gives error for the incorrect idf_path.

This commit ensure that, idf_path is fixed correctly.
2025-04-15 11:06:51 +05:30
Armando (Dou Yiwen)
b45b29ae16 Merge branch 'fix/fix_mmu_map_concurrent_issue' into 'master'
mmu: fix mmu map concurrent issue

Closes IDFGH-14841

See merge request espressif/esp-idf!37780
2025-04-15 12:02:23 +08:00
C.S.M
ccb4384de4 Merge branch 'contrib/github_pr_15638' into 'master'
fix(i2c): Fix clear bus issue in legacy i2c driver (GitHub PR)

Closes IDFGH-14927

See merge request espressif/esp-idf!38141
2025-04-15 11:40:38 +08:00
morris
15e16599ae refactor(drivers): refactor the iram-safe option of the gdma peripherals
Closes https://github.com/espressif/esp-idf/issues/15771
2025-04-15 11:37:18 +08:00
Chen Jichang
3d08799be7 feat(gdma): support gdma retention on h4 2025-04-15 11:34:58 +08:00
Chen Jichang
e353f92b66 feat(gdma): support gdma on esp32h4 2025-04-15 11:15:40 +08:00
morris
d8f2cd80dc feat(gdma): support allocate cache safe ISR for channels separately 2025-04-15 11:10:45 +08:00
Zhang Shuxian
e664cb0e09 docs: Provide CN translation for usb device 2025-04-15 10:36:59 +08:00
Wang Meng Yang
660898dc24 Merge branch 'bugfix/no_write_evt_report' into 'master'
fix(bt): fixed spp not reporting write event

Closes BTQABR2023-468

See merge request espressif/esp-idf!38327
2025-04-15 08:01:21 +08:00
Kapil Gupta
6e1b2aa23f ci(esp_wifi): Extend eloop test to verify wifi deinit properly 2025-04-14 21:14:23 +05:30
Kapil Gupta
859d18a123 fix(esp_wifi): Fixed some concurrency issues in eloop deinit 2025-04-14 21:14:17 +05:30
Kapil Gupta
bfc86f6094 fix(esp_wifi): Removal of task posting code and use pptask instead 2025-04-14 20:30:53 +05:30
Kapil Gupta
a96d680fc5 fix(esp_wifi): Add various DPP fixes observed during testing 2025-04-14 20:30:53 +05:30
Kapil Gupta
4dac5482e3 fix(esp_wifi): Add eloop blocking call API for public APIs 2025-04-14 20:30:47 +05:30
Peter Marcisovsky
e9bdd39599 Merge branch 'fix/usb_device_fix_ncm_pytest' into 'master'
fix(usb_device): Fix failing NCM device test by increasing dealy for the network ifc

See merge request espressif/esp-idf!38384
2025-04-14 22:40:23 +08:00
Alexey Gerenkov
0cb7eb0465 fix(tools): Fix linter errors in 'idf_tools.py' 2025-04-14 17:10:55 +03:00
Alexey Gerenkov
e7423ebbcc feat(tools): Add standalone Clang libraries to tools.json 2025-04-14 17:10:55 +03:00
Alexey Gerenkov
9768b86095 feat(tools): Update Clang version to esp-19.1.2_20250312
Closes https://github.com/espressif/esp-idf/issues/15731
2025-04-14 17:10:46 +03:00
Jiang Jiang Jian
044de0b128 Merge branch 'bugfix/wps_msg_timeout_increase' into 'master'
fix(esp_wifi): Increase WPS message timeout

See merge request espressif/esp-idf!37395
2025-04-14 20:08:10 +08:00
Shu Chen
d965cf357c Merge branch 'feature/add_ot_cli_ci_case' into 'master'
feat(openthread): add openthread ci ssed case

Closes TZ-1646, TZ-1649, and IDFCI-2648

See merge request espressif/esp-idf!38000
2025-04-14 18:40:28 +08:00
Zhou Xiao
09467baed0 change(ble): [AUTO_MR] Update lib_esp32c2 to fca2b9ea 2025-04-14 17:16:33 +08:00
Zhou Xiao
e2d1a5509e change(ble): [AUTO_MR] Update lib_esp32c6 to 76549818 2025-04-14 17:16:33 +08:00