Skip to content

Get model from family, if '--platform' is missing#346

Open
tzstoyanov wants to merge 2 commits into
raspberrypi:developfrom
tzstoyanov:p2
Open

Get model from family, if '--platform' is missing#346
tzstoyanov wants to merge 2 commits into
raspberrypi:developfrom
tzstoyanov:p2

Conversation

@tzstoyanov

Copy link
Copy Markdown

If the user does not use the --platform parameter to specify the target platform for uf2 convert command, get the model from the target family. The current logic tries to guess the platform by analyzing the target binary file. It works OK in most regular cases, but fails in some weird cases where the image is not located at absolute FLASH_START offset.

fixes #339

If the user does not use the `--platform` parameter to specify the
target platform for uf2 convert command, get the model from the target
family. The current logic tries to guess the platform by analyzing the
target binary file. It works OK in most regular cases, but fails in some
weird cases where the image is not located at absolute FLASH_START
offset.

Signed-off-by: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
@github-actions

Copy link
Copy Markdown

Please do not submit against master, use develop instead

@tzstoyanov
tzstoyanov changed the base branch from master to develop July 16, 2026 03:54
Comment thread main.cpp Outdated
@tzstoyanov
tzstoyanov requested a review from will-v-pi July 16, 2026 17:34
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.

picotool 2.3.0 fails in uf2 convert for images that do not start at FLASH_START

2 participants