Repository navigation
feat(flash): flash and provision a left/right pair with two J-Links - #370
Merged
Merged
Conversation
✅ Unit tests passed5 passed, 0 failed/error, 0 skipped — view workflow run
Download the |
|
Build output available: |
Compiler warningsThe extended-warning build completed successfully. Application compiler warningsShow warnings |
CodeChecker static analysis✅ No non-style issues found. |
|
Build output available: |
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.
Adds
tools/flash/flash_pair.shto program two earables concurrently and provision their left/right roles, hardware revision, and shared pair identity in one command. The script runs on Bash 3.2+ without Python.The script validates both probes and backs up each device's UICR before erasing. It derives the pair ID using the firmware's normal chip-ID XOR calculation, verifies both core images and configuration readback, then resets both devices only after both have passed. Per-probe locks prevent overlapping pair-script runs, and separate logs/backups are retained under the selected build directory. The known Nordic worker-process crash is retried once with the same command.
--dry-runvalidates the plan without accessing hardware.This is full provisioning: existing phone bonds and previous pair configuration are erased. Stock 2.3.0 ignores the stored pair identity for CSIP; use the 2.3.1 firmware fix in #369 or another firmware version that honors it.
Also adds a concise
tools/flash/README.mdcovering the purpose, prerequisites, options, and configuration-retention behavior of all six scripts in that folder.Validation: