Commit Graph

35536 Commits

Author SHA1 Message Date
Song Ruo Jing b40257aed2 refactor(dma2d): use ESP_INTR_FLAG_SHARED_PRIVATE flag for DMA2D interrupt 2026-04-09 20:31:41 +08:00
Song Ruo Jing db8b921a13 feat(dma2d): add support for esp32s31 2026-04-09 20:30:26 +08:00
Jaroslav Burian 4f0407e7c7 Merge branch 'fix/mmu-page-size-always-pass' into 'master'
change(esptool_py): always pass --flash-mmu-page-size to elf2image

Closes IDF-12220

See merge request espressif/esp-idf!47002
2026-04-09 17:31:43 +08:00
Island 57ad8c89ab Merge branch 'change/ble_update_lib_20260409' into 'master'
change(ble): [AUTO_MR] 20260409 - Update ESP BLE Controller Lib

Closes BLERP-2638, BLERP-2641, BLERP-2640, BLERP-2613, BLERP-2605, BLERP-2477, BLERP-2632, BLERP-2633, BLERP-2626, BLERP-2601, BLERP-2471, BLERP-2599, BLERP-2598, BLERP-2625, BLERP-2512, BLERP-2676, BLERP-2683, BLERP-2681, and BLERP-2682

See merge request espressif/esp-idf!47388
2026-04-09 16:19:29 +08:00
Xu Si Yu b07620afb6 Merge branch 'feat/radio_spinel_driver_interface_optimization' into 'master'
feat(openthread): optimize radio spinel uart interface

Closes TZ-2415

See merge request espressif/esp-idf!46229
2026-04-09 14:50:50 +08:00
Alexey Lapshin 5b17b4b0ac Merge branch 'fix/esp32s31_mepc_on_async_bus_failure' into 'master'
feat(soc): ESP32-S31: enable SOC_ASYNCHRONOUS_BUS_ERROR_MODE

Closes IDFCI-10299 and IDF-14677

See merge request espressif/esp-idf!47283
2026-04-09 10:20:22 +04:00
Shu Chen 4457821b9a Merge branch 'fix/remove_psa_key_export_from_enhack_gen' into 'master'
fix(openthread): pre-export PSA key bytes in task context to fix ISR mutex crash

Closes IDFCI-9077

See merge request espressif/esp-idf!47224
2026-04-09 06:05:07 +00:00
Mahavir Jain 85f390cbfa Merge branch 'feat/check_crlf_http_server_response_headers' into 'master'
feat(esp_http_server): adds check for crlf in response creation

See merge request espressif/esp-idf!47076
2026-04-09 11:26:43 +05:30
zhaoweiliang d7bfbef862 feat(ble): add adv tx options on ESP32-C5 2026-04-09 11:11:52 +08:00
zhaoweiliang 8ef46541cd feat(ble): add adv tx options on ESP32-H2 2026-04-09 11:11:52 +08:00
zhaoweiliang e85bb5cca8 feat(ble): add adv tx options on ESP32-C6 2026-04-09 11:11:52 +08:00
zhaoweiliang 24d0f0fad1 change(ble): [AUTO_MR] Update lib_esp32c6 to c9fbba6f 2026-04-09 11:11:52 +08:00
zhaoweiliang a23c9acab7 change(ble): [AUTO_MR] Update lib_esp32c5 to c9fbba6f 2026-04-09 11:11:52 +08:00
zhaoweiliang 9bfcc76221 change(ble): [AUTO_MR] Update lib_esp32h2 to c9fbba6f 2026-04-09 11:11:52 +08:00
Armando (Dou Yiwen) 9a41bbaf7d Merge branch 'fix/fix_mmu_dirom_reserve_search_logic' into 'master'
mmu: fixed drom/irom reservation bus cap search logic

Closes IDFCI-10308

See merge request espressif/esp-idf!47357
2026-04-09 02:58:00 +00:00
morris e8e56399d3 Merge branch 'feat/gpio_glitch_filter_esp32s31' into 'master'
feat(gpio): support glitch filter on esp32s31

Closes IDF-14781

See merge request espressif/esp-idf!47353
2026-04-09 10:57:37 +08:00
Jiang Jiang Jian 511e824085 Merge branch 'bugfix/oob_read_in_continue_packet' into 'master'
fix(bt/bluedroid): fixed ACL reassembly dropping valid continuation fragments

Closes IDFGH-17468 and BT-4309

See merge request espressif/esp-idf!47345
2026-04-09 10:51:03 +08:00
Alexey Lapshin 08b423a06b feat(soc): ESP32-S31: enable SOC_ASYNCHRONOUS_BUS_ERROR_MODE
- Enable SOC_ASYNCHRONOUS_BUS_ERROR_MODE to correct MEPC value when debugging.
- Enable gdbstub test_hwloop_jump and test_coproc_registers
2026-04-09 10:39:17 +08:00
Ashish Sharma 9172b31d56 Merge branch 'feat/reenable_rsa_4096_key_perf_test' into 'master'
fix(mbedtls): reenable RSA 4096 bit key performance test

See merge request espressif/esp-idf!47228
2026-04-09 10:14:27 +08:00
morris 5e7475356e Merge branch 'feat/enable_dma_test_on_s31' into 'master'
feat(gdma): enable gdma test on s31

Closes IDF-15527

See merge request espressif/esp-idf!47259
2026-04-09 09:54:38 +08:00
Igor Masar 0b695dbe20 Merge branch 'feat/esp32s31_usb_support' into 'master'
feat(usb): add ESP32-S31 DWC/UTMI support

See merge request espressif/esp-idf!46329
2026-04-09 01:44:30 +08:00
Chen Jichang 6292860255 feat(gdma): enable gdma test on s31 2026-04-08 23:12:04 +08:00
Alexey Lapshin 1735ec860d Merge branch 'feat/refactor_bootloade_linker_scripts' into 'master'
feat(bootloader): split linker scripts into memory and sections

Closes IDF-14119

See merge request espressif/esp-idf!47250
2026-04-08 16:47:14 +04:00
Jin Cheng 8999e14df8 fix(bt/bluedroid): moved L2CAP length check into start packets only 2026-04-08 20:13:37 +08:00
Jon Gilmore 25ddfaab1c fix(bt/bluedroid): fix ACL reassembly dropping valid continuation fragments
The minimum length check in `reassemble_and_dispatch()` applied the START packet minimum (`HCI_ACL_PREAMBLE_SIZE + L2CAP_LENGTH_SIZE` = 8 bytes) to **all** ACL packets, including continuation fragments. Continuation fragments only carry the 4-byte ACL preamble (handle + length) with no L2CAP header, so small but valid continuations (5-7 bytes) were incorrectly rejected as "too short."

This caused the first L2CAP PDU in a rapid burst of BLE GATT indications to be silently dropped. The partial reassembly was orphaned, then discarded when the next indication's START fragment arrived, producing:

```
E BT_HCI: ACL packet too short (len=5)
W BT_HCI: reassemble_and_dispatch found unfinished packet for handle with start packet. Dropping old.
```

Parse the ACL preamble first (requires only 4 bytes) to determine the boundary flag, then apply the L2CAP length check only to START packets. Continuation packets are now accepted with the correct minimum of `HCI_ACL_PREAMBLE_SIZE` (4 bytes).

- ESP32-S3 connected to a BLE peripheral that fragments indications at 40 bytes per L2CAP PDU
- Peripheral sends 8+ indications within ~200ms (burst of state changes)
- The final continuation fragment of the first indication is small (5-6 bytes after type stripping)
- 100% reproducible on every burst; confirmed on ESP-IDF 5.5.3, 5.5.4, and 6.0.0

Verified on ESP32-S3 with a Sub-Zero wall oven (SO3050PESP, firmware 8.5):
- **Before fix:** First indication in every burst lost (ACL reassembly failure)
- **After fix:** All indications in burst delivered correctly, including when the final continuation fragment is 5-6 bytes

Closes https://github.com/espressif/esp-idf/issues/18414
2026-04-08 20:08:49 +08:00
zwx a60e8a66c5 fix(openthread): pre-export PSA key bytes in task context to fix ISR mutex crash 2026-04-08 11:40:47 +00:00
Xu Si Yu 2d1cbe418c feat(openthread): optimize radio spinel uart interface 2026-04-08 19:16:02 +08:00
morris 2994fca5ba Merge branch 'feat/esp32s31-rmt-support' into 'master'
feat(rmt): enable RMT support on esp32s31

Closes IDF-14794

See merge request espressif/esp-idf!47152
2026-04-08 18:46:54 +08:00
Marius Vikhammer 051a116979 Merge branch 'feature/esp_cpu_testcoverage' into 'master'
Add esp_cpu API test coverage

Closes IDF-4920

See merge request espressif/esp-idf!46945
2026-04-08 17:19:49 +08:00
morris d630f83f7d Merge branch 'fix/fix_lcd_cmd_bypassd_unexpectedly' into 'master'
fix(lcd): fix lcd cmd be bypassd unexpectedly

See merge request espressif/esp-idf!46960
2026-04-08 16:28:39 +08:00
Mahavir Jain c99e4d34e9 Merge branch 'fix/esp_tee_bbp' into 'master'
fix(esp_tee): Add missing input validation checks for TEE service calls

See merge request espressif/esp-idf!47149
2026-04-08 13:41:39 +05:30
Marius Vikhammer f2f80f3aa8 Merge branch 'feature/wdt_rom_patch_slim' into 'master'
fix(esp_hal_wdt): reduce IRAM usage of WDT init ROM patch

See merge request espressif/esp-idf!47340
2026-04-08 16:10:53 +08:00
igor.masar 9ab7d5eb03 feat(usb): add ESP32-S31 DWC/UTMI support
Add ESP32-S31 USB DWC/UTMI LL headers, SoC register structures, peripheral
descriptors, capabilities, and linker mappings so the HS OTG controller and
UTMI PHY can be built in esp_hal_usb.

Introduce SOC_USB_FSLS_PHY_NUM on USB-OTG targets to separate FSLS USB_WRAP
support from OTG/UTMI support. Use it to gate usb_wrap, the USB PHY driver,
docs, and example build rules on targets without an FSLS PHY.

Also add UTMI data pulldown control to the HAL, clear the boot-time DWC
suspend state on ESP32-S31, alias the legacy internal PHY target to UTMI for
backward compatibility, and extend usb_phy tests for UTMI-only targets.
2026-04-08 16:01:28 +08:00
Marius Vikhammer edb0e8dba9 Merge branch 'ci/fix_freertos_s31_perf_limits' into 'master'
test: align esp32s31 freertos perf limits

Closes IDFCI-10315 and IDFCI-10316

See merge request espressif/esp-idf!47355
2026-04-08 16:00:13 +08:00
morris e69f2c8346 refactor(gpio): derive SDM registers from GPIO_EXT
Use GPIO_EXT.sigma_delta as the SDM register base on GPIO_EXT-based targets and remove standalone SDM symbols to eliminate manual offset/address maintenance risks.
2026-04-08 15:07:27 +08:00
morris 572e732aca refactor(gpio): derive ETM registers from GPIO_EXT
Use GPIO_EXT.etm as the ETM register base and remove standalone GPIO_ETM symbols to avoid manual offset address maintenance errors across targets.
2026-04-08 15:07:27 +08:00
morris b79cf6d8eb feat(gpio): support glitch filter on esp32s31 2026-04-08 15:07:27 +08:00
armando ca135856c1 fix(mmu): fixed drom/irom reservation bus cap search logic 2026-04-08 15:02:27 +08:00
Ashish Sharma a858f1683d fix(mbedtls): reenable RSA 4096 bit key performance test 2026-04-08 14:54:04 +08:00
Marius Vikhammer 54c6851bf1 test: align esp32s31 freertos perf limits
ESP32-S31 scheduling and spinlock benchmarks match the relaxed P4 thresholds
better than the generic limits, so use those limits to keep the
FreeRTOS perf cases stable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-08 14:46:25 +08:00
Rahul Tank 25d8f3c269 Merge branch 'bugfix/fix_dtm_end_test' into 'master'
fix(nimble): Fix DTM test end packet count parsing

Closes BLERP-2687

See merge request espressif/esp-idf!47327
2026-04-08 12:14:06 +05:30
Marius Vikhammer c65908a719 Merge branch 'feature/s31_core_ci_enable' into 'master'
test: enable pthread tests on esp32s31 and esp32p4

Closes IDF-14683

See merge request espressif/esp-idf!47348
2026-04-08 14:37:05 +08:00
morris 5c55b812be Merge branch 'feat/bitscrambler_esp32s31' into 'master'
feat(bitscrambler): add esp32s31 support

Closes IDF-14714

See merge request espressif/esp-idf!47338
2026-04-08 14:07:56 +08:00
Marius Vikhammer 7b58b459c0 test: enable pthread tests on esp32s31 and esp32p4
Run the pthread functional suite on targets that are ready in CI.
2026-04-08 14:01:09 +08:00
Ashish Sharma 3c2f81c6a8 feat(esp_http_server): adds check for crlf in response creation 2026-04-08 10:59:56 +08:00
morris ae8acf82e7 feat(rmt): enable RMT support on esp32s31
Enable esp32s31 RMT caps and clock source definitions for
esp_driver_rmt.

Add esp32s31 RMT LL/periph hooks, sleep retention metadata, and RMTMEM
linker symbol.
2026-04-08 10:17:10 +08:00
morris 425966f88f Merge branch 'feat/etm_esp32s31' into 'master'
feat(etm): add ETM LL and GPIO ETM support on esp32s31

Closes IDF-14724 and IDF-14786

See merge request espressif/esp-idf!47247
2026-04-08 10:08:24 +08:00
Armando (Dou Yiwen) f8f5e99cb4 Merge branch 'feat/cache_s31' into 'master'
cache: driver support and panic support on s31

Closes IDF-14650, IDF-14651, and IDFCI-10314

See merge request espressif/esp-idf!47156
2026-04-08 02:06:44 +00:00
morris 11f76780cc feat(bitscrambler): support driver on esp32s31 2026-04-08 09:53:21 +08:00
Marius Vikhammer 380dde02d0 ci(esp32s31): skip flash_suspend rtc_clk test until runners available
No esp32s31 boards are registered in the flash_suspend runner pool yet.
The test_rtc_clk_flash test targets all SOC_CLK_TREE_SUPPORTED chips and
creates a flash_suspend CI job for esp32s31 that immediately fails with
no runner assigned. Add a temp_skip_ci matching the existing pattern for
esp32h2.

Tracked in IDF-15531.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 09:12:36 +08:00