Repository navigation
fix(rp): retain watchdog reset count across reboot - #3847
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 (2)
📝 WalkthroughWalkthroughThe RP watchdog now persists crash counts in hardware scratch storage. AutoResearch checks this state before initialization, reports safe-mode metadata, and remains in a watchdog-fed recovery loop when the crash threshold is reached. ChangesRP watchdog recovery
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant AutoResearchSetup
participant RPWatchdog
participant SerialJSON
AutoResearchSetup->>RPWatchdog: read crash count and safe-mode state
AutoResearchSetup->>SerialJSON: emit safeMode JSON event
AutoResearchSetup->>RPWatchdog: feed watchdog in recovery loop
✨ 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\n- retain RP2040/RP2350 watchdog-reset counts in watchdog scratch storage across soft reset\n- reserve two scratch bytes for the internal counter and retain 14 public persist bytes\n- make AutoResearch enter a test-only, USB-CDC-safe recovery loop before PIO, RX, RPC, Wi-Fi, or LED driver initialization after repeated watchdog resets\n- replace the touched RP watchdog raw function-local state with fl::Singleton\n\n## Validation\n- �ash test watchdog\n- �ash compile rp2350w --examples AutoResearch\n- �ash lint --cpp\n\n## Hardware\nCOM17 is still selectable=no with Windows root-hub Code 43, so deployment was deliberately not attempted. The board-specific compile passed; live recovery validation remains pending normal USB enumeration.\n\nCloses #3832
Summary by CodeRabbit
New Features
Bug Fixes