Skip to content

RSDSO-21295: Detect flash lock and validate FW update result in test-fw-update - #14800

Merged
Nir-Az merged 2 commits into
realsenseai:developmentfrom
ipilchin1:RSDSO-21295_fw-update-flash-lock-fix
Mar 11, 2026
Merged

Nir-Az merged 2 commits into
realsenseai:developmentfrom
ipilchin1:RSDSO-21295_fw-update-flash-lock-fix

Conversation

@ipilchin1

Copy link
Copy Markdown
Contributor

Fix test-fw-update.py to prevent silent FW update failures that leave D457 GMSL cameras flash-locked (GVD offset 25).

Changes:

Check rs-fw-update exit code; fail early if non-zero instead of proceeding to version assertion
Detect flash lock after FW update by checking for UNLOCKED in device string and log a warning

Root cause: On D457 GMSL, rs-fw-update reported "Firmware update done" but the FW version didn't change (downgrade silently rejected). The test continued and failed on version mismatch, while the camera was left flash-locked.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the test-fw-update.py unit test to catch firmware update failures earlier and to surface potential flash-lock state after updating, addressing silent FW update failures observed on D457 GMSL.

Changes:

  • Capture and validate rs-fw-update exit code; fail the test immediately on non-zero exit.
  • Add a post-update check that warns if the device string no longer indicates UNLOCKED.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread unit-tests/test-fw-update.py Resolved
@ipilchin1
ipilchin1 force-pushed the RSDSO-21295_fw-update-flash-lock-fix branch from 232761e to e5257aa Compare March 9, 2026 14:04
…date

- Check rs-fw-update subprocess return code; fail early if non-zero
- Detect flash lock (GVD offset 25) by checking for UNLOCKED in device
  string after FW update and log a warning for CI visibility
@ipilchin1
ipilchin1 force-pushed the RSDSO-21295_fw-update-flash-lock-fix branch from e5257aa to d258ba6 Compare March 9, 2026 14:15
Comment thread unit-tests/test-fw-update.py Resolved
Comment thread unit-tests/test-fw-update.py Resolved
@ipilchin1
ipilchin1 requested a review from Nir-Az March 9, 2026 15:30
@Nir-Az
Nir-Az merged commit b3565d6 into realsenseai:development Mar 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants