Skip to content

Add defib agent flash one-command firmware install#41

Merged
widgetii merged 1 commit intomasterfrom
feature/agent-flash-cmd
Apr 6, 2026
Merged

Add defib agent flash one-command firmware install#41
widgetii merged 1 commit intomasterfrom
feature/agent-flash-cmd

Conversation

@widgetii
Copy link
Copy Markdown
Member

@widgetii widgetii commented Apr 6, 2026

Summary

  • New defib agent flash -c <chip> -i <firmware> -p <port> command
  • Handles the full pipeline in one step: boot protocol → agent upload → high-speed flash write → CRC32 verify → reboot
  • Options: --no-verify, --no-reboot, --output json
  • Updated README: one-command install as primary agent feature, reorganized agent section

Test plan

  • ruff check — clean
  • mypy — clean
  • pytest tests/test_cli.py — pass
  • CLI help renders correctly
  • CI green
  • Hardware test: defib agent flash -c hi3516ev300 -i openipc.bin -p /dev/uart-...

🤖 Generated with Claude Code

Single command flashes firmware from dead flash to booting device:
  defib agent flash -c hi3516ev300 -i firmware.bin -p /dev/ttyUSB0

Handles the full pipeline: boot protocol upload, agent READY handshake,
high-speed baud switch, streaming flash write with 0xFF sector skip,
CRC32 verification, and device reboot.

Options: --no-verify to skip CRC check, --no-reboot to stay in agent,
--output json for automation.

Updated README with one-command install as the primary agent feature.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@widgetii widgetii merged commit c6c7c5a into master Apr 6, 2026
13 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.

1 participant