Skip to content

Commit 6d7eeb2

Browse files
committed
feat(upload): add generic UF2 uploader recipe
1 parent da8a904 commit 6d7eeb2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎platform.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ tools.massStorageCopy.upload.params.verbose=
212212
tools.massStorageCopy.upload.params.quiet=
213213
tools.massStorageCopy.upload.pattern="{tools_bin_path}/{cmd}" {upload.verbose} -I "{build.path}/{build.project_name}.bin" -O "{node}"
214214

215+
# Upload a UF2 image through a CDC 1200-bps touch and a UF2 mass-storage
216+
# bootloader. Board-specific address, family ID, volume label and size limits
217+
# are supplied by boards.txt.
218+
tools.uf2upload.cmd=uf2upload
219+
tools.uf2upload.cmd.windows=uf2upload.exe
220+
tools.uf2upload.upload.params.verbose=
221+
tools.uf2upload.upload.params.quiet=
222+
tools.uf2upload.upload.pattern="{tools_bin_path}/{cmd}" --input "{build.path}/{build.project_name}.bin" --port "{serial.port}" --volume "{upload.uf2.volume}" --address {upload.uf2.address} --family {upload.uf2.family} --max-size {upload.maximum_size} --timeout {upload.uf2.timeout}
223+
215224
# STM32CubeProgrammer upload
216225
tools.stm32CubeProg.path={runtime.tools.STM32Tools.path}
217226
tools.stm32CubeProg.cmd=stm32CubeProg.sh

0 commit comments

Comments
 (0)