Commit Graph
6756 Commits
Author SHA1 Message Date
Jiang Jiang Jian 6b385138ab Merge branch 'ci/update_integration_pipeline_v5.5' into 'release/v5.5'
ci: backport integration test and build docker (v5.5)

See merge request espressif/esp-idf!48377
2026-05-12 19:36:48 +08:00
zhiweijian 3f923aabb7 feat(bt): add shared ble_uart component and update ble_uart_service/docs 2026-05-12 11:09:44 +08:00
Chen Yudong e6014badf4 ci: optimize layer cache for docker build test
use different image tag for different concurrent job
2026-05-11 16:10:08 +08:00
Zhou Xiao 211fda9763 docs(ble): update bridge docs and troubleshooting 2026-05-09 19:43:52 +08:00
Zhou Xiao a0dd9064a0 fix(ble): handle notification setup failures 2026-05-09 19:43:46 +08:00
Zhou Xiao ec2fe6a73a fix(ble): remove BLE service UUID scan filter 2026-05-09 19:43:42 +08:00
Zhou Xiao 4e7ad7a3ef fix(ble): handle permission reply fallbacks
(cherry picked from commit ad7189e7dd)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:07 +08:00
Zhou Xiao 1bfe8a806d fix(ble): fixed edge case issues from ai reviewer
(cherry picked from commit fa8ca07e58)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:07 +08:00
Zhou Xiao e10999a791 feat(tools): improve ble uart reconnect ux
(cherry picked from commit 956299d988)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:07 +08:00
Zhou Xiao d2de518955 feat(tools): add opencode ble uart bridge demo
(cherry picked from commit 0b07f41e5a)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2026-05-09 10:52:06 +08:00
harshal.patil 8121f66ec3 feat(cpu_region_protect): Extend PMP memprot for ESP32-P4 V3 2026-05-08 12:43:26 +05:30
Alexey Lapshin 2ff7df235a fix(panic_test): avoid linker check on dangerous relocations
xtensa linker throws warning
dangerous relocation: windowed longcall crosses 1GB boundary; return may fail

create separate function to call function by pointer to avoid warnings
2026-05-08 12:43:26 +05:30
Jiang Jiang Jian 0d184cbb9d Merge branch 'feat/support-ble-uart-bridge-v5.5' into 'release/v5.5'
feat(ble): add BLE UART bridge core (v5.5)

See merge request espressif/esp-idf!48011
2026-05-06 10:32:29 +08:00
sonika.rathi cf4c425733 fix(fatfsgen): stabilize host read-flash after UART close in pytest 2026-04-30 15:31:36 +02:00
Alexey Lapshin d237f5a7be feat(tools): update gdb version to 17.1_20260402 2026-04-29 19:29:51 +08:00
Zhou Xiao b976ab9586 feat(ble): add BLE UART bridge core 2026-04-28 13:46:04 +08:00
Zhou Xiao 4ceb950dc1 fix(ble): support Python 3.9 type annotations 2026-04-28 12:15:27 +08:00
Zhou Xiao 11447dd9ad feat(ble): add BLE UART daemon notify API 2026-04-28 11:18:21 +08:00
Zhou Xiao 044339c29c docs(ble): document BLE UART bridge usage 2026-04-28 11:18:21 +08:00
Zhou Xiao 3961ad0e29 feat(ble): wire BLE UART bridge CLI 2026-04-28 11:18:21 +08:00
Zhou Xiao f1733f544d feat(ble): add BLE UART daemon RPC API 2026-04-28 11:18:21 +08:00
Zhou Xiao 539ee0503c feat(ble): add BLE UART bridge console 2026-04-28 11:18:21 +08:00
morris 962b4687b7 Merge branch 'fix/p4_eco5_enable_special_test_v5.5' into 'release/v5.5'
fix(ci): p4 eco5 enable special test v5.5

See merge request espressif/esp-idf!47550
2026-04-27 10:41:53 +08:00
wanckl 5d37003c47 ci(p4): p4 eco5 enable parts of special tests 2026-04-24 15:09:56 +08:00
Roland Dobai fb42f5353a Merge branch 'feat/add_ar_binaries_v5.5' into 'release/v5.5'
feat(tools): Added cmake and ninja arm binaries (v5.5)

See merge request espressif/esp-idf!46560
2026-04-23 13:29:48 +02:00
Marek Fiala aa1a0852b7 feat(tools): Added cmake and ninja arm binaries
Closes https://github.com/espressif/esp-idf/issues/18272
2026-04-23 17:31:46 +08:00
Frantisek HrbataandClaude Opus 4.6 2a0099f34a fix(cmake): Fall back to version from components when git describe fails
When version.txt does not exist and git describe fails (e.g. in
release archives or environments without git), IDF_VER was set to
the raw git_describe output which resolves to "-128-NOTFOUND",
causing esp_get_idf_version() to return a garbled string.

Add a fallback that constructs the version string from the
IDF_VERSION_MAJOR, IDF_VERSION_MINOR and IDF_VERSION_PATCH
variables when git describe is not available.

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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-04-23 17:31:35 +08:00
Fu Hanxi c0cb6ad632 revert: unintentional remove of public header exceptions 2026-04-23 09:17:45 +02:00
Fu Hanxi 8a9c2cbeb1 tests: change wifi tests expect timeout to 60
- wifi_router
- wifi_ap
- wifi_high_traffic
2026-04-22 09:22:20 +02:00
Mahavir Jain 0bed60db48 Merge branch 'fix/fix_esp_local_ctrl_potential_double_free_v5.5' into 'release/v5.5'
fix(esp_local_ctrl): fixes a potential double free (v5.5)

See merge request espressif/esp-idf!47489
2026-04-21 10:37:10 +05:30
Jiang Jiang Jian 14ea84f668 Merge branch 'python_cert_macos_v5.5' into 'release/v5.5'
fix: Update idf_tools.py to print correct path to Install Certificates.command on macOS (v5.5)

See merge request espressif/esp-idf!46555
2026-04-17 11:05:52 +08:00
Marius Vikhammer 160151e8be test(system): enable panic tests for P4 2026-04-16 09:54:16 +08:00
Ashish Sharma 1ede92febf fix(esp_local_ctrl): fixes a potential double free 2026-04-12 18:19:11 +08:00
Euripedes Rocha e27c4bc8de Merge branch 'reduce_mqtt_ci_tests' into 'release/v5.5'
ci: Reduce scope of esp-mqtt tests

See merge request espressif/esp-idf!47430
2026-04-10 12:17:10 +02:00
Euripedes Rocha Filho b19ee1650f ci: Reduce scope of esp-mqtt tests
To reduce failures due to CI environment the tests are reduced to a
minimum set. More extensive test suite is run at esp-mqtt repository.
2026-04-10 10:06:49 +02:00
Fu HanxiandCopilot 3cefdfb703 ci: rename eco tags to revision
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 10:58:07 +02:00
Zhou Xiao e31a9b5d9b fix(ble_log_console): use typing.Optional/Union for Python 3.9 mypy compat
Replace Python 3.10+ X|Y union syntax with Optional/Union and remove
@dataclass(slots=True) to fix mypy pre-commit failures on Python 3.9.
2026-04-07 16:34:57 +08:00
Peter Dragun d37496dde5 fix(idf_tools.py): Print correct path to Install Certificates.command on macOS
Related to: https://github.com/espressif/esp-idf/issues/17787
2026-04-07 14:50:28 +08:00
Zhou Xiao da680aa29a fix(ble_log_console): exclude from idf-ci pytest collection to fix CI
idf-ci discovers pyproject.toml pytest config and runs a separate
collection pass with --target all, which finds 0 target tests and
raises RuntimeError. Add to .idf_ci.toml exclude_dirs instead of
deleting tests. Restore all 227 unit tests with lint/mypy fixes.
2026-04-07 12:28:59 +08:00
Zhou Xiao eb9f36be48 docs(ble_log_console): update user guides for new features and run/build scripts
- Recommend run.sh/run.bat as primary launch method with Launch Screen description
- Add build.sh/build.bat section for standalone executable packaging
- Document buffer utilization screen (m key) and two-table stats layout (d key)
- Update menuconfig path, status panel format, and Kconfig option names
- Remove obsolete textual ModuleNotFoundError troubleshooting
- Simplify manual configuration to single toggle (defaults cover most cases)
- Fix ESP32 -> ESP chip in introduction
2026-04-07 12:28:59 +08:00
Zhou Xiao 031e04cc65 feat(ble_log_console): add buffer utilization tracker and display
Add BufUtilTracker to record per-LBM inflight peak data, wire it
through StatsAccumulator and StatsUpdated message for thread-safe
delivery to the UI. Buffer utilization is displayed in a dedicated
BufUtilScreen accessible via the 'm' keybinding, separate from
the frame stats screen ('d').

Also reject false INIT_DONE frames with version==0 caused by
misaligned data during parser sync, preventing spurious stats resets.
2026-04-07 12:28:59 +08:00
Zhou Xiao 602fd8a317 feat(ble_log_console): add BUF_UTIL internal frame decoding
Add BUF_UTIL=5 to InternalSource, BufUtilPool enum, BufUtilResult
TypedDict, BufUtilEntry dataclass, and name resolution helpers.
Add decode branch in internal_decoder with pool/index extraction
from the packed lbm_id field. Tests cover valid decode, pool/index
extraction, and truncated payload handling.
2026-04-07 12:28:59 +08:00
Zhou Xiao b3f7500f71 feat(ble_log_console): add CLI entry point, build scripts, and docs
- Click-based CLI entry point (console.py) with --port, --baudrate,
  --log-dir options and interactive Launch Screen when --port omitted
- Deprecation warning for --output CLI flag
- 'ls' subcommand to list saved capture files
- PyInstaller build scripts (build.sh, build.bat, build_exe.py)
- Convenience run scripts (run.sh, run.bat)
- README rewrite with installation, usage, architecture docs, and
  troubleshooting guide
- User guides in English and Chinese
- Remove old single-file ble_log_console.py
- Register new scripts in executable-list.txt
2026-04-07 12:28:59 +08:00
Zhou Xiao ee1d8a277e feat(ble_log_console): add Textual frontend and app wiring
TUI frontend built on Textual with thread-safe backend integration:

- Launch screen with port/baud/log-dir selection and auto-refresh
- Log view with scrollable RichLog and color-coded write methods;
  Rich markup escaped to prevent crash on bracket characters
- Stats screen split into two tables by time base:
  - Firmware Counters (since chip init): Written and Buffer Loss
  - Console Measurements (since console start): Average Throughput
    and Peak Write — each with separate frames and bytes sub-columns
  - Column widths constrained with min_width/max_width for stable layout
  - Division-by-zero guard when peak window is zero
- Shortcut screen overlay
- Status panel with sync state, checksum mode, and transport metrics;
  speed display uses named UART_BITS_PER_BYTE constant
- Main app wiring: UART reader thread with threading.Lock for serial
  access, frame parser pipeline, stats emission via StatsUpdated
  messages (including funnel snapshots via public accessor for
  thread-safe delivery), BackendStopped message for disconnect
- BackendStopped posted on open_serial failure (prevents stuck status)
- Select.BLANK guard for baud rate in launch screen
- Explicit None guards replace asserts in backend worker
- Wall-clock burst tracking for REDIR frames (no chip-side timestamp)
- SN gap alerts (FrameLossDetected) and traffic spike notifications
2026-04-07 12:28:59 +08:00
Zhou Xiao 956f4b1b69 feat(ble_log_console): add backend with frame parser, stats, and data models
Modular backend for the BLE log console rewrite:

- Frame parser with sync state machine and checksum auto-detection
  (4 modes: XOR/Sum x Full/Header-only); handles incomplete frames
  during re-sync search when previously synced
- Internal frame decoder (INIT_DONE, ENH_STAT, FLUSH, INFO)
- Data models: SourceCode, FrameByteCount, FunnelSnapshot, LossType
- Stats package with composition-root StatsAccumulator orchestrating:
  - TransportMetrics (RX bytes, lifetime-average throughput)
  - FirmwareLossTracker / FirmwareWrittenTracker (ENH_STAT deltas
    with first-report absolute value initialization)
  - SNGapTracker (sliding window reorder-tolerant SN gap detection)
  - PeakBurstTracker (per-source sliding window burst density)
  - TrafficSpikeDetector (wire utilization spike detection)
  - Wall-clock burst tracker for non-timestamped sources (REDIR)
- Torn-read guard on ENH_STAT reports (baudrate-based plausibility)
  with prev-state update on discard to prevent cascading drops
- Console-local metrics (TransportMetrics, PeakBurstTracker) preserved
  across INIT_DONE resets; only ENH_STAT-coupled components reset
- UART transport with port validation and exclusive serial access
- Comprehensive test suite (17 test files, 223 tests)
2026-04-07 12:28:59 +08:00
Island 9651a6bc5d Merge branch 'feat/use_common_config_to_sel_crypt_lib_v5.5' into 'release/v5.5'
Feat/use common config to sel crypt lib (v5.5)

See merge request espressif/esp-idf!46407
2026-04-07 12:11:55 +08:00
Euripedes Rocha 54962cf514 Merge branch 'feat/eth_ci_improvements_v5.5' into 'release/v5.5'
Feat/eth ci improvements (v5.5)

See merge request espressif/esp-idf!46086
2026-04-02 09:10:54 +02:00
Mahavir Jain 9928d929c2 Merge branch 'fix/fix_possible_null_dereference_wifi_provisioning' into 'release/v5.5'
fix(wifi_provisioning): fixes potential null dereference on malformed packet

See merge request espressif/esp-idf!47012
2026-04-01 18:11:33 +05:30
Jiang Jiang Jian a23df61812 Merge branch 'feature/update_gdbstub_v5.5' into 'release/v5.5'
gdbstub: backport fixes (v5.5)

See merge request espressif/esp-idf!46201
2026-03-31 14:15:09 +08:00
Jiang Jiang Jian 5408e1b08d Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260304_v5.5' into 'release/v5.5'
feat(tools): update openocd version to v0.12.0-esp32-20260304 (v5.5)

See merge request espressif/esp-idf!46364
2026-03-31 10:46:53 +08:00