Commit Graph

55473 Commits

Author SHA1 Message Date
morris
56f65afa93 Merge branch 'feat/rmt_bit_encoder' into 'master'
feat(rmt): add bit encoder for rmt tx

Closes IDFGH-16044, IDFGH-13969, and IDFGH-13698

See merge request espressif/esp-idf!41090
2026-09-15 18:12:16 +08:00
Wang Meng Yang
4e87c4770e Merge branch 'bugfix/fix_cve_bug' into 'master'
fix(bt): fixed multiple issues for Bluetooth Classic Controller

Closes BT-4422

See merge request espressif/esp-idf!52799
2026-09-15 18:06:18 +08:00
Wan Lei
0f1bdfb624 Merge branch 'fix/enable_vfs_test' into 'master'
fix(vfs): enable h4/h21 support and test

Closes IDF-11593 and IDF-12372

See merge request espressif/esp-idf!52803
2026-09-15 17:57:16 +08:00
Sudeep Mohanty
6933b41314 Merge branch 'feat/ulp_component_split' into 'master'
refactor(ulp): separate the ULP coprocessor code from the driver

Closes IDF-15957

See merge request espressif/esp-idf!52268
2026-09-15 11:49:23 +02:00
Island
8c7906c68a Merge branch 'fix/ble_mesh_last_param_oob' into 'master'
fix(ble_mesh): index last_param by inst_type, not controller inst_id

See merge request espressif/esp-idf!51478
2026-09-15 17:43:55 +08:00
Chen Ji Chang
b5ebdde954 Merge branch 'fix/rgb_lcd_restart_bb_index' into 'master'
fix(rgb_lcd): resync bounce buffer index when restarting DMA

Closes IDFGH-18263

See merge request espressif/esp-idf!52748
2026-09-15 17:08:19 +08:00
Shu Chen
05e589b076 Merge branch 'pr_18845' into 'master'
fix(openthread): restore ot_network_auto_start() call in ot_br example (IDFGH-17984)

Closes IDFGH-17984

See merge request espressif/esp-idf!52694
2026-09-15 09:05:19 +00:00
C.S.M
4d7f280139 Merge branch 'feat/tsens_cali_h4' into 'master'
feat(tsens): Load ESP32-H4 temperature calibration from eFuse

Closes IDF-15117

See merge request espressif/esp-idf!52798
2026-09-15 14:44:23 +08:00
morris
5d2e6e7323 Merge branch 'fix/rom_mmap_page_num' into 'master'
fix(spi_flash): size the ROM mmap page table to the region the ROM searches

See merge request espressif/esp-idf!52720
2026-09-15 14:20:55 +08:00
Rahul Tank
707d66796f Merge branch 'bugfix/fix_mesh_compilation' into 'master'
fix(nimble): Fix PSA related compilation issue for nimble upstream mesh example

Closes IDFCI-13922

See merge request espressif/esp-idf!52764
2026-09-15 11:45:31 +05:30
Island
29e854ad3c Merge branch 'feat/bluedroid_enc_adv_data' into 'master'
feat(ble/bluedroid): move Encrypted Advertising Data APIs into the host

See merge request espressif/esp-idf!51898
2026-09-15 14:12:00 +08:00
morris
e4faf4422c Merge branch 'fix/ana_cmpr_h4_timestamp_tolerance' into 'master'
fix(ana_cmpr): adjust delta_us tolerance for ESP32-H4 capture timestamps test

Closes IDFCI-11837, IDFCI-11836, IDFCI-11835, IDFCI-11834, and IDFCI-11833

See merge request espressif/esp-idf!52808
2026-09-15 14:09:51 +08:00
liqigan
8dc1fd60aa fix(bt): Check the peer ECDH public key when using mbedtls 2026-09-15 13:37:44 +08:00
morris
2c1bada767 fix(ana_cmpr): adjust delta_us tolerance for ESP32-H4 capture timestamps test
The overhead of trigger_scan() is ~10 us * resample_limit (3) = ~30 us,
plus the 100 us delay inserted between two trigger_scan() calls, so the
total delta_us on ESP32-H4 should be around 130 us. Widen the assertion
window accordingly.
2026-09-15 11:45:51 +08:00
wanckl
9b977f0a8a fix(vfs): enable h4/h21 support and test 2026-09-15 10:52:51 +08:00
Shu Chen
3cc79e544c Merge branch 'pr_17788' into 'master'
Add support for multiple console types in CLI (IDFGH-16697)

Closes IDFGH-16697

See merge request espressif/esp-idf!52695
2026-09-15 02:12:37 +00:00
Sonika Rathi
bbf1dc9cc3 Merge branch 'bugfix/esp-partition-test-printf-pri' into 'master'
fix(esp_partition): migrate classic tests to test_apps, drop legacy test/

Closes IDFGH-16010

See merge request espressif/esp-idf!52132
2026-09-15 01:32:14 +08:00
Ivan Grokhotkov
f1abda1535 Merge branch 'feature/cache_access_counters' into 'master'
feat(esp_hw_support): add cache access counter API

See merge request espressif/esp-idf!50600
2026-09-14 17:21:49 +02:00
sonika.rathi
9234e36de5 fix(esp_partition): migrate classic tests to test_apps, drop legacy test/
remove unused components/esp_partition/test sources that were
only built by the retired unit-test-app path.
2026-09-14 17:18:26 +02:00
C.S.M
25a86c4608 feat(tsens): Load ESP32-H4 temperature calibration from eFuse
The HAL stub always returned 0 (IDF-15117), so get_celsius() never applied the factory offset.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 19:13:29 +08:00
Wang Mengyang
e719129476 fix(bt): fixed multiple CVE issues for Bluetooth Classic Controller
- fixed multiple CVE bugs of Bluetooth Classic controller on ESP32-S31
- coex: improved BR/EDR ACL active scheduling in case of Wi-Fi coexistence
- SCO: reject unexpected LMP PDU received in SCO related LMP procedures
2026-09-14 17:43:10 +08:00
Shu Chen
5c2781df5c Merge branch 'feature/update-zigbee-examples-v2.0' into 'master'
feat(zigbee): update zigbee examples to v2.0

See merge request espressif/esp-idf!52302
2026-09-14 08:47:36 +00:00
Tomas Rezucha
27322efe3b Merge branch 'contrib/github_pr_18984' into 'master'
fix(usb): reset ROM CDC descriptor on app startup (GitHub PR)

Closes IDFGH-18155

See merge request espressif/esp-idf!51984
2026-09-14 09:57:18 +02:00
Island
d916979fbd Merge branch 'feat/ble_esl_persist_and_ots_speedup' into 'master'
feat(ble/nimble): add ESL persist, AP recovery, and image APIs

See merge request espressif/esp-idf!52374
2026-09-14 15:48:31 +08:00
morris
4cbd7b0e52 Merge branch 'feat/spi_master_high_freq_no_tuning' into 'master'
feat(driver_spi): master driver support higher speed limit if 'input_delay_ns' not use

See merge request espressif/esp-idf!51871
2026-09-14 14:57:00 +08:00
morris
bd0f65b73c Merge branch 'fix/spi_encryption_test_and_guide' into 'master'
fix(driver_spi): add flash encryption test and guide

Closes IDF-15060

See merge request espressif/esp-idf!51261
2026-09-14 14:45:18 +08:00
Axymorrsen
6081ffba84 fix(usb): reset ROM CDC descriptor on app startup 2026-09-14 08:40:50 +02:00
morris
aed151a7d2 Merge branch 'fix/mcpwm_timer_resolution_test' into 'master'
fix(mcpwm): account for adjusted timer resolution in test

See merge request espressif/esp-idf!52698
2026-09-14 12:28:39 +08:00
Rahul Tank
772d2ab1d8 fix(nimble): Fix PSA related compilation issue for mesh example 2026-09-14 09:11:29 +05:30
Island
b2c566e249 Merge branch 'bugfix/fix_bluedroid_read_multi_error_rsp' into 'master'
fix(ble/bluedroid): use valid ATT error for Read Multiple assembly failure

Closes BLERP-3103

See merge request espressif/esp-idf!52749
2026-09-14 11:05:38 +08:00
morris
51fe5182bb Merge branch 'feat/add_lt9611_conponent' into 'master'
feat(lcd): add MIPI-to-HDMI example (lt9611)

Closes IDF-15419

See merge request espressif/esp-idf!52175
2026-09-14 10:57:57 +08:00
morris
6e7121003a Merge branch 'fix/i2c_rx_fifo_drain_before_event' into 'master'
fix(i2c): fixed potential multi-core race in I2C read

Closes IDFGH-18239

See merge request espressif/esp-idf!52501
2026-09-14 10:55:51 +08:00
morris
c901c76e34 Merge branch 'fix/i2s_wav_player_dout_pin' into 'master'
fix(i2s): avoid using MSPI pin in wav_player example

See merge request espressif/esp-idf!52760
2026-09-14 10:25:02 +08:00
Wan Lei
18f20981cc Merge branch 'feat/rtcio_hysterisys_filter_support' into 'master'
feat(driver_gpio): rtcio hysterisys filter support

See merge request espressif/esp-idf!52335
2026-09-14 10:23:23 +08:00
Wan Lei
675006be70 Merge branch 'refactor/spi_sct_part_soc_header_refactor' into 'master'
refactor(driver_spi): refactor header styles of spi sct part on soc and lowlevel

Closes IDF-10583, IDF-10584, IDF-10585, IDF-10586, and IDF-13725

See merge request espressif/esp-idf!51676
2026-09-14 10:22:48 +08:00
Chen Chen
b63ecdc5a0 fix(i2s): use GPIO5 as wav_player default DOUT
GPIO7 is an MSPI flash pin on ESP32-H4, so the example fails to init I2S on that target.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 09:58:12 +08:00
Wang Meng Yang
62fe690ffd Merge branch 'bugfix/fix_pbac_pm_config' into 'master'
fix(bt/bluedroid): enable sniff power management for PBAP client

Closes BT-4500

See merge request espressif/esp-idf!52417
2026-09-14 08:16:50 +08:00
Wang Meng Yang
3d5e088811 Merge branch 'bugfix/msbc_oob_read' into 'master'
fix(bt/bluedroid): fixed OOB read dring mSBC sync word check

Closes BT-4505

See merge request espressif/esp-idf!52499
2026-09-14 08:07:07 +08:00
Mahavir Jain
0d1b945b16 Merge branch 'fix/fix_clk_tree_abba_deadlock' into 'master'
fix(esp32s31): break clk_tree and deadlock with PERIPH_RCC

Closes PM-871

See merge request espressif/esp-idf!52621
2026-09-13 16:40:51 +05:30
Mahavir Jain
4ce95a0296 Merge branch 'fix/esp_tls_cert_flags_on_handshake_failure' into 'master'
fix(esp-tls): report certificate flags when the handshake fails

Closes IDF-16151

See merge request espressif/esp-idf!52627
2026-09-13 16:22:44 +05:30
Rahul Tank
a1b76d3f45 Merge branch 'bugfix/nimble_gattc_write_long_zero_len' into 'master'
fix(nimble): Send Prepare Write Request before Execute Write in write long with zero-length data

Closes BLERP-2813

See merge request espressif/esp-idf!48832
2026-09-13 11:39:30 +05:30
Shreeyash Bhakare
8fd86fecde fix(nimble): Send Prepare Write Request before Execute Write with zero-length data 2026-09-13 09:12:59 +05:30
Roland Dobai
e3e95642e9 Merge branch 'feat/mcp_server_monitor' into 'master'
feat(tools): mcp-server added monitor-device tool

Closes IDFGH-17421 and IDFGH-17857

See merge request espressif/esp-idf!51734
2026-09-11 16:05:13 +02:00
Steven Yang
f49e27bfe8 fix(mcpwm): account for adjusted timer resolution in test 2026-09-11 21:37:12 +08:00
Marek Fiala
d648b858bb feat(tools): adopt esp-pylib for mcp-server logging and ports
Migrate the MCP server extension to the shared esp-pylib library:
- replace raw stderr prints with esp_pylib.logger.log (note/err)
- route informational logs to stderr via set_info_stream so stdout
  stays reserved for the MCP JSON-RPC transport
- enumerate connected devices via esp_pylib.serial_ports.get_port_names
- stub the new imports in the mcp_ext unit tests

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 15:20:45 +02:00
Marek Fiala
3f005c8a4d feat(tools): mcp-server added monitor-device tool
Add a `monitor_device` MCP tool that lets an AI agent run a scripted,
non-interactive `esp-idf-monitor` session against a flashed device and
get back a short status plus a log file path, instead of raw serial
output inline.

Under the hood:

- The agent supplies a plain-text command body (expect/send/sleep/reset/
  exit/comments). `assemble_monitor_script_from_agent_commands()` frames
  it into a script the monitor's non-interactive command mode can
  consume via stdin: it appends `exit` if the agent didn't already end
  with one, and rewrites every bare `expect <regex>` into `expect
  --timeout <timeout_sec> <regex>` via `_monitor_normalize_expect_line()`
  (an already-bounded `expect --timeout ...` line is left untouched so
  the monitor itself reports a bad value). A leading `reset` is not
  prepended - the monitor already resets the chip when it opens the
  port - and any `reset` the agent wrote is left in place.
  `_monitor_parse_sleep_duration()` extracts each `sleep <n>` duration.
  The effective timeout is the sum of every bounded expect duration
  plus every sleep duration. Scripts whose sum exceeds
  `MONITOR_MAX_SCRIPT_SEC` are rejected. If the script has neither
  expect nor sleep (for example only `send`), `timeout_sec` is used so
  the process still has a kill bound.

- `monitor_device()` runs `python -m esp_idf_monitor` via
  `subprocess.run(..., input=script, timeout=2 * effective_timeout)`.
  `no_reset` is forwarded as `--no-reset` so the connection reset can be
  skipped; an explicit `-p` is forwarded when a port is given. Extra
  arguments match `idf.py monitor` where a build exists: baud (`baud`
  tool arg, else `monitor_baud` from `project_description.json`),
  toolchain prefix, `--target`/`--revision`, coredump/panic decode, and
  ELF files with the app ELF first. The 2x hard timeout is a safety net
  independent of the script's own `expect --timeout`/`exit` logic; on
  `TimeoutExpired` the process is killed but any output already captured
  is preserved and logged. `decode_stream()` normalizes that captured
  output, which can be `bytes` on the timeout path even though the
  process otherwise runs in text mode.

- The monitor's exit code drives the reported status via
  `_monitor_status()`, using `EXIT_EXPECT_TIMEOUT` and
  `EXIT_SCRIPT_ERROR` from `esp_idf_monitor.base.constants`: 0 is
  success, 110 means an `expect` pattern never showed up before its
  `--timeout` elapsed, 2 means the monitor rejected the script (bad
  syntax/timeout/regex), anything else is reported generically.

- Serial output and the monitor's own messages share one pipe
  (`stderr=STDOUT`) so decoded panic backtraces stay next to the lines
  that triggered them. `_save_monitor_output()` writes the full merge to
  `<tempdir>/esp_idf_mcp_log/action_monitor/monitor_<timestamp>.log` and
  reports a dedicated `Log file:` line. On non-zero exit or process
  kill, a short tail of that same merge is also returned inline so the
  agent has some failure context without a second file read. If the log
  file can't be written, it falls back to inlining a truncated tail.

Closes https://github.com/espressif/esp-idf/issues/18757
Closes https://github.com/espressif/esp-idf/pull/18385

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 15:20:45 +02:00
Island
5621e186dc Merge branch 'refactor/ble-log-lbm-overhaul' into 'master'
refactor: BLE Log LBM Overhaul

See merge request espressif/esp-idf!52299
2026-09-11 20:09:53 +08:00
jiminxiang
6c9c9979d3 feat(ble_esl): speed up OTS by lengthening ACL events
A 15 ms link with max_ce_len=0 sent one DLE PDU per event and capped
badge frames at ~17 KB/s. Request 7.5–15 ms and a long CE, and refill
the single CoC TX slot instead of treating EBUSY as a hard failure.
2026-09-11 19:58:02 +08:00
jiminxiang
b17865bfa4 fix(ble_esl): apply persist review follow-ups
Let the app supply Absolute Time, keep the AP Sync Key global,
roll back a failed restore, and drop the dead SYNC_LOST generation.
2026-09-11 19:42:04 +08:00
Ivan Grokhotkov
3a20f7595f Merge branch 'feat/esp32s31_support_sta2eth' into 'master'
feat(examples): Add ESP32-S31 support to network/sta2eth example

See merge request espressif/esp-idf!49047
2026-09-11 13:05:02 +02:00