Commit Graph

51350 Commits

Author SHA1 Message Date
hrushikesh.bhosale
7a50e3ab04 fix(http_server/ws_echo_server): Fix ws_echo_server test URI registration race condition
The WebSocket echo server tests connect immediately after seeing
"Starting server on port:" in the device log, but URI handlers
(/ws, /ws_partial, /auth) are registered asynchronously after the
server starts, taking 40-660ms depending on config and CI load.

This causes two failures:
1. WebSocket handshake returns 404 Not Found because the URI
   handler is not registered yet when the client connects.
2. WebSocket echo returns wrong data because the server is in a
   partially initialized state.

Wait for "Returned from app_main()" before connecting, which
guarantees all URI handlers are registered. Add connection retry
with WebSocketBadStatusException handling to WsClient and to the
partial frame test's raw websocket connection.

Extract _wait_for_server_ready() helper to deduplicate the WiFi
credential input and server readiness logic across all 3 tests.
2026-04-09 11:56:03 +05:30
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
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
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
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
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
Zhang Wen Xu
710f133604 Merge branch 'bugfix/fix_ot_ci_testcases' into 'master'
ci: improve BR host related test cases

See merge request espressif/esp-idf!47089
2026-04-08 02:35:01 +00: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
Marius Vikhammer
ae710978ae Merge branch 'ci/esp32s31_intr_dump_expected_output' into 'master'
ci(esp_intr_dump): add expected output for esp32s31

Closes IDFCI-10298

See merge request espressif/esp-idf!47347
2026-04-08 10:14:23 +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