Repository navigation
[codex] fix(esp32): honor chipset reset timing - #3937
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe ESP32 RMT4 driver now enforces chipset reset timing after transmission. The ESP32 I2S driver derives DMA reset tails from chipset timing and clock frequency. Tests cover rounding, overflow, completion state, and legacy ChangesESP32 reset timing
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant ClocklessIdf4
participant ChannelEngineRMT4Impl
participant RMT4TxDoneHandler
ClocklessIdf4->>ChannelEngineRMT4Impl: Start transmission with reset duration
RMT4TxDoneHandler->>ChannelEngineRMT4Impl: Mark transmission complete
ChannelEngineRMT4Impl->>ChannelEngineRMT4Impl: Poll until reset interval elapses
ChannelEngineRMT4Impl->>ClocklessIdf4: Release channel and report ready
✨ 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.
Summary
reset_usand the actual pixel clockWAIT_TIMEas a lower bound, add overflow-safe DMA sizing, and verify the encoded tail is LOWRoot cause and impact
The alternate ESP32 channel drivers used fixed or implicit reset tails instead of the timing carried by
ChipsetTimingConfig. Back-to-back frames could therefore start before slower chipsets had latched, causing ignored or corrupted updates. RMT completion was also shared between ISR and task code throughvolatilerather than an atomic.Validation
PYTEST_ADDOPTS='-k esp32_rmt4_reset_timing' bash test --pybash test channel_driver_i2sbash lintbash compile esp32dev_idf44 --examples Blink(linkedfirmware.elf/.bin; metadata query warned after the successful build)Closes #3932
Summary by CodeRabbit
Bug Fixes
Tests