Repository navigation
fix(autoresearch): extend 16 KB loop stack to all ESP32 variants (#3576 Phase 9) - #3590
Merged
Merged
Conversation
… Phase 9) The #3569 fix raised the AutoResearch loopTask stack to 16 KB on classic ESP32 only. ESP32-P4 runs the same ~8 KB-deep runSingleTest -> encode -> capture chain on the Arduino default 8 KB stack and died with a hard "Stack protection fault" in loopTask (stack dump full of wave8 LUT bytes) on every SPI/UART/PARLIO test. Gate is now FL_IS_ESP32-wide. Bench (P4, COM25, GPIO5->6): SPI and UART went 0/4-with-panic -> 4/4 byte-exact; RMT stays 4/4. PARLIO runs without crashing but its capture failure matches the C6 signature (#3586 — now cross-chip). Co-Authored-By: Claude Fable 5 <[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)
📝 WalkthroughWalkthroughThe preprocessor condition guarding an increased loop task stack size in AutoResearch.ino was broadened from targeting only FL_IS_ESP_32DEV to the wider FL_IS_ESP32 family, with accompanying comment updates describing the stack fault issue affecting additional ESP32 variants including ESP32-P4. ChangesESP32 Stack Size Guard Update
Estimated code review effort: 1 (Trivial) | ~2 minutes ✨ 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.
The #3569 loop-stack fix was gated to classic ESP32; ESP32-P4 ran the same ~8 KB-deep test chain on the 8 KB Arduino default and hit a hard Stack protection fault in loopTask (stack dump full of wave8 LUT bytes) on every SPI/UART/PARLIO test.
Bench verification (P4, COM25, GPIO5→6 jumper): SPI and UART went 0/4-with-panic → 4/4 byte-exact; RMT stays 4/4. PARLIO now runs without crashing but its capture failure matches the C6 signature — #3586 is cross-chip.
Refs #3576, #3569, #3586.
🤖 Generated with Claude Code
Summary by CodeRabbit