Add backpressure to flash write protocol#33
Merged
Conversation
handle_flash_write now sends per-packet ACK (matching handle_write). write_flash reuses _write_block for consistent backpressure behavior. Flash write still fails at ~1MB due to FMC soft reset accumulation during page programming. RAM write (16MB) verified at 921600 baud. Flash write needs further debugging of fmc_enter_boot impact. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix progress display: use plain print() instead of Rich console.print() which was adding newlines instead of overwriting in-place via \r - Scale CRC32 verification timeout with data size (~1s/MB) to avoid timeout on large reads (16MB was timing out at 10s hard limit) - Show "Sending Agent" instead of "Sending U-Boot" during agent upload - Document flash agent commands in main README Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- `agent read` no longer requires -a and -s; defaults to 0x14000000 and queries flash size from the device via get_info() - `agent write` defaults -a to 0x14000000 - `agent read` -o defaults to flash_dump.bin - Update README examples to show the simpler invocation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
_write_blockhelper with retry logic (up to 3 attempts per block) instead of inline send loopTest plan
🤖 Generated with Claude Code