Skip to content

Add support for saving and verifying partitions - #357

Open
will-v-pi wants to merge 5 commits into
developfrom
save-verify-partition
Open

will-v-pi wants to merge 5 commits into
developfrom
save-verify-partition

Conversation

@will-v-pi

Copy link
Copy Markdown
Contributor

Adds support for passing --partition to save/verify files in partitions.

Offsets everything on the device to be inside the partition, so can be combined with --program, --all, --range (range will be offset by the start of the partition).

Fixes #348

Some examples:

  • picotool save/verify --partition 1 tmp.uf2 will parse the binary info and save/verify the program from partition 1
  • picotool save/verify --range 0x10000000 0x10001000 --partition 1 tmp.uf2 will save/verify the first 0x1000 from partition 1
  • picotool save --all --partition 1 tmp.uf2 will save all of partition 1

Offsets everything on the device to be inside the partition, so can be combined with `--program`, `--all`, `--range` (range will be offset by the start of the partition)
@will-v-pi will-v-pi added this to the 2.4.0 milestone Sep 9, 2026
@will-v-pi
will-v-pi requested a review from lurch November 5, 2026 15:18
…on lookup

When a partition accepts a single family, saved UF2s use it, as no other family could be loaded back into that partition. Otherwise the family is still detected from the contents.
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