Commit Graph

51361 Commits

Author SHA1 Message Date
Guillaume Souchere e7cf8cd3cb fix(mbedtls): fix undefined esp_mbedtls_mem_calloc/free at link time
platform.c (compiled into the 'builtin' archive) calls
esp_mbedtls_mem_calloc and esp_mbedtls_mem_free directly by name via
the MBEDTLS_PLATFORM_STD_CALLOC/FREE macros in esp_config.h.
Previously, esp_mem.c was compiled into the 'tfpsacrypto' archive, which
appears after 'builtin' in the link command, causing the linker to fail
with undefined reference errors when 'builtin' was processed first.

Moving esp_mem.c into 'builtin' to assure that the function used by
esp_mbedtls_mem_calloc and esp_mbedtls_mem_free are available when
pltform.c is linked.
2026-04-09 10:51:21 +02: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
Mahavir Jain ff58d2e93d Merge branch 'fix/x509_bundle_replace_unreliable_url' into 'master'
fix(examples): replace unreliable external URL in https_x509_bundle example

Closes IDFCI-3853, IDFCI-7715, and IDFCI-6393

See merge request espressif/esp-idf!47328
2026-04-09 10:07:18 +05:30
Island 45b2eebaf9 Merge branch 'feat/remove_led_from_ble_mesh_examples' into 'master'
refactor(ble_mesh): remove LED hardware dependency from examples

See merge request espressif/esp-idf!47308
2026-04-09 11:20:35 +08:00
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
Wang Ning 0a51e5afbc Merge branch 'contrib/github_pr_18395' into 'master'
docs: fix uninstall command in EIM guide (GitHub PR)

Closes IDFGH-17435

See merge request espressif/esp-idf!47180
2026-04-09 10:47:57 +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
Fu Hanxi 508ba7ae04 Merge branch 'ci/pre-commit-idf-ci' into 'master'
ci: fix pre-commit idf-ci version

See merge request espressif/esp-idf!47366
2026-04-08 16:01:00 +02:00
igor.udot 901eeae406 ci: enable filter_non_test_related_apps_by_modified_files 2026-04-08 15:48:28 +02:00
igor.udot 1509d7493d ci: fix pre-commit idf-ci version 2026-04-08 15:48:18 +02: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
Fu Hanxi bb2b0ada18 Merge branch 'revert-18c5cab8' into 'master'
Revert "Merge branch 'ci/filter_non_test_related_apps_by_modified_files' into 'master'"

See merge request espressif/esp-idf!47369
2026-04-08 12:40:44 +02:00
Tinyu 622ed5335a docs: fix uninstall command in EIM guide 2026-04-08 18:21:01 +08:00
Igor Udot 1d6e673283 Revert "Merge branch 'ci/filter_non_test_related_apps_by_modified_files' into 'master'"
This reverts merge request !47321
2026-04-08 18:13:01 +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
Igor Udot 18c5cab899 Merge branch 'ci/filter_non_test_related_apps_by_modified_files' into 'master'
Ci/filter non test related apps by modified files

See merge request espressif/esp-idf!47321
2026-04-08 15:15:44 +08:00
hrushikesh.bhosale 995c0f129e feat(pytest_https_x509_bundle): Removed the flaky marker from the tests 2026-04-08 12:38:46 +05:30
luoxu 4b7cb8cecc refactor(ble_mesh): remove LED hardware dependency from examples 2026-04-08 15:08:21 +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