Skip to content

refuse a reset to the app when no app is present - #53

Merged
aq1018 merged 2 commits into
mainfrom
reset-guard
Oct 21, 2026
Merged

aq1018 merged 2 commits into
mainfrom
reset-guard

Conversation

@aq1018

@aq1018 aq1018 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator
  • Reset to the app answers Unsupported when the app region's first word is erased, as it does while Updating; a system-flash bootloader hands off by boot mode without checking the app, so a blank chip jumped into erased flash and hung until a power cycle
  • Storage::app_present (provided, length-checked) shared with validate_app's no-CRC check; ch32 overrides it without the length test
  • +4 to +8 B .text per boot bin; V003 heaviest keeps 34 B of system flash
  • CLI refusal message covers both causes
  • tinyboot-core 0.6.2, tinyboot-ch32 0.7.1, tinyboot 0.5.2; CHANGELOG, protocol README and remote-updates table

@aq1018
aq1018 merged commit 2b4da3a into main Oct 21, 2026
15 checks passed
@aq1018
aq1018 deleted the reset-guard branch October 21, 2026 04:50
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