Skip to content

feat(rmt_rx): peekMem-able wait() telemetry for capture forensics (#3586) - #3594

Merged
zackees merged 1 commit into
masterfrom
feat/rmtrx-wait-telemetry-3586
Jul 2, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rmtrx-wait-telemetry-3586

Conversation

@zackees

@zackees zackees commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

Harness tests run with logs suppressed, so wait()-path forensics on live devices go through memory: g_rmtrx_wait_dbg[] (wait count + exit path + symbols + callbacks), g_rmtrx_max_symbols, g_rmtrx_first_symbols[] (first raw symbols, preserved when decode fails).

This telemetry produced the decisive #3586 finding on the C6 bench: the receiver completes "naturally" with exactly 1 symbol for PARLIO/RMT-TX frames — and that symbol is the entire ~773 µs frame merged into one continuous HIGH — while the TX pad demonstrably carries a crisp waveform and every RX register (100 ns filter, divider, idle threshold) is identical to working captures. Full elimination table and analysis on the issue.

Host: subset 264/264; lint clean; C6 compile clean.

Refs #3586.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved diagnostic tracking for ESP32 RMT receive operations, making it easier to understand why a wait call ended.
    • Added more detailed runtime capture for receive completion, timeout, and buffer-fill scenarios.
    • Recorded sample received data and peak symbol counts to help with troubleshooting.

)

Harness tests run with logs suppressed, so wait()-path forensics on
live devices go through memory: g_rmtrx_wait_dbg[] (wait count, last
exit path arm-fail/timeout/buffer-filled/natural, symbols, callbacks),
g_rmtrx_max_symbols, and g_rmtrx_first_symbols[] (first four raw
accumulation symbols, preserved when decode fails).

This telemetry produced the decisive #3586 finding on the C6 bench:
the receiver "completes naturally" with mSymbolsReceived == 1 for
PARLIO/RMT-TX frames, and the single symbol is the ENTIRE ~773 us
frame merged into one continuous HIGH (H772875 L-open) — while the TX
pad carries a crisp, timing-correct waveform (edge-probe verified) and
every RX config register (filter=100 ns, divider, idle threshold) is
byte-identical to captures that work. Full analysis on the issue.

Host: subset 264/264, lint clean, C6 compile clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2e82fb24-0488-4f6f-893b-ccd47bd62fd9

📥 Commits

Reviewing files that changed from the base of the PR and between 954e3ed and 20c8bd7.

📒 Files selected for processing (1)
  • src/platforms/esp/32/drivers/rmt_rx/rmt_rx_5/rmt_rx_channel_5.cpp.hpp

📝 Walkthrough

Walkthrough

This change adds volatile debug telemetry variables to the ESP32 RMT5 RX channel driver's wait() function, recording call counts, exit-path codes, symbol counts, callback counts, and snapshots of first received symbols across all exit branches (arm failure, buffer fill, timeout, natural completion). No public API or return value changes.

Changes

RMT5 wait() Telemetry

Layer / File(s) Summary
Telemetry variable declarations
src/platforms/esp/32/drivers/rmt_rx/rmt_rx_5/rmt_rx_channel_5.cpp.hpp
Adds volatile globals g_rmtrx_wait_dbg[4], g_rmtrx_max_symbols, and g_rmtrx_first_symbols[4] for external inspection of wait() forensics.
Wait() exit-path instrumentation
src/platforms/esp/32/drivers/rmt_rx/rmt_rx_5/rmt_rx_channel_5.cpp.hpp
Increments call counters and records exit codes, symbol/callback counts, and symbol snapshots on arm-failure, buffer-fill, timeout, and natural-completion paths, updating max symbols observed.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Related issues: #3586 (referenced in code comments as context for this debug harness).

Suggested labels: esp32, debugging, rmt

Suggested reviewers: none identified


🐰 A rabbit peeks inside the wait,
counting symbols, logging fate,
four slots hold the story true,
timeout, fill, or arming due,
telemetry hums in silicon light.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rmtrx-wait-telemetry-3586

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit b852acf into master Jul 2, 2026
9 of 10 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 2, 2026
@zackees
zackees deleted the feat/rmtrx-wait-telemetry-3586 branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant