Commit Graph
48975 Commits
Author SHA1 Message Date
Jiang Jiang Jian 5f5f86c0eb Merge branch 'fix/heap_trace_stack_corruption_v5.5' into 'release/v5.5'
fix(heap): avoid stack smash when heap tracing stack depth is 0 (v5.5)

See merge request espressif/esp-idf!51522
2026-08-25 10:51:18 +08:00
Jiang Jiang Jian b97e58f89e Merge branch 'bugfix/nvs-deinit-open-handle-leak_v5.5' into 'release/v5.5'
fix(nvs_flash): delete leftover handles on partition deinit (v5.5)

See merge request espressif/esp-idf!51358
2026-08-25 10:50:23 +08:00
Jiang Jiang Jian 8bc2c28cab Merge branch 'fix/esp-event-security-fixes_v5.5' into 'release/v5.5'
fix(esp_event): multiple security and stability fixes (v5.5)

See merge request espressif/esp-idf!51049
2026-08-25 10:47:44 +08:00
Jiang Jiang Jian 1597d07086 Merge branch 'contrib/github_pr_18829_v5.5' into 'release/v5.5'
fix(spiffs): fix off-by-one in spiffsgen.py obj name length check (GitHub PR) (v5.5)

See merge request espressif/esp-idf!50916
2026-08-25 10:45:11 +08:00
Rahul Tank 5161857730 Merge branch 'bugfix/gatt_cach_disconn_v5.5' into 'release/v5.5'
fix(nimble): gatt caching crash on disconnect (v5.5)

See merge request espressif/esp-idf!51965
2026-08-24 21:38:00 +05:30
Jiang Jiang Jian c94f345ef6 Merge branch 'fix/fix_dslp_phy_close_rf_deadlock_v5.5' into 'release/v5.5'
fix(esp_hw_support): fix deepsleep deadlock with phy lock (v5.5)

See merge request espressif/esp-idf!51938
2026-08-24 19:53:54 +08:00
Roland Dobai b1dcd31af1 Merge branch 'fix/harden_empty_toolchain_output_v5.5' into 'release/v5.5'
fix: harden build against empty toolchain output (v5.5)

See merge request espressif/esp-idf!51645
2026-08-24 13:27:43 +02:00
Wang Meng Yang 2f3dc5dd64 Merge branch 'bugfix/bta_disable_not_run_v5.5' into 'release/v5.5'
fix(bt/bluedroid): fixed BTA event dispatch race during module disable (v5.5)

See merge request espressif/esp-idf!51976
2026-08-24 17:29:10 +08:00
Mahavir Jain 82609edeae Merge branch 'fix/disable-key-mgr_v5.5' into 'release/v5.5'
Disable Key Manager support (v5.5)

See merge request espressif/esp-idf!51392
2026-08-24 11:56:19 +05:30
Astha Verma a1fc650365 fix(nimble): Fixed gatt caching crash on disconnect 2026-08-24 11:28:09 +05:30
Jin Cheng 4824c598ae fix(bt/bluedroid): fixed BTA event dispatch race during module disable
- Gate bta_sys_event() on both 'is_reg' and 'reg[id]' to prevent
  stale event delivery.
- Defer bta_sys_deregister() to the end of profile disable handlers
  to ensure pending DISABLE events are processed.
- Add disabling flag to HFP AG for tracking asynchronous teardown.
2026-08-24 10:49:31 +08:00
Euripedes Rocha 635d6e1430 Merge branch 'contrib/github_pr_18648_v5.5' into 'release/v5.5'
esp_eth: make OpenETH ISR logging DRAM-safe (GitHub PR) (v5.5)

See merge request espressif/esp-idf!51925
2026-08-21 10:52:31 +02:00
wuzhenghui 5e835e9b70 fix(esp_hw_support): fix deepsleep deadlock with phy lock 2026-08-21 14:46:39 +08:00
harshal.patil 6459793edd change(security): disable Key Manager support on ESP32-C5/P4/S31
The Key Manager hardware peripheral in its current form needs further
design changes before it can be offered as a production feature.
Until a revised peripheral design is available, withdraw ESP-IDF
support for it on all Key Manager capable targets.
2026-08-21 11:47:41 +05:30
Dhimas Ardinata d42d785455 fix(esp_eth): make openeth ISR log DRAM-safe
Keep the ISR from touching flash-resident log strings while cache is disabled.

Closes #18644
2026-08-21 01:33:31 +00:00
Martin Vychodil cad31b97f5 Merge branch 'fix/fatfs-vfs-fcntl-setfl_v5.5_3' into 'release/v5.5'
fix(fatfs): preserve access mode in VFS F_SETFL (v5.5)

See merge request espressif/esp-idf!51920
2026-08-20 22:47:10 +08:00
Martin Vychodil 75ff3d22a4 fix(fatfs): preserve access mode in VFS F_SETFL
F_SETFL was replacing the whole flags word, so fcntl(fd, F_SETFL, O_APPEND)
made F_GETFL report O_RDONLY|O_APPEND. Keep O_ACCMODE and apply only POSIX
status flags.
2026-08-20 14:45:44 +02:00
morris c197d718bc Merge branch 'feat/isp_dpc_support_v5.5' into 'release/v5.5'
feat(isp): support isp dpc dead pixel correction (v5.5)

See merge request espressif/esp-idf!51471
2026-08-20 11:21:57 +08:00
morris 7f93ab7147 Merge branch 'feat/csi_swap_and_format_conversion' into 'release/v5.5'
CSI 16 bit swap and format conversion  (v5.5)

See merge request espressif/esp-idf!45700
2026-08-20 11:11:29 +08:00
Rahul Tank 93f18f1383 Merge branch 'bugfix/irk_smp_bond_issue_v5.5' into 'release/v5.5'
fix(nimble): Fix unpair_oldest_peer deleting wrong device (v5.5)

See merge request espressif/esp-idf!51837
2026-08-19 16:24:04 +05:30
Wang Meng Yang 2caf79b402 Merge branch 'fix/aireview_pbap_v5.5' into 'release/v5.5'
fix(bt_pbap): Fix some bugs in bluedroid PBAP (v5.5)

See merge request espressif/esp-idf!51729
2026-08-19 10:42:01 +08:00
Wang Meng Yang 9fcbdc00ef Merge branch 'bugfix/ai_review_a2dp_v5.5' into 'release/v5.5'
fix(bt): Fix the critical issues related to A2DP from AI review report (v5.5)

See merge request espressif/esp-idf!50129
2026-08-19 10:38:19 +08:00
gaoxu 12174eb90e feat(isp): support ISP DPC, add tests and use it in multi pipeline example 2026-08-19 09:30:36 +08:00
Rahul Tank 6c52b417f1 fix(nimble): Fix unpair_oldest_peer deleting wrong device
Sort bond entries by bond_count after in-place updates to maintain correct
eviction order, and log IRK resolving-list failures instead of failing the bond.
2026-08-18 12:46:43 +05:30
Jiang Jiang Jian 57f61e7933 Merge branch 'bugfix/fix_some_wifi_bugs_260706_v5.5' into 'release/v5.5'
fix(wifi): fix some wifi bugs 260706 v5.5(Backport v5.5)

See merge request espressif/esp-idf!50397
2026-08-18 14:35:26 +08:00
Rahul Tank 57c627ce6c Merge branch 'feat/add_register_notif_indic_v5.5' into 'release/v5.5'
fix(nimble): Add separate helper functions to register indication (v5.5)

See merge request espressif/esp-idf!51800
2026-08-18 11:48:53 +05:30
Jiang Jiang Jian 79d99dfafc Merge branch 'docs/update_coexist_docs_v5.5' into 'release/v5.5'
docs(coex): enable coexist docs for c61 (v5.5)

See merge request espressif/esp-idf!51380
2026-08-18 12:00:20 +08:00
yangfeng 26dfcb0c86 fix(bt): Fix compatibility with A2DP API legacy usage methods
- Modify the timing of API calls in the A2DP example
- Closes https://github.com/espressif/esp-idf/issues/18786
2026-08-18 11:26:53 +08:00
yangfeng c1a1c97189 fix(bt): Fix the critical issues related to A2DP from AI review report
AVDT:
- Roll back CCB allocation when cmd/rsp queue creation fails
- Free media packet on invalid handle in AVDT_WriteReqOpt
- Zero-init timeout failure message before GETCAP callback
- Initialize lcid_tbl to 0xFF to avoid mapping to tc_tbl[0]
BTA/AVRCP:
- Use size_t for AVRC message copy buffer allocation
- Allocate before register in BTA_AvEnable
- Guard BTA_AvRegister callback when enable never completed
- Remove invalid free of inline Cover Art image_descriptor
A2DP BTC/API:
- Default g_a2dp_on_deinit to true before profile init
- Reject source audio send when A2DP is deiniting
- Add shutdown state check in btc_a2dp_sink_shutdown
- Guard A2DP source timer against freed dynamic local param
2026-08-18 11:26:53 +08:00
gaoxu 5a062218c0 feat(csi): support CSI format conversion and bit swap 2026-08-18 11:14:03 +08:00
Shu Chen e93c339dfc Merge branch 'feat/support_multipan_feature_rcp_20260603_v5.5' into 'release/v5.5'
feat(openthread): support multipan feature for RCP (v5.5)

See merge request espressif/esp-idf!51779
2026-08-18 02:49:37 +00:00
Rahul Tank 14b61b5b7f fix(nimble): Add separate helper functions to register notification/indication 2026-08-18 07:37:38 +05:30
Frantisek Hrbata 3c9d844cbe style(ci): satisfy ruff on check_type_comments.py
The previous commit touches tools/ci/check_type_comments.py, which brings the
file into ruff's scope for the first time in a while and surfaces two
pre-existing findings:

    A004 Import `exit` is shadowing a Python builtin
    F401 `typing.List` imported but unused

Import sys and call sys.exit() rather than shadowing the builtin, which is
also how master writes this file. List is used, but only inside `# type:`
comments that ruff cannot see, so mark the import instead of dropping it:
check_type_comments.py is not on tools/ci/mypy_ignore_list.txt, so mypy checks
it under disallow_untyped_defs and the name has to resolve.

No behaviour change. Verified with the pinned ruff 0.9.7 (check and
format --check) and with mypy 1.19.1, and both exit paths of the script still
behave as before.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-08-17 16:56:14 +02:00
Frantisek Hrbata 2a92260bc1 ci: pass a mypy target that the toolchain still accepts
check_type_comments.py runs ignore-listed files through a relaxed mypy pass
with --python-version 3.8, which overrides the python_version = 3.9 that
.mypy.ini already sets. mypy dropped 3.8 as a modelling target in 1.17.0 and
now rejects the flag while parsing arguments, before it reads any source:

    mypy: error: argument --python-version: Python 3.8 is not supported
                 (must be 3.9 or higher)
    mypy check failed for:
         tools/ldgen/ldgen.py

The hook declares mypy without a version, so which mypy is used is decided
when the ci/images pre-commit-idf-v5.5 image is built. That image is based on
Python 3.9, where Requires-Python caps mypy at 1.19.1, and the image
currently in use carries exactly that. Any MR touching a file listed in
tools/ci/mypy_ignore_list.txt therefore fails check_pre_commit
deterministically, whatever the file contains.

Pass 3.9 instead, matching .mypy.ini and the OLDEST_PYTHON_SUPPORTED = (3, 9)
that tools/python_version_checker.py enforces on this branch. This restores
the pairing master and release/v6.0 already have, where the flag mirrors
.mypy.ini at 3.10.

release/v5.4 and release/v5.3 need no equivalent change: their pre-commit
images are based on Python 3.8, where mypy caps at 1.14.1 and the flag is
still accepted.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-08-17 16:49:27 +02:00
Martin Vychodil 12d5921057 Merge branch 'fix/sdmmc_fatfs_dma_psram_non_cached_region_v5.5' into 'release/v5.5'
fix(sdmmc): Validate DMA buffer address range (v5.5)

See merge request espressif/esp-idf!51151
2026-08-17 20:22:38 +08:00
Euripedes Rocha 2032f3604f Merge branch 'fix/ieee802_3_reset_time_v5.5' into 'release/v5.5'
fix(esp_eth): fixed Ethernet PHY HW reset timing in common PHY code (v5.5)

See merge request espressif/esp-idf!51712
2026-08-17 13:31:41 +02:00
Frantisek Hrbata 8bd2ddf1bf style(ldgen): reformat with ruff-format
release/v5.5's tools/ldgen/ldgen.py predates the ruff-format layout that
pre-commit enforces, so running the hook over this file reports it as
needing reformatting because of code that no change here touches.

Apply ruff-format. That also resolves the E501 on the long
"with open(output_path, ...)" line, since the formatter wraps the call.
No behaviour change.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-08-17 19:04:43 +08:00
Frantisek Hrbata a78ee285c9 fix: harden build against empty toolchain output
On some Windows systems, antivirus, endpoint-security or DLP/encryption
software intercepts short-lived toolchain processes and strips their
stdout when the build captures it through a pipe, while the same command
prints its output normally when run by hand. The tool exits successfully
but returns nothing, and each build step that reads toolchain output then
failed with a different, cryptic error far from the real cause:

- CMake configuration aborted with "Unknown arguments specified" in
  components/xtensa/project_include.cmake, or "check_expected_tool_version
  invoked with incorrect arguments" in components/esp_common.
- ldgen turned the empty objdump output into an opaque pyparsing
  "Expected 'In archive'" traceback.
- idf_tools.py silently reported the compiler/debugger version as
  "unknown", sending users into a fruitless reinstall loop.

Detect the empty result at each consumer and fail (or warn) with an
actionable message that names the likely cause and the remedy:

- tools/cmake/compiler_query.cmake: new __compiler_query() helper runs a
  compiler query and fails with a clear error on empty or failed output.
  It is a standalone module included by the build system utilities, so
  that it is available to the esp_common and xtensa project_include.cmake
  files that call it. The xtensa if() arguments are now quoted so an
  empty result no longer collapses into a parse error.
- tools/ldgen/ldgen.py: _run_objdump() rejects empty objdump output, and
  non-empty-but-unparsable section info is caught and re-raised as a clear
  LdGenFailure instead of a raw pyparsing traceback.
- tools/idf_tools.py: empty version output now warns with the cause and
  returns UNKNOWN_VERSION instead of silently reporting "unknown".

Closes https://github.com/espressif/esp-idf/issues/18727

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-08-17 19:04:43 +08:00
Ondrej Kosta 75b59f9866 fix(esp_eth): fixed Ethernet PHY HW reset timing in common PHY code 2026-08-17 12:07:36 +02:00
Euripedes Rocha de2df030e4 Merge branch 'bugfix/l2tap-test-errno-v5.5' into 'release/v5.5'
test(esp_netif): clear errno before L2TAP asserts v5.5

See merge request espressif/esp-idf!51762
2026-08-17 10:47:27 +02:00
Fu Hanxi 4cfbb2afb3 Merge branch 'ci/use-latest-common-repo_v5.5' into 'release/v5.5'
ci: use main branch of `ci/actions/common` (v5.5)

See merge request espressif/esp-idf!51765
2026-08-17 09:57:26 +02:00
Xu Si Yu bfd38b6d4c fix(openthread): fix configuration-related issues 2026-08-17 14:16:47 +08:00
Wang Meng Yang 9d7bd46045 Merge branch 'change/refactor_hidh_datapath_v5.5' into 'release/v5.5'
Change/refactor hidh datapath[backport v5.5]

See merge request espressif/esp-idf!51280
2026-08-17 10:25:28 +08:00
morris ba1fc474b2 Merge branch 'feat/move_flash_120_out_from_experimental_v5.5' into 'release/v5.5'
feat(flash): p4 flash 120MHz is no longer experimental feature (v5.5)

See merge request espressif/esp-idf!51700
2026-08-17 10:08:13 +08:00
linruihao ef2d22cd4f docs(coex): enable coexist docs for c61 2026-08-17 07:58:32 +08:00
Rahul Tank 222d32c462 Merge branch 'bugfix/fix_restart_gatt_svr_v5.5' into 'release/v5.5'
fix(nimble): Add fix to handle service reset during server start (v5.5)

See merge request espressif/esp-idf!51563
2026-08-16 09:56:56 +05:30
muhaidong 1d816e5345 fix(provisioning): enlarge wifi_prov_mgr app partition 2026-08-15 14:35:27 +08:00
muhaidong 465bae856a fix(blufi): fix esp32 nimble ci iram overflow 2026-08-15 14:35:27 +08:00
muhaidong ed4de45046 fix(wifi): fix some wifi bugs 260706 v5.5
1. support weak func for wifi lmac assert
2. post disconnect event after disassociation tx callback
2026-08-15 10:49:30 +08:00
muhaidong f622b7d8ce fix(wifi): support weak func for wifi lmac assert 2026-08-15 10:49:30 +08:00