Repository navigation
diag(teensy4/flexio-rx): dump mCaptureBuffer[0..7] on both wait() paths (refs #3066 phase 1) - #3068
Conversation
…hs (refs #3066 phase 1) Extends the wait()-timeout diagnostic block introduced by PR #3067 to also dump the first 8 words of mCaptureBuffer on both the TIMEOUT and SUCCESS exits. Distinguishes 'shifter never fired' from 'shifter fired but all samples were zero' without an oscilloscope. Surfaced by loop iter 4 (sub-task 1.6 investigation): trying TIMENA=0 + TIMRST=0 + TIMCMP=10 free-running sample mode produced `wait() SUCCESS: transfers_done=0/6064` with mCaptureBuffer all zero — DMA channel signalled completion (CITER reloaded to BITER) without ever copying a non-zero word into RAM. The dump turns this into actionable data the next iteration can use. The TIMENA=0/TIMCMP=10 experiment itself is reverted; only the diagnostic stays. The Phase 1 active blocker is still 'wire up FlexIO RX edge capture', the new puzzle is 'why does DMA report complete with zero transfers'. Refs #3066 Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
FlexIO RX wait() Diagnostics
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
…iter 9) (#3214) * docs(flexio-rx): document iMXRT FlexIO architectural mismatch (#3066 iter 9) Adds a top-of-file warning block to rx_flexio_channel.cpp.hpp capturing the iter-9 root-cause finding from #3066: iMXRT FlexIO shifters cannot snapshot a peer timer's count into SHIFTBUF, and SMOD=1+TIMOD=3 collides shift-and-store on the same compare event per NXP's own documentation ('shift registers cannot shift and store on the same clock, so input data may be lost'). This explains the all-zero captures that PRs #3067/#3068/#3069/#3070/#3071 chased without success and the loop's pause at the 5-PR cap. Future readers should know not to twist more knobs on this file — the path forward is FlexPWM RX (Phase 4 of #3066), which has dedicated SMx_CAPTCTRL input-capture silicon. Pure comment change. Verified compiles via 'bash compile teensy40 --examples AutoResearch'. References issue comment #3066/4740201201 for the full register-by-register NXP cross-check. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(flexio-rx): drop emoji per C++ style (CodeRabbit on #3214) Replace the warning-triangle emoji with a 'WARNING:' text prefix per the FastLED C++ guideline against emoji in source files. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Loop iter 4 of #3066. Extends the wait()-timeout diagnostic block from PR #3067 to dump the first 8 words of
mCaptureBufferon both the TIMEOUT and SUCCESS exits. Distinguishes 'shifter never fired' from 'shifter fired but all samples were zero' without an oscilloscope.Iter 4 finding that this dump made visible
Trying
TIMENA=0+TIMRST=0+TIMCMP=10(free-running 5.5 MHz sample mode) produced:DMA channel reported completion (CITER reloaded to BITER) without ever copying a non-zero word into RAM. Either the shifter never fired or the ISR misfired. The TIMENA=0/TIMCMP=10 experiment itself is reverted; only the diagnostic stays.
Test plan
Refs #3066
🤖 Generated with Claude Code
Summary by CodeRabbit