Repository navigation
diag(teensy4/flexio-rx): probe SHIFTBUF[0]/BIS/BYS directly; TIMCMP=10 (refs #3066 iter 7) - #3071
Conversation
…0 (refs #3066) Loop iter 7 of #3066. Direct `SHIFTBUF[0]` + `SHIFTBUFBIS` (bit-swap) + `SHIFTBUFBYS` (byte-swap) reads in the `flexioRxLoopbackPing` RPC confirm: even with PR #3070's working timer/shifter chain (`transfers_done=4` per pin rising edge), the SHIFTBUF itself reads as `0x0` post-toggle. The captured 1-bit values reflect the pin as LOW even though FLEXIO1.PIN reads 0x40 (bit 6 high) right before the shifter samples. Also bumps TIMCMP from 1 to 10 (16-tick delay between TIMENA pin-rising trigger and the timer compare event) so the IOMUX synchroniser has more time to propagate the pin's new state before the shifter samples. Did not change behaviour — the bit still reads as 0 — but documents the trial in case future iters want to sweep larger TIMCMPs. Out of obvious knobs to twist without bench/scope visibility. Next iter (1.8) needs to dig into SMOD=1 sample timing semantics OR try SMOD=3/4 (Match Store / Continuous) to see if a different shifter mode latches the pin state more reliably at the timer-compare moment. 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 (2)
📝 WalkthroughWalkthroughIn ChangesFlexIO1 RX Timing Adjustment and Diagnostics
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
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 7 of #3066. Two probes:
flexioRxLoopbackPing. ReadsSHIFTBUF[0],SHIFTBUFBIS[0](bit-swap view), andSHIFTBUFBYS[0](byte-swap view) immediately after the toggles — confirms the captured value is genuinely0x0and not just a side-effect of mCaptureBuffer copying.Iter 7 finding
The shifter shifts 4 times (one per pin rising edge — PR #3070 confirmed) but every sampled bit reads as 0 across both the canonical and swapped views. Out of obvious knobs to twist without bench/scope visibility.
Next iter direction (1.8)
Refs #3066
🤖 Generated with Claude Code
Summary by CodeRabbit