Skip to content

feat: add opt-in SkipStub option to skip the stub loader - #53

Merged
deadprogram merged 1 commit into
tinygo-org:mainfrom
jgangemi:jae/skip-stub
Jul 11, 2026
Merged

feat: add opt-in SkipStub option to skip the stub loader#53
deadprogram merged 1 commit into
tinygo-org:mainfrom
jgangemi:jae/skip-stub

Conversation

@jgangemi

Copy link
Copy Markdown
Contributor
  • add FlasherOptions.SkipStub (default false, no behavior change)
  • when true, connect() does not upload the stub loader, keeping the
    chip on the ROM bootloader for register-only ops (e.g. GPIO probing)
    and avoiding a resident stub that can mis-detect the chip on a
    subsequent no-reset reconnect
  • stub-dependent features (whole-chip erase, compression, etc.) remain
    unavailable when SkipStub is set; ROM operations still work

- add FlasherOptions.SkipStub (default false, no behavior change)
- when true, connect() does not upload the stub loader, keeping the
  chip on the ROM bootloader for register-only ops (e.g. GPIO probing)
  and avoiding a resident stub that can mis-detect the chip on a
  subsequent no-reset reconnect
- stub-dependent features (whole-chip erase, compression, etc.) remain
  unavailable when SkipStub is set; ROM operations still work
@deadprogram

Copy link
Copy Markdown
Member

Good to also support this kind of usage @jgangemi thank you very much for another useful feature. Now merging.

@deadprogram
deadprogram merged commit f1f5cee into tinygo-org:main Jul 11, 2026
3 checks passed
@jgangemi
jgangemi deleted the jae/skip-stub branch July 20, 2026 04:17
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.

2 participants