Repository navigation
fix(rmt_rx): retry begin() without DMA when the DMA arm path fails (#3591) - #3592
Merged
Merged
Conversation
…3591) On ESP32-S3 (the only bench chip with RMT RX DMA silicon) every non-RMT driver's loopback capture failed to arm: the harness passes use_dma=true for non-RMT TX paths and the DMA-mode begin() returned false silently, so SPI/UART/LCD_CLOCKLESS/LCD_SPI all reported captureWaitResult=-1 while RMT (non-DMA loopback) passed 4/4. DMA only extends the capture window — a shorter window beats no capture — so begin() now retries once in non-DMA mode (with a warning) when the DMA-mode attempt fails. The body moved to beginImpl(); behavior is unchanged whenever the DMA path succeeds or DMA was not requested. Bench matrix after the fix: - S3 (GPIO1->2): UART 0/4 -> 4/4, LCD_CLOCKLESS 0/4 -> 4/4, LCD_SPI 0/4 -> 4/4, RMT stays 4/4. S3 SPI still 0-edge (arms now, transmit-not-captured family -> #3586). - Regression: WROOM I2S/I2S0/RMT/UART/SPI 4/4 each; C6 SPI/UART 4/4; P4 RMT/SPI/UART 4/4. Host: 347/347, lint clean. Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Jul 2, 2026
|
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
ChangesDMA fallback retry
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Possibly related PRs
✨ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On ESP32-S3 (the only bench chip with RMT RX DMA silicon), every non-RMT driver's loopback capture failed to arm: the harness passes
use_dma=truefor non-RMT TX paths and the DMA-modebegin()returned false silently — SPI/UART/LCD_CLOCKLESS/LCD_SPI all reportedcaptureWaitResult=-1while RMT (non-DMA loopback) passed 4/4. Bisect proof: forcinguse_dma=falseflipped UART to 4/4 instantly.DMA only extends the capture window; a shorter window beats no capture.
begin()now retries once in non-DMA mode (with a warning) when the DMA attempt fails. Body moved tobeginImpl(); DMA-successful and non-DMA paths are unchanged.Bench matrix after the fix
Host: 347/347; lint clean.
Refs #3591, #3576, #3586.
🤖 Generated with Claude Code
Summary by CodeRabbit