feat(upload): add generic UF2 uploader recipe - #3061
Draft
cumin777 wants to merge 1 commit into
Draft
Conversation
This was referenced Aug 27, 2026
fpistm
self-requested a review
August 27, 2026 11:46
Member
|
Thanks for the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a generic Arduino upload recipe for boards that use a UF2 bootloader reached through a CDC 1200-bps touch and then exposed as a UF2 mass-storage volume.
This PR implements the following feature:
uf2uploadtool definition and upload command inplatform.txt.The recipe keeps board-specific UF2 address, family ID, volume label, size limit, and timeout values in
boards.txt, while sharing one uploader definition across boards.Dependencies and split
XIAO_STM32C5.upload.tool=uf2uploadand supplies the board-specific UF2 parameters; this recipe is therefore required for that board's Arduino upload menu to work. The two PRs can be reviewed independently, but feat(xiao): add Seeed XIAO STM32C5 board support #3048's UF2 upload path is complete only after this recipe is merged.uf2uploadexecutable supplied by Arduino_Tools PR Make Serialx instance generic #122. That tools PR must land first (or together), followed by a STM32Tools release/package-index update that makes the executable available to Arduino users.Validation
tools.uf2upload.*definition inplatform.txt.Code formatting
Closing issues
None.