Commit Graph

37364 Commits

Author SHA1 Message Date
morris
651d6a283f refactor(esp_common): centralize ALIGN_UP/ALIGN_DOWN into esp_macros.h
Remove ~50 duplicate local definitions of ALIGN_UP/ALIGN_DOWN/ALIGN_UP_BY/
ALIGN_DOWN_BY across the codebase and replace them with canonical
ESP_ALIGN_UP/ESP_ALIGN_DOWN from esp_macros.h.
2026-07-06 13:36:06 +08:00
Aditya Patwardhan
2468defbff Merge branch 'feat/update_documentation_and_cleanup_for_s31' into 'master'
enable tests and cleanup JIRA references for s31

Closes IDF-14629 and IDF-14628

See merge request espressif/esp-idf!49273
2026-07-06 10:31:47 +05:30
Marius Vikhammer
61c798000f Merge branch 'feature/enable_more_linux_examples' into 'master'
feat(linux): enable more examples for linux target

See merge request espressif/esp-idf!50172
2026-07-06 11:40:51 +08:00
Song Ruo Jing
e4a269d793 Merge branch 'bugfix/dma2d_dequeue_mechanism' into 'master'
fix(dma2d): add a dequeue mechanism for dma2d driver

See merge request espressif/esp-idf!49925
2026-07-06 11:19:53 +08:00
morris
5c88f19a39 Merge branch 'bugfix/i2c_set_but_not_used_variable' into 'master'
fix(i2c): remove unused but set variables

Closes IDF-15788

See merge request espressif/esp-idf!50348
2026-07-06 11:08:56 +08:00
Jiang Jiang Jian
dc6ff3a91e Merge branch 'feat/update_pmu_pau_reg_description' into 'master'
feat(soc): update esp32c61 PMU & PAU reg header descriptions

See merge request espressif/esp-idf!50240
2026-07-06 10:35:29 +08:00
Wang Meng Yang
cbe15485ce Merge branch 'bugfix/fix_some_ctrl_bugs' into 'master'
fix(bt/controller): Fixed BR/EDR controller bugs found by regression tests on ESP32-S31

Closes BTQABR2023-776, BTQABR2023-786, BTQABR2023-800, BT-4378, BT-4381, and BT-4386

See merge request espressif/esp-idf!50251
2026-07-06 08:56:39 +08:00
Mahavir Jain
1e2b539c1c Merge branch 'bugfix/memory-safety-and-validation' into 'master'
fix(security): findings from project Vanessa

Closes SEC-1110, SEC-1115, SEC-1128, SEC-1144, SEC-763, SEC-1159, SEC-1058, SEC-609, SEC-1146, SEC-1163, SEC-1148, SEC-1176, SEC-1177, SEC-109, SEC-1156, SEC-1173, SEC-1174, SEC-1175, SEC-1117, SEC-1171, SEC-231, SEC-1182, SEC-1188, SEC-1157, SEC-328, and SEC-1131

See merge request espressif/esp-idf!50093
2026-07-03 23:26:21 +05:30
Erhan Kurubas
0586fb67c2 Merge branch 'coredump_test_fixes' into 'master'
Coredump fixes

Closes IDF-15881 and IDF-13849

See merge request espressif/esp-idf!48439
2026-07-03 16:38:00 +02:00
Jiang Jiang Jian
c7f22a4508 Merge branch 'fix/fix_sleep_cache_writeback_logic' into 'master'
fix(esp_hw_support): fix esp32s31 sleeping cache writeback logic

Closes PM-807

See merge request espressif/esp-idf!50346
2026-07-03 22:29:21 +08:00
Tomas Rezucha
a7a89f98c9 Merge branch 'docs/usb_wakeup_source' into 'master'
docs(sleep): Update light-sleep USB wake-up source

See merge request espressif/esp-idf!49990
2026-07-03 15:16:12 +02:00
Mahavir Jain
8d9fe4d5fe Merge branch 'fix/revert_redundant_rom_pmp_18769' into 'master'
revert(esp_hw_support): Re-add separate D-ROM PMP entry on C6/H2

Closes IDFGH-17871

See merge request espressif/esp-idf!50161
2026-07-03 17:53:58 +05:30
Wan Lei
b454f03dc8 Merge branch 'fix/twaifd_add_ci_fd_test' into 'master'
fix(driver_twai): add fd test on ci

Closes IDF-13479

See merge request espressif/esp-idf!50195
2026-07-03 19:38:33 +08:00
wuzhenghui
18dac21544 fix(esp_hw_support): fix esp32s31 sleeping cache writeback logic 2026-07-03 19:13:05 +08:00
Rahul Tank
5d40723bdf Merge branch 'bugfix/queue_att_cmd' into 'master'
feat(nimble): Defer all ATT commands until connection event is sent to GAP layer

See merge request espressif/esp-idf!47838
2026-07-03 16:01:07 +05:30
morris
d3b252d8ce fix(i2c): remove unused but set variables 2026-07-03 18:10:15 +08:00
nilesh.kale
9144db695a feat: enable tests and cleanup jira references for s31 2026-07-03 15:31:51 +05:30
Sudeep Mohanty
26b24ee2fa Merge branch 'task/buildv2_full_pipeline' into 'master'
Enable full buildv2 pipeline

Closes IDF-14180

See merge request espressif/esp-idf!49668
2026-07-03 11:28:57 +02:00
Ashish Sharma
7842b5170f fix(esp_tee): fix DS-lock leak, intr-matrix OOB, calloc overflow, attestation leak 2026-07-03 17:20:49 +08:00
Ashish Sharma
b065c38286 fix(esp-tls): reject NULL host/url in plain-TCP and async HTTP connect 2026-07-03 17:19:05 +08:00
Ashish Sharma
7462e3c30a fix(mbedtls): validate crypto input lengths (TEE OOB, auth-bypass, overflows) 2026-07-03 17:19:05 +08:00
Ashish Sharma
d64409fdb2 fix(esp_https_server): free TLS session on transport_ctx OOM in httpd_ssl_open 2026-07-03 17:19:05 +08:00
Ashish Sharma
440dd3b52a fix(esp_hal_security): clamp tag_len in aes_hal_gcm_read_tag to prevent OOB 2026-07-03 17:19:05 +08:00
Ashish Sharma
e09ab205f1 fix(bootloader_support): guard NULL efuse digest slot in secure-boot verify 2026-07-03 17:19:05 +08:00
Ashish Sharma
b939d86b8e fix(esp_http_client): fix digest-auth leaks and credential/handle use-after-free 2026-07-03 17:19:05 +08:00
Ashish Sharma
e838566c5f fix(esp_http_server): close UAF/double-free, buffer underflows, and OOB read 2026-07-03 17:19:05 +08:00
Ashish Sharma
b15caab876 fix(app_update): close OOB read, rollback-guard gap, and length underflow 2026-07-03 17:19:05 +08:00
liqigan
6b8073f901 fix(bt/controller): Fixed BR/EDR controller bugs found by regression tests on ESP32-S31
- Fixed the state machine issue caused by security related LMP procedures on ESP32-S31
- Fixed the issue of insufficient air time for ACK reception from the Central on ESP32-S31
- Fixed the page scan collision issue on ESP32-S31
- Fixed read failures for local supported features and extended features on ESP32-S31
- Fixed NULL access issue during SYNC disconnection on ESP32-S31
- Fixed ACL schedule issue during SYNC connection establishment on ESP32-S31
2026-07-03 16:36:10 +08:00
Chen Chen
81180373f9 Merge branch 'feat/i2s_tx_sync_esp31s31' into 'master'
feat(i2s): support TX FIFO sync on esp32s31

Closes IDF-15360

See merge request espressif/esp-idf!48824
2026-07-03 16:04:54 +08:00
Tomas Rezucha
2859a9b24a docs(sleep): Update light-sleep USB wake-up source 2026-07-03 15:04:33 +08:00
Rahul Tank
2453200f60 fix(nimble): Defer Events / ATT related information from stack
Defer Events/ ATT related GAP events from stack until connection
 event is sent to GAP layer
2026-07-03 11:13:09 +05:30
Mahavir Jain
6df37e9bec Merge branch 'fix/fix_psk_hint_key_null_dereference' into 'master'
Fix/fix psk hint key null dereference

Closes IDF-15854 and TZ-2615

See merge request espressif/esp-idf!50179
2026-07-03 09:39:31 +05:30
Mahavir Jain
625ee1abb7 Merge branch 'fix/harden_esp_security' into 'master'
fix(esp_security): harden crypto peripheral error handling

Closes SEC-236, SEC-351, SEC-352, SEC-353, SEC-355, SEC-356, and SEC-357

See merge request espressif/esp-idf!49828
2026-07-03 09:11:33 +05:30
Ashish Sharma
6d1beb1f23 fix(esp-tls): guard against NULL PSK hint to prevent crash 2026-07-03 11:34:59 +08:00
Wan Lei
86449a8909 Merge branch 'feat/twai_time_trigger_trans' into 'master'
feat(driver_twai): fd hardware support time trigger trans

Closes IDF-12040

See merge request espressif/esp-idf!49524
2026-07-03 11:33:58 +08:00
Mahavir Jain
55c6099838 Merge branch 'refactor/normalize_tee_pycli_script_output' into 'master'
refactor(esp_tee): Normalize the `esp_tee` python tools CLI output

Closes IDF-15329

See merge request espressif/esp-idf!49274
2026-07-03 08:55:22 +05:30
Erhan Kurubas
2bbdd9b017 fix(esp_coredump): count only written tasks against MAX_TASKS_NUM limit 2026-07-02 23:48:37 +02:00
Erhan Kurubas
066e62d077 fix(esp_coredump): fix unused-but-set-variable warnings 2026-07-02 23:09:05 +02:00
Island
1528f58c00 Merge branch 'fix/ble-log-64-bit-io-setup-support' into 'master'
fix(ble_log): use BIT64 over BIT to support 64-bit IO setup

See merge request espressif/esp-idf!50283
2026-07-03 00:54:00 +08:00
Mahavir Jain
4799efa609 Merge branch 'fix/httpd-content-length-truncation' into 'master'
fix(esp_http_server): reject Content-Length above UINT32_MAX

Closes SEC-102 and SEC-229

See merge request espressif/esp-idf!47554
2026-07-02 21:07:27 +05:30
Laukik Hase
93e2c1e637 refactor(esp_tee): Normalize the esp_tee python tools CLI output 2026-07-02 18:25:54 +05:30
Song Ruo Jing
78ccd163cc fix(dma2d): fix non-usable DMA2D_CSC_TX_SCRAMBLE option 2026-07-02 20:25:09 +08:00
Song Ruo Jing
3d8fd22e14 fix(dma2d): fix race with dma2d_force_end and ISR
free_up_channels can only be called once for a started transaction.
Double free will undesirely stop the next picked 2D-DMA transaction on the same channel.
2026-07-02 20:25:09 +08:00
Song Ruo Jing
92024d98b6 fix(dma2d): add a dequeue mechanism for dma2d driver
JPEG driver should be able to either dequeue a pending transaction from
a 2D-DMA pool or force end a processing transaction.
2026-07-02 20:25:09 +08:00
nilesh.kale
dd0cd88756 fix(esp_hw_support): Keep D-ROM PMP entry so newer apps boot on old bootloaders
ESP32-C6/H2 bootloaders <= v5.2.1 configure and lock PMP entries 3-4 as their
D-ROM region; a locked PMP entry cannot be reconfigured until CPU reset.
Commit 366e4ee944 ("Remove redundant PMP entry for ROM region") dropped the
D-ROM entry, and commit d4167fea60 (which also restructured C6/H2 PMP setup)
then renumbered the regions down, placing the application IRAM/DRAM split on
entries 3-4. On an already-deployed older bootloader those entries are locked,
so IRAM never gains execute permission and the chip resets before app_main()
(GitHub issue #18769).

Restore the separate (redundant) D-ROM PMP entry on indices 3-4 so the
application IRAM/DRAM split stays on entries 5-7, clear of the locked range.
This keeps newer applications bootable on older bootloaders.

Closes https://github.com/espressif/esp-idf/issues/18769
2026-07-02 16:56:42 +05:30
Laukik Hase
e9da155a72 Merge branch 'ci/fix_esp_tee_cli_app_build' into 'master'
ci(esp_tee): Fix `tee_cli_app` build failure due to heap size overflow

See merge request espressif/esp-idf!50297
2026-07-02 16:17:32 +05:30
Jiang Jiang Jian
fa86d80f71 Merge branch 'feat/nan_gtk_support' into 'master'
feat(wifi_aware): advertise group data/mgmt protection (GTK/IGTK/BIGTK) and iOS compliance fixes

See merge request espressif/esp-idf!49800
2026-07-02 18:32:56 +08:00
Adam Múdry
ab352fdbaf Merge branch 'fix/sdmmc_double_buffering_psram_dma_capable' into 'master'
fix(sdmmc): Add a better handling of devices accessing PSRAM through DMA

Closes IDFGH-17455

See merge request espressif/esp-idf!47685
2026-07-02 12:16:19 +02:00
Tomas Rezucha
5f84dab44c Merge branch 'change/utmi_phy_eco_src' into 'master'
change(soc/usb): Merge duplicated definitions for P4 v1 and v3

Closes IDF-13430

See merge request espressif/esp-idf!50272
2026-07-02 11:50:06 +02:00
Laukik Hase
e7261f57f5 ci(esp_tee): Fix tee_cli_app build failure due to heap size overflow
- Also fix the `unused variable` warning while builing the PSA
  AES tests with `tee_test_fw` app
2026-07-02 15:14:42 +05:30