Commit Graph
31840 Commits
Author SHA1 Message Date
Wang Meng Yang 3e775da476 Merge branch 'bugfix/qos_div_zero_v5.4' into 'release/v5.4'
fix(bt): update ESP32 libbtdm_app.a to fix several issues (v5.4)

See merge request espressif/esp-idf!52055
2026-09-06 12:08:55 +08:00
Wang Meng Yang ef79f8e26d Merge branch 'bugfix/delete_unused_avrcp_rcb_v5.4' into 'release/v5.4'
fix(bt/bluedroid): delete the unused AVRCP acceptor RCB when A2DP open fails (v5.4)

See merge request espressif/esp-idf!52415
2026-09-06 12:08:32 +08:00
Chen Jian Hua 00affe3251 feat(bt): Add Kconfig option to build the BT OSAL conditionally
(cherry picked from commit 0428ec41a529aa9c83240f40963114b36d80ab7c)

Co-authored-by: chenjianhua <chenjianhua@espressif.com>
2026-09-04 20:50:44 +08:00
Alexey Gerenkov 62c1a66eba Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260831_v5.4' into 'release/v5.4'
feat(tools): update openocd version to v0.12.0-esp32-20260831 (v5.4)

See merge request espressif/esp-idf!52394
2026-09-04 20:23:42 +08:00
YoungsunLi 0624c4b4db fix(esp_lcd): yield from SPI ISR when color trans done callback wakes a task
The return value of on_color_trans_done ("whether a high priority task
has been waken up by this function", see esp_lcd_types.h) was discarded
by the SPI backend. A task unblocked from inside the callback (e.g. via
xSemaphoreGiveFromISR) therefore did not get scheduled until the next
FreeRTOS tick, adding up to 10 ms of latency per color transfer with the
default CONFIG_FREERTOS_HZ=100. The i80 backend already honors the
contract (need_yield -> portYIELD_FROM_ISR); do the same here.
2026-09-04 17:50:32 +08:00
morris 80b1f8b428 Merge branch 'feat/soc_usb_fsls_phy_num_backport_v5.4' into 'release/v5.4'
feat(soc): add SOC_USB_FSLS_PHY_NUM for USB-OTG targets (backport v5.4)

See merge request espressif/esp-idf!47944
2026-09-04 14:12:38 +08:00
Shu Chen 11de5b25ee Merge branch 'fix/fix_openthread_netif_glue_deinit_issue_v5.4' into 'release/v5.4'
fix(openthread): fix stack deinit by reversing netif glue teardown and hardening workflow cleanup (v5.4)

See merge request espressif/esp-idf!52400
2026-09-04 02:44:15 +00:00
Matteo Sandrin 440c2fa393 fix(bt/bluedroid): delete the unused AVRCP acceptor RCB when A2DP open fails 2026-09-04 10:08:12 +08:00
Shu Chen 10343c8db9 Merge branch 'feat/support_multipan_feature_host_20260813_v5.4' into 'release/v5.4'
feat(openthread): add support for the multipan feature on host devices (v5.4)

See merge request espressif/esp-idf!52378
2026-09-04 02:06:58 +00:00
igor.masar ee4f1deb85 feat(soc): add SOC_USB_FSLS_PHY_NUM for USB-OTG targets
Introduce SOC_USB_FSLS_PHY_NUM on ESP32-S2, ESP32-S3 and ESP32-P4 to
expose the number of FSLS USB_WRAP PHYs available on each target. This
separates FSLS USB_WRAP support from OTG/UTMI support so that downstream
code can gate FSLS PHY handling independently.
2026-09-04 09:38:35 +08:00
Wang Meng Yang 52540e376d Merge branch 'fix/aireview_obex_v5.4' into 'release/v5.4'
fix(bt_obex): fix some bugs in bluedroid obex (v5.4)

See merge request espressif/esp-idf!52305
2026-09-04 07:54:20 +08:00
harshal.patil 990cc666a6 test(mbedtls): add partial-block PSRAM coverage for AES
Extend the CTR test data length to 6433 bytes so the trailing partial
block is exercised with external RAM buffers (which stalls the ESP32-S2
Crypto DMA on an unfixed driver).
2026-09-03 19:31:22 +05:30
harshal.patil b3f80a1614 fix(mbedtls/aes): fix ESP32-S2 Crypto DMA stall on PSRAM output with partial blocks
The ESP32-S2 Crypto DMA in-channel stalls silently when a receive
descriptor list transitions from external to internal RAM. The AES
driver hits this when a PSRAM-output operation has a trailing partial
block, as the internal stream descriptor is linked after the external
RAM data descriptors.

- esp_aes_process_dma(): process the block-aligned part and the partial
  block as two separate DMA operations, keeping each descriptor list
  uniform
- crypto_dma_ll_reset(): also reset the in-channel (per the TRM receive
  reset sequence), otherwise stale state from a preceding external-RAM
  operation corrupts the next operation's output

The GCM DMA path is unaffected; it never operates on PSRAM buffers.
2026-09-03 19:28:56 +05:30
Xu Si Yu f62a168307 fix(openthread): fix stack deinit by reversing netif glue teardown and hardening workflow cleanup 2026-09-03 20:04:11 +08:00
Jin Cheng aaeb144583 fix(bt): update ESP32 libbtdm_app.a to fix several issues
- fixed IntegerDividedByZero during Qos negotiation.
  Closes https://github.com/espressif/esp-idf/issues/18951
- ignored the check for bandwidth and retransmission effort when Host
  accepts the SCO connection request.
2026-09-03 19:43:26 +08:00
Erhan Kurubas 29b7fb858f change(system): increase OCD stub memory reservation from 8K to 12K 2026-09-03 13:12:49 +02:00
Xu Si Yu 0400dc279a feat(openthread): support multipan feature for host device 2026-09-03 17:49:20 +08:00
Song Ruo Jing d17948c05d fix(uart): reduce current consumption in sleep mode 2026-09-03 14:47:37 +08:00
liqigan ed836fa70b change(bt/bluedroid): Used dynamic osi event to reduce lock cost 2026-09-02 19:18:45 +08:00
Chen Jichang b71727e085 fix(dsi): add missing analog circuity config for SI issue 2026-09-02 16:27:02 +08:00
Chen Jichang 8683725b99 feat(dsi): add timeout check for lp cmd rx 2026-09-02 16:27:02 +08:00
hejiaxin 395f5d9404 fix(bt_obex): fix some bugs in bluedroid obex
- fix goepc wait state switch
- fix psm unbind's mismatch
- fix some resources leak
- fix goep connection's incorrect ternimation when congesting
- Add some NULL ptr check
2026-09-02 14:30:43 +08:00
Wang Meng Yang 37a2600154 Merge branch 'fix/bt_memory_v5.4' into 'release/v5.4'
fix(bt_memory): Reduce memory usage in transfer (v5.4)

See merge request espressif/esp-idf!52278
2026-09-02 14:11:41 +08:00
Michael.B d2765dfcc3 spi_flash: fix PSRAM rodata phys2cache mapping
Use the full rodata page range when converting flash physical addresses back to cache addresses for XIP PSRAM. RISC-V extram stack coredump tests are temporarily skipped in CI until coredump supports PSRAM task stacks (IDF-15623).
2026-09-02 02:40:20 +08:00
Xiao Xufeng 41b0ce7bff bootloader_utils: fixed missing unmap in load_partition_table when table verify failed 2026-09-02 02:40:20 +08:00
morris 7080d6ce36 Merge branch 'fix/dualcore_branch_predictor_cache_race_v5.4' into 'release/v5.4'
fix(spi_flash): disable branch prediction on the parked core during flash ops (v5.4)

See merge request espressif/esp-idf!52199
2026-09-01 18:22:06 +08:00
hejiaxin 49bac9fbbf fix(bt_avrcp): size some AVRC command buffers 2026-09-01 11:24:18 +08:00
hejiaxin 8ac6aa8aa0 fix(bt_l2cap): size L2CAP ERTM S-frame & RX SDU buffer 2026-09-01 11:24:18 +08:00
hejiaxin b08f145416 fix(bt_sdp): size SDP TX buffers 2026-09-01 11:24:18 +08:00
hejiaxin 1995bfcb4d fix(bt_rfcomm): size RFCOMM TX buffers by peer MTU 2026-09-01 11:24:18 +08:00
hejiaxin 5036f97cb8 fix(bt_hid): size HID TX buffers to report length 2026-09-01 11:24:17 +08:00
Marius Vikhammer 87c280843a fix(esp_system): delay after light sleep stress cleanup 2026-09-01 10:39:45 +08:00
Marius Vikhammer 2caee3ad9c fix(esp_system): wait for idle after light sleep stress tasks
Self-deleted worker tasks are only freed once idle runs. A 500us
periodic esp_timer can starve that cleanup and trip Unity's leak check.
2026-09-01 10:32:23 +08:00
Euripedes Rocha FilhoandCursor b1d6c723f2 fix(esp_netif): harden NULL and OOM handling in netif APIs
Use a temporary pointer for br_glue port-list realloc so a failure does
not clobber the existing array. Reject NULL mac in esp_netif_set_mac and
validate config->base in esp_netif_new_api before use.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 07:49:09 +02:00
wuzhenghui a76e14afe7 fix(spi_flash): integrate branch prediction control during cache operations 2026-08-31 10:51:05 +08:00
Ashish Sharma 8201d8c607 fix(spi_flash): disable branch prediction on the parked core during flash ops 2026-08-31 10:50:20 +08:00
Shen Wei Long 3de466374d fix(ble): Check if there are illegal library files in controller lib path
(cherry picked from commit 40706bf28f)

Co-authored-by: ShenWeilong <shenweilong@espressif.com>
2026-08-31 02:45:38 +00:00
Mahavir Jain 3330e2460a Merge branch 'fix/fix_psk_hint_key_null_dereference_v5.4' into 'release/v5.4'
Fix/fix psk hint key null dereference (v5.4)

See merge request espressif/esp-idf!52094
2026-08-30 22:23:58 +05:30
Jiang Jiang Jian 42b44c7d9b Merge branch 'fix/revert_dma_pool_default_caps_v5.4' into 'release/v5.4'
fix(heap): revert dma pool default malloc caps (v5.4)

See merge request espressif/esp-idf!52146
2026-08-28 15:50:01 +08:00
Wang Meng Yang 077bb9ec72 Merge branch 'change/refactor_hidh_datapath_v5.4' into 'release/v5.4'
Change/refactor hidh datapath[backport v5.4]

See merge request espressif/esp-idf!51281
2026-08-28 08:55:03 +08:00
Michael.B 16dac308e4 fix(psram): make IDF-15875 backport build clean on v5.4
Guard external-cache suspend for pure-ram apps where esp_cache_utils is
not linked, move esp32p4-only xip_psram sdkconfig options into a
target-specific file, and add from __future__ import annotations so
pytest collection works on CI Python 3.8.
2026-08-28 02:59:44 +08:00
wuzhenghui bf8d535f7b fix(heap): revert DMA pool MALLOC_CAP_DEFAULT caps 2026-08-27 19:43:25 +08:00
Wang Meng Yang 2c20296722 Merge branch 'bugfix/avrcp_version_compatibility_v5.4' into 'release/v5.4'
fix(bt): Fix the issue of AVRCP version compatibility (v5.4)

See merge request espressif/esp-idf!52089
2026-08-27 18:34:04 +08:00
zhanghaipeng 83d92f35e4 docs(bt): clarify Bluedroid GATT signed write API comments
Correct misleading CHAR_PROP_BIT_AUTH wording and document CSRK-based
signed write usage for server permissions and client write APIs.
2026-08-27 17:26:05 +08:00
zhanghaipeng 8643f157fc fix(ble/bluedroid): allow osi_event re-post during POSTING window
Do not reject osi_thread_post_event() when only POSTING is set.
QUEUED already prevents double-queueing; rejecting POSTING caused
HCI downstream lost wakeup. Add generic osi_event and hci downstream
diagnostics for post failures.
2026-08-27 17:21:35 +08:00
C.S.M 50485c4236 fix(jpeg): validate encoder buffer sizes before header/DMA access
Bound JPEG header emission by outbuf capacity and reject undersized
input buffers before programming TX DMA to avoid heap corruption and
out-of-bounds DMA reads.

(cherry picked from commit a7ac00b812)
2026-08-27 13:58:06 +08:00
Michael.B 6430553caa test(spi_flash): temp_skip_ci esp32h4 flash_encryption xip_psram
Keep SOC_SPIRAM_XIP_SUPPORTED target selection and skip esp32h4 in CI
until FE support is ready (IDF-12388).
2026-08-27 03:06:30 +08:00
Michael.B a2a4dec210 fix(psram): suspend external cache during CPU freq switch on esp32p4
Suspend the external-memory cache around the boot CPU frequency switch so
PSRAM-XIP / write-back cache state cannot be corrupted mid-switch.
2026-08-27 03:06:30 +08:00
Michael.B c0e1a76ac4 test(spi_flash): add flash_encryption xip_psram repro coverage
Add an IDF-15875 regression config that places .ext_ram.bss in PSRAM under
XIP, and align flash_encryption disable_test rules with available runners.
2026-08-27 03:06:29 +08:00
Island 803ab14795 Merge branch 'change/ble_update_lib_20260824_v5.4' into 'release/v5.4'
change(ble): [AUTO_MR] 20260824 - Update ESP BLE Controller Lib (5.4)

See merge request espressif/esp-idf!52018
2026-08-26 22:00:46 +08:00