Repository navigation
fix(autoresearch): reduce LPC845 low-memory RAM use - #3207
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn ChangesLPC Low-Memory Buffer Size Reduction
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Fixes #3200.
AutoResearch on LPC845-BRK was hardfaulting during early init because the low-memory sketch had grown too close to the 16 KB SRAM ceiling. Two static 512-entry
fl::EdgeTimediagnostic buffers consumed about 4 KB of.bss, leaving too little room for startup stack/heap beforesetup()could run.This keeps the #3125 stack fix intact, but reduces the static diagnostic buffers to 64 entries and bounds the WS2812 low-memory capture reserve to 192 edges. The larger WS2812 diagnostic case now fails by truncation instead of starving setup/loop memory on LPC845.
Validation
./compile lpc845brk --examples AutoResearchpc = 0x00000b98/sp = 0x10003e980x0000093aFL_WARN: echo invokedREMOTE: {"id":1,"result":4242,"jsonrpc":"2.0"}Summary by CodeRabbit