Commit Graph
6429 Commits
Author SHA1 Message Date
Zhou Xiao 9b3b517c45 fix(ble): fixed ci failures for backport 2026-04-28 12:34:02 +08:00
Zhou Xiao d72a5a616e feat(ble): add BLE UART daemon notify API 2026-04-28 11:22:14 +08:00
Zhou Xiao 2a10833305 docs(ble): document BLE UART bridge usage 2026-04-28 11:22:14 +08:00
Zhou Xiao a13aadfd62 feat(ble): wire BLE UART bridge CLI 2026-04-28 11:22:14 +08:00
Zhou Xiao 8ff14afa08 feat(ble): add BLE UART daemon RPC API 2026-04-28 11:22:14 +08:00
Zhou Xiao 1fe674f8c0 feat(ble): add BLE UART bridge console 2026-04-28 11:22:14 +08:00
Island 6359809343 Merge branch 'dev/ble-log-202603_v5.4' into 'release/v5.4'
dev: BLE Log 202603 (5.4)

See merge request espressif/esp-idf!47275
2026-04-20 17:22:55 +08:00
Jiang Jiang Jian cf6ed7e938 Merge branch 'feat/use_common_config_to_sel_crypt_lib_v5.4' into 'release/v5.4'
Feat/use common config to sel crypt lib (v5.4)

See merge request espressif/esp-idf!46406
2026-04-20 11:04:05 +08:00
Mahavir Jain 9ca7cd4dd5 Merge branch 'fix/fix_possible_null_dereference_wifi_provisioning_v5.4' into 'release/v5.4'
fix(wifi_provisioning): fixes potential null dereference on malformed packet (v5.4)

See merge request espressif/esp-idf!47452
2026-04-19 21:25:07 +05:30
Mahavir Jain 7787aaca2f Merge branch 'fix/fix_esp_local_ctrl_potential_double_free_v5.4' into 'release/v5.4'
fix(esp_local_ctrl): fixes a potential double free (v5.4)

See merge request espressif/esp-idf!47490
2026-04-19 21:24:51 +05:30
morris deabbb0664 Merge branch 'ci/reenable_p4_tests_v5.4' into 'release/v5.4'
ci: re-enable p4 eco4 runner (v5.4)

See merge request espressif/esp-idf!43909
2026-04-17 19:05:49 +08:00
Fu Hanxi 0a662a15f9 Merge branch 'ci/fix_check_build_test_rules_script' into 'release/v5.4'
ci: fix check_build_test_rules script (v5.4)

See merge request espressif/esp-idf!46711
2026-04-17 11:52:02 +02:00
Marius Vikhammer 296b6eab94 change(version): Update version to 5.4.4 2026-04-14 14:31:36 +08:00
Ashish Sharma 1d4b776775 fix(esp_local_ctrl): fixes a potential double free 2026-04-12 18:19:20 +08:00
Ashish Sharma 2bda8dfb4e fix(wifi_provisioning): fixes potential null dereference on malformed packet 2026-04-10 12:29:11 +08:00
Zhou Xiao 0e54ef88b3 fix(ble_log_console): resolve pre-commit flake8, mypy, and import ordering failures
Replace Python 3.10+ X | Y union syntax with Optional/Union from typing,
remove unsupported @dataclass(slots=True), fix flake8 E203 slice whitespace,
and apply auto-fixed import ordering and quote style.
2026-04-07 16:25:09 +08:00
Zhou Xiao 37dc0826e6 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 13:08:03 +08:00
Zhou Xiao 18e3d57c40 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 13:08:03 +08:00
Zhou Xiao 51d5afaad1 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:39:22 +08:00
Zhou Xiao 19480984f1 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:39:17 +08:00
Zhou Xiao 185271838a 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:38:47 +08:00
Zhou Xiao 43a8948868 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:37:20 +08:00
Zhou Xiao 720182aeb2 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:37:15 +08:00
luoxu ff5ad1fb93 remove(ble_mesh): deprecate the tinycrypt library within the Bluetooth Mesh component 2026-03-31 00:06:14 +08:00
Evgeny Torbin 6e3bc6b950 ci: fix check_build_test_rules script 2026-03-20 15:42:48 +01:00
armando de66e03281 ci(p4): temp disable no runner tests 2026-03-20 14:07:00 +08:00
armando be7ce3836c feat(ci): re-enable p4 eco4 runner 2026-03-17 13:32:47 +08:00
Jiang Jiang Jian 25a017a9d7 Merge branch 'feature/update_gdbstub_v5.4' into 'release/v5.4'
gdbstub: backport fixes (v5.4)

See merge request espressif/esp-idf!46581
2026-03-17 10:56:55 +08:00
Alexey Gerenkov 6ea0fe1c15 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20260304_v5.4' into 'release/v5.4'
feat(tools): update openocd version to v0.12.0-esp32-20260304 (v5.4)

See merge request espressif/esp-idf!46365
2026-03-16 20:26:43 +08:00
Alexey Lapshin 2eebcf27c6 fix(esp_gdbstub): adapt xtensa headers 2026-03-16 15:17:34 +07:00
Alexey Lapshin cbba99bf03 feat(esp_gdbstub): support watchpoint trigger reason 2026-03-12 19:15:10 +07:00
Alexey Lapshin c807f27bec fix(gdbstub): fix task lookup by frame 2026-03-12 19:15:10 +07:00
Alexey Lapshin d551d86f17 fix(gdbstub): xtensa: fix FPU registers read and write
Closes https://github.com/espressif/esp-idf/issues/17944
2026-03-12 19:15:10 +07:00
Alexey Lapshin 2f856a8f88 feat(gdbstub): add f- and q-registers support 2026-03-12 19:15:09 +07:00
Alexey Lapshin 83004a3a71 feat(gdbstub): add riscv xesppie extension support 2026-03-12 19:13:57 +07:00
Erhan Kurubas 13f35a4c9d feat(tools): update openocd version to v0.12.0-esp32-20260304 2026-03-12 08:54:07 +01:00
Evgeny Torbin f7395255da test: format all test scripts 2026-03-11 07:34:34 +01:00
Ondrej Kosta 0fe61ada78 feat(esp_eth): Ethernet test refactor
ETH tests use setUp-tearDown to init/deinit resources
2026-03-05 21:39:16 +08:00
Alexey Gerenkov a0903c46be Merge branch 'fix/coredump_test_tcb_corrupted_v5.4' into 'release/v5.4'
test(espcoredump): fix test for corrupted TCB handling in coredump (v5.4)

See merge request espressif/esp-idf!45328
2026-02-05 18:33:28 +08:00
Alexey Gerenkov 25e5769007 Merge branch 'feature/upgrade_toolchain_to_esp-14.2.0_20260121' into 'release/v5.4'
feat(tools): update toolchain version to esp-14.2.0_20260121

See merge request espressif/esp-idf!45455
2026-01-30 21:04:13 +08:00
Alexey Lapshin 3d7c5c1f78 feat(tools): update toolchain version to esp-14.2.0_20260121 2026-01-28 00:21:29 +07:00
Erhan Kurubas 252624ada0 test(panic): add retry logic to espcoredump subprocess call 2026-01-21 08:31:57 +03:00
Erhan Kurubas 993cdd19e7 test(espcoredump): fix test for corrupted TCB handling in coredump 2026-01-21 08:13:17 +03:00
Erhan Kurubas 33af9bffc4 test(panic): improve stack dump capture to return full hex content 2026-01-21 08:02:19 +03:00
Ferdinand Bachmann eb6b36732f fix(cmake): Fix "IMPORTED_LOCATION not set for imported target" errors
esp-idf uses imported targets as dummy targets that are never linked.
Previous CMake versions would ignore these and not error on unset
IMPORTED_LOCATION if they are never actually linked. CMake 4.2 and newer
errors during codemodel-v2 api queries when imported targets are missing
IMPORTED_LOCATION, so set a dummy location that would error when
actually linked, which fixes the error during api queries.

Closes https://github.com/espressif/esp-idf/pull/18103
2026-01-16 12:11:34 +01:00
Frantisek Hrbata 382a904873 fix(ldgen): correctly place symbols generated by compiler during IPA
As part of inter-procedural optimizations (IPA), the compiler may
perform tasks such as constant propagation for functions. This involves
generating a specialized version of a given function with a new symbol
name that includes a suffix. For example, during constant propagation,
the compiler might create a specialized version named
`spiflash_start_core.constprop.0` for the `spiflash_start_core`
function. Additionally, the compiler may generate multiple clones of a
single function. Currently, when ldgen performs symbol placement, it
does not account for these compiler-generated functions, leading to
their incorrect or unexpected placement in memory (markers).

Consider a linker fragment with:

```
[mapping:spi_flash]
archive: libspi_flash.a
entries:
    esp_flash_api: spiflash_start_core (noflash)
```

The `spiflash_start_core` function should be placed in IRAM. However,
the compiler might generate an optimized version of this function with a
`.constprop.0` suffix, resulting in a
`.text.spiflash_start_core.constprop.0` input section. Currently, ldgen
does not handle this situation, leading to misplaced symbols.

Since `.` is not allowed in C identifiers, it should be safe to consider
all input sections for a symbol with any `.` suffix as representing that
symbol. This means considering the symbol suffixes should not cause any
ambiguity.

This change automatically places all input sections, including those
with possible suffixes for a given symbol, into the specified memory. In
other words, specifying a function name like `spiflash_start_core` in a
linker fragment automatically includes input section names matching
`spiflash_start_core(\..*)?$`.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2026-01-14 13:22:49 +01:00
Alexey Gerenkov ef0a445665 Merge branch 'feature/update-openocd-to-v0.12.0-esp32-20251215_v5.4' into 'release/v5.4'
feat(tools): update openocd version to v0.12.0-esp32-20251215 (v5.4)

See merge request espressif/esp-idf!44312
2025-12-19 11:06:11 +08:00
Erhan Kurubas dacae0dc5a feat(tools): update openocd version to v0.12.0-esp32-20251215 2025-12-18 00:20:14 +08:00
Erhan Kurubas 4f9943e8e4 fix(espcoredump): prevent double exception during int_wdt panic with custom stack 2025-12-11 16:20:09 +01:00
Chen Yudong 0b5e53216a ci: rename wifi_two_dut to two_duts 2025-12-03 09:54:23 +08:00