5
1
Fork
You've already forked stlink-tool
2

feat : add an option to patch ST-LinkV2 app firmware on the fly to make the bootloader recognise it as valid #1

Merged
dragonmux merged 3 commits from freeman1216/stlink-tool:main into main 2026年04月05日 02:40:23 +02:00
Contributor
Copy link

feat : add an option to patch ST-LinkV2 app firmware on the fly to make the bootloader recognise it as valid

dunno if it is possible to build on Windows with all those posix calls, maybe its time to ditch those since we no longer map the file and so dont need the fd

feat : add an option to patch ST-LinkV2 app firmware on the fly to make the bootloader recognise it as valid dunno if it is possible to build on Windows with all those posix calls, maybe its time to ditch those since we no longer map the file and so dont need the fd
freeman1216 changed title from (削除) main (削除ここまで) to feat : add an option to patch ST-LinkV2 app firmware on the fly to make the bootloader recognise it as valid 2026年04月03日 03:23:36 +02:00

Please use tabs, not spaces, for your indentation - trying to understand the diffs is being hampered here by your changing indentation over.. lots of noise in the diff as a result.

Please use tabs, not spaces, for your indentation - trying to understand the diffs is being hampered here by your changing indentation over.. lots of noise in the diff as a result.
Author
Contributor
Copy link

My bad, should have checked first

My bad, should have checked first

That's okay - it looks like you're running some form of clang-format? Could we ask you grab the config for it from the main BMD repo and use that for this one - it should probably get committed as a file in the root of this repo, but it didn't yet get done. The reason for saying/asking is that it's reformatting the switch/case statement which is still causing a large amount of noise.

That'll also happen to fix all the formatting notes we would otherwise create and which are the only kind of note we can see creating for this PR - meaning, with that done we can then approve it and merge.

Once that's done, could we have you please apply your fixup commits as fixups to the base commits they change, as we won't be squashing when we merge - our policy, because having git blame and such work in a reasonable way is important to us, is to fast-forward merge only, or otherwise rebase then fast-forward.

That's okay - it looks like you're running some form of `clang-format`? Could we ask you grab the config for it from the main BMD repo and use that for this one - it should probably get committed as a file in the root of this repo, but it didn't yet get done. The reason for saying/asking is that it's reformatting the `switch`/`case` statement which is still causing a large amount of noise. That'll also happen to fix all the formatting notes we would otherwise create and which are the only kind of note we can see creating for this PR - meaning, with that done we can then approve it and merge. Once that's done, could we have you please apply your fixup commits as fixups to the base commits they change, as we won't be squashing when we merge - our policy, because having `git blame` and such work in a reasonable way is important to us, is to fast-forward merge only, or otherwise rebase then fast-forward.
Author
Contributor
Copy link

Hope that does it, i am not that experienced with this so thanks for bearing with me

I am not quite happy with the ux though, specifing size is kinda annoying, maybe i can get this info from bl info, i ll try to triage this and if i find something ill make another pr (better formated then this one)

Hope that does it, i am not that experienced with this so thanks for bearing with me I am not quite happy with the ux though, specifing size is kinda annoying, maybe i can get this info from bl info, i ll try to triage this and if i find something ill make another pr (better formated then this one)
dragonmux left a comment
Copy link

LGTM, merging. Thank you for the contribution! If you manage to figure out a better way to deal with the user experience, do please open a follow-up PR - it's completely fine to do this in two steps: base feature -> incremental improvements of feature.

LGTM, merging. Thank you for the contribution! If you manage to figure out a better way to deal with the user experience, do please open a follow-up PR - it's completely fine to do this in two steps: base feature -> incremental improvements of feature.
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blackmagic-debug/stlink-tool!1
Reference in a new issue
blackmagic-debug/stlink-tool
No description provided.
Delete branch "freeman1216/stlink-tool:main"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?