Commit Graph
55172 Commits
Author SHA1 Message Date
radek.tandler 40f25003b4 fix(test_apps_bootloader): Pre-alocate the security provider lock before evaluating mem leaks 2026-09-01 12:53:21 +03:00
Konstantin Kondrashov b4dd9878f7 fix(test_apps_bootloader): Change type of actual_leak_threshold to ssize_t 2026-09-01 12:53:21 +03:00
Konstantin Kondrashov de1e5035b5 feat(app_update): Add auto-confirmation of OTA updates
Enable rollback auto-confirmation by default
2026-09-01 12:53:21 +03:00
Sarvesh Bodakhe bff264775a test(wifi): wait for the idle task after esp_wifi_deinit in Wi-Fi UTs
The Wi-Fi task deletes itself when esp_wifi_deinit() is called, and FreeRTOS
only reclaims its TCB and stack from the idle task afterwards. Test apps that
read the heap right after deinit therefore see that memory as still allocated
and report a leak, most visibly as the eloop unit tests failing on ESP32.

Wait for the idle task at every point where a test deinitialises Wi-Fi
before a leak check, replacing the single-tick delays that only matched what
esp_wifi_deinit() already waits for internally.
2026-09-01 14:17:10 +05:30
Chen Chen bea9fd822c feat(i2s): enable dma burst size configuration 2026-09-01 16:11:57 +08:00
Chen ChenandCursor 3cd64a905d feat(i2s): supports DMA buffer in PSRAM
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 16:07:51 +08:00
Chen ChenandCursor 1dfce4409a feat(gdma): add burst size validation check during config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 16:07:51 +08:00
Jakub Kocka 2a07ad46e7 ci(tools): Clip idf.py failure logs so Windows log_cli cannot stall
pytest.ini enables log_cli, so logging the full ninja stdout after a
failed first-time build is one multi-MB ERROR. That hung shard 3/6 for
hours after the hints test. Log the last 80 lines; keep the full output
on the exception and at DEBUG.
2026-09-01 09:18:32 +02:00
Jakub Kocka 02a689149c ci(tools): Don't abort idf_copy when a worktree submodule is a gitlink
git worktree add materializes submodules as gitlink files. rmtree() cannot
remove those, and exists()+iterdir() on a source gitlink raises and falls
back to shutil.copytree, which leaves mbedtls/include as a file. Unlink
dest gitlinks and only copy populated source directories.
2026-09-01 09:18:31 +02:00
cjin ad7e82efd3 change(ble): Update lib_esp32h4 to 19f4fcca 2026-09-01 15:10:02 +08:00
cjin 45416b31f4 change(ble): Update lib_esp32s31 to 19f4fcca 2026-09-01 15:10:02 +08:00
cjin 9ffa81af33 change(ble): Update lib_esp32c6 to 304d435f 2026-09-01 15:10:02 +08:00
cjin 93b879a073 change(ble): [AUTO_MR] Update lib_esp32c5 to 304d435f 2026-09-01 15:10:02 +08:00
cjin 346aa11397 change(ble): [AUTO_MR] Update lib_esp32h2 to 304d435f 2026-09-01 15:09:49 +08:00
harshal.patil 8daab867b7 test(panic): enable the memprot panic tests for ESP32-S3
sdkconfig.ci.memprot_esp32s3 was built but listed in no CONFIGS_MEMPROT_*, so
the S3 PMS panic path was never exercised.

expect_gme() takes an optional core, for panics with no attributable core.
2026-09-01 12:33:46 +05:30
Marius Vikhammer dce5812654 Merge branch 'test/idf-additions-pinned-create' into 'master'
test(freertos): cover xTaskCreatePinnedToCore pinning semantics

Closes IDF-8553

See merge request espressif/esp-idf!52013
2026-09-01 14:59:49 +08:00
harshal.patil 73dd203204 fix(esp_system): report ESP32-S3 PMS violations as memory protection faults
On Xtensa the PMS violation shares ETS_MEMACCESS_ERR_INUM with the cache error
and arrives as PANIC_RSN_CACHEERR. ESP32-S2 tells the two apart, ESP32-S3 never
did (//MV note in dd938eb95), so PMS faults were reported as "Cache error".

panic_memprot_fill_info() now claims the panic only when
esp_mprot_get_active_intr() reports a pending violation, and the ESP32-S3 cache
error path consults it, falling back to the cache error report as before.
RISC-V has a dedicated interrupt, so its reporting stays unconditional.
ESP32-S2 and ESP32 are untouched.
2026-09-01 12:29:21 +05:30
harshal.patil 9a201cdd1e refactor(esp_system): factor the memprot panic report out of panic_arch.c
Move print_memprot_err_details() and its state out of the RISC-V panic_arch.c
into port/panic_memprot.c behind panic_memprot_fill_info(), so the report can
be shared with the Xtensa PMS targets. No functional change.
2026-09-01 12:29:21 +05:30
Akshat Agrawal c4c59271ee fix(wpa_supplicant): Assign correct return value for SAE y-construction failure 2026-09-01 12:11:10 +05:30
wuzhenghui 5a4f4d0954 feat(example): enable powersave CI test by soc cap 2026-09-01 11:44:50 +08:00
Island 08a66ea273 Merge branch 'refactor/ble-log-esp-timer-rt-migration' into 'master'
refactor: BLE Log Runtime Migration

See merge request espressif/esp-idf!52002
2026-09-01 11:28:59 +08:00
chenjianhua 17d368eecc feat(ble/nimble): support ble esl profile 2026-09-01 10:49:16 +08:00
Jiang Jiang Jian f66095d7be Merge branch 'feat/support_disable_dfs_channel_in_apsta' into 'master'
feat(wifi): support disable dfs channels in apsta

See merge request espressif/esp-idf!51774
2026-09-01 10:14:25 +08:00
tarun.kumar f1615372d2 fix(wifi) : Add validation check in roc and tx_req api's, update doc 2026-08-31 20:31:05 +05:30
Martin Vychodil c505f399a3 Merge branch 'fix/reenable_sdmmc_tests_p4' into 'master'
fix(storage): Re-enable SDMMC related tests for P4

Closes IDF-8970

See merge request espressif/esp-idf!51766
2026-08-31 21:08:27 +08:00
Mahavir Jain a3192567d5 Merge branch 'feat/cpu_region_protection_h4' into 'master'
Memory region protection for ESP32-H4

Closes IDF-12588

See merge request espressif/esp-idf!47070
2026-08-31 17:41:52 +05:30
Mahavir Jain 8224536f91 Merge branch 'fix/heap_align_hw_test' into 'master'
test(heap): DMA alignment test silently passed on every target

See merge request espressif/esp-idf!52131
2026-08-31 17:28:43 +05:30
ShenWeilong a41d5e35cb fix(ble): Fixed occasional supervision timeout and mic error for esp32s31 2026-08-31 19:46:08 +08:00
liqigan 940b71eb45 fix(bt/controller): Fixed event mask not set to default value after hci reset 2026-08-31 19:30:16 +08:00
Mahavir Jain d3fe62cee4 Merge branch 'feat/tee_sec_stg_non_det_sign' into 'master'
change(esp_tee): Force non-deterministic ECDSA signing for TEE secure storage keys

Closes IDF-15937 and IDF-15939

See merge request espressif/esp-idf!50355
2026-08-31 16:07:52 +05:30
Jin Cheng a2911b1b0d docs: update vulnerabilities guide to mention CVE-2026-81507 & CVE-2026-81508 2026-08-31 16:34:11 +08:00
wuzhenghui a9dee592d6 feat(esp_hw_support): use dynamic memory allocation for retention module instances 2026-08-31 16:08:43 +08:00
morris 14c4306e9d Merge branch 'feat/update_h4_eco2_rom_ld' into 'master'
feat(esp32h4): update rom.ld files for esp32h4 eco2

See merge request espressif/esp-idf!51977
2026-08-31 15:52:34 +08:00
morris 83d2634859 Merge branch 'fix/cpp-linkage-mcpwm-example' into 'master'
fix(examples): add C++ linkage guards to MCPWM FOC SVPWM headers

Closes IDFGH-18214

See merge request espressif/esp-idf!52215
2026-08-31 15:51:07 +08:00
wuzhenghui 3c2a0cb4f6 change(esp_hw_support): optimize pmu_sleep RAM cost 2026-08-31 15:26:22 +08:00
wuzhenghui 14e25a8abc change(esp_hw_support): optimize sleep_phy retention static RAM cost 2026-08-31 15:26:22 +08:00
wuzhenghui 11c590c053 change(esp_hw_support): optimize retention driver RAM cost 2026-08-31 15:26:18 +08:00
Li Shuai 36024680e4 change(esp_driver_gpio): extended API help description for gpio_wakeup_disable interface 2026-08-31 14:22:43 +08:00
suda-morris bbf852a6a9 fix(examples): add C++ linkage guards to mcpwm foc svpwm example headers
Closes https://github.com/espressif/esp-idf/issues/19031
2026-08-31 14:12:45 +08:00
morris c96d9d0380 fix(driver): allocate driver objects containing atomic variables from internal SRAM
Objects with atomic members must not be allocated to PSRAM, otherwise
the ordering guarantee of atomic accesses is weakened due to a hardware
behavior on ESP32 chips. Explicitly request MALLOC_CAP_INTERNAL |
MALLOC_CAP_8BIT for:

- i2c master bus object (atomic status/trans_idx)
- i3c master bus object (atomic fsm)
- ISP processor and AE/AF/AWB/HIST controllers (atomic fsm)
- JPEG decoder/encoder dma2d transaction descriptors (atomic started)
- PPA transaction storage embedding dma2d_trans_t
- dma2d m2m test transaction embedding dma2d_trans_t
2026-08-31 13:48:44 +08:00
harshal.patil 8bbec50449 test(mbedtls): cover certificate extent checks in bundle bound checking
Add a bound-checking case for the two cert-extent rejections in
esp_crt_check_bundle(): a certificate whose declared name/key lengths
run past the end of the bundle, and a last certificate placed so close
to the end that its 4-byte header would straddle the bundle boundary.
2026-08-31 13:31:36 +08:00
harshal.patil ed7153ef41 fix(mbedtls): validate cert header extent before reading it in bundle check
esp_crt_check_bundle() read the 4-byte certificate header (name_len,
key_len) via esp_crt_get_len() after only checking that the cert's
start offset lies inside the bundle, so a crafted bundle whose first
or last certificate starts within the final 3 bytes caused a transient
out-of-bounds read of up to 3 bytes before the extent check rejected
it. Require the whole header to lie inside the bundle before reading
it.
2026-08-31 13:31:36 +08:00
Wang Meng Yang 48ba121560 Merge branch 'fix/fxied_wrong_h2_ble_lib_issue' into 'master'
fix(ble): Check if there are illegal library files in controller lib path

See merge request espressif/esp-idf!52180
2026-08-31 12:20:10 +08:00
Li Shuai 5e4081e34d change(esp_pm): extended help description for PM_SLP_DISABLE_GPIO option 2026-08-31 11:09:51 +08:00
morris 5ad2617de3 Merge branch 'ci/jpeg_test_esp32p4_rev1' into 'master'
test(jpeg): add ESP32-P4 rev1 coverage

Closes IDF-15446

See merge request espressif/esp-idf!52182
2026-08-31 10:49:58 +08:00
Jiang Jiang Jian 0cae1ec820 Merge branch 'fix/blacklist_roam_reason' into 'master'
Added more reason codes for blacklist roam

Closes WIFIBUG-2040

See merge request espressif/esp-idf!50875
2026-08-31 10:48:44 +08:00
Steven (Yang Minghui) 6dd110f2d1 test(jpeg): add ESP32-P4 rev1 coverage 2026-08-28 21:35:50 +08:00
ShenWeilong 40706bf28f fix(ble): Check if there are illegal library files in controller lib path 2026-08-28 19:20:18 +08:00
Jiang Jiang Jian 2067f3ae32 Merge branch 'fix/low_rssi_roam_diff' into 'master'
fix(wifi): Require RSSI gain before low-RSSI roam

Closes WIFIBUG-2042

See merge request espressif/esp-idf!51706
2026-08-28 18:00:14 +08:00
Matteo Sandrin 35cf3fa42b fix(bt/bluedroid): delete the unused AVRCP acceptor RCB when A2DP open fails 2026-08-28 05:24:44 -04:00