Skip to content

Commit

Permalink
programmers: add DFU with suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
scpcom committed Nov 15, 2020
1 parent 5a5b255 commit 7bf32ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,8 @@ tools.serial.program.pattern="{path}{cmd}" -g 0x08000000 -b {build.burn_baudrate
tools.dfu.cmd=dfu-util
tools.dfu.path={runtime.tools.gd32vflash.path}/
tools.dfu.program.pattern="{path}{cmd}" -d {build.vid}:{build.pid} -a 0 --dfuse-address 0x08000000:leave -D "{build.path}/{build.project_name}.bin"

## DFU with suffix
tools.dfuflash.cmd=dfu-flash
tools.dfuflash.path={runtime.tools.gd32vflash.path}/
tools.dfuflash.program.pattern="{path}{cmd}" {build.vid} {build.pid} "{build.path}/{build.project_name}.bin"
8 changes: 7 additions & 1 deletion programmers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ dfu.name=DFU GD32V
dfu.communication=usb
dfu.program.params.verbose=-v
dfu.program.params.quiet=-q
dfu.program.tool=dfu
dfu.program.tool=dfu

dfuflash.name=DFU with suffix GD32V
dfuflash.communication=usb
dfuflash.program.params.verbose=-v
dfuflash.program.params.quiet=-q
dfuflash.program.tool=dfuflash

0 comments on commit 7bf32ce

Please sign in to comment.