Repository navigation
V2 bring-up: loop watchdog, no-carrier fast path, boot banner - #121
Merged
Merged
Conversation
- Start the Arduino loop watchdog (5 s, panics and reboots) at the end of setup(), and stop it before the shutdown spin so a held power button can't let a watchdog reset re-latch the board. V2 has no reset button and RXD0's pull-up holds the latch, so a hung board otherwise stays on. - A "hang" line on the serial monitor stops the loop, for the README's watchdog check (pure SerialCommandReader, tested). - XbeeLink::ready(): with no V2 carrier, AT commands now fail at once instead of waiting out 200 ms, which froze loop() every second on the RSSI query. Regression test added. - Boot log prints the board, firmware version and reset reason. - V2 README: bring-up steps name the build and the hang check; VSYS sense is IO10, not IO7; drop the stale "firmware still needs UART" note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Gets the firmware ready for the first V2 bench bring-up.
I audited the V2 pin map in
include/pin_assignment.hagainst the netlist inPCB/v2.x/snips/stackup/board.kdl, and every GPIO matches. I also checked the IMU mounting againstU_IMU1's placement (B.Cu, -90°), and it matchesImuMountings::kV2. The stick orientation and the VSYS divider are the same as V1. The changes below fill the gaps that review turned up.Changes
enableLoopWDT()runs at the end ofsetup(). The core's sdkconfig sets a 5 s timeout with panic, so a hang reboots the board. V2 has no reset button and RXD0's pull-up holds the latch, so without the watchdog a hung board stays on until USB and the battery are pulled. It is turned off before the shutdown spin, because the rail stays up while the power button is held, and a watchdog reset there would re-latch the board.hangserial command. Typinghangstops the loop so the README's watchdog check can be run. The parser is a pureSerialCommandReaderwith unit tests.XbeeLink::ready()was added, andXbeeUartreturns false when no carrier is found. Before, every AT command waited out its 200 ms timeout, so the once-a-second RSSI query froze buttons, stick and menu for 200 ms every second. Regression test added.Snips Controller V2, firmware <commit>, reset: <reason>.hangcheck. VSYS sense is now correctly listed as IO10, not IO7. The stale "firmware still needs UART" note is gone.Testing
pio run -e esp32s3_v2andpio run -e esp32s3: both build.pio test -e native: 481 passed.serial_command.cppis at 100%.PCB/v2.x/snips/README.md.🤖 Generated with Claude Code