Skip to content

Commit 7bf32ce

Browse files
committed
programmers: add DFU with suffix
1 parent 5a5b255 commit 7bf32ce

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

platform.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,8 @@ tools.serial.program.pattern="{path}{cmd}" -g 0x08000000 -b {build.burn_baudrate
112112
tools.dfu.cmd=dfu-util
113113
tools.dfu.path={runtime.tools.gd32vflash.path}/
114114
tools.dfu.program.pattern="{path}{cmd}" -d {build.vid}:{build.pid} -a 0 --dfuse-address 0x08000000:leave -D "{build.path}/{build.project_name}.bin"
115+
116+
## DFU with suffix
117+
tools.dfuflash.cmd=dfu-flash
118+
tools.dfuflash.path={runtime.tools.gd32vflash.path}/
119+
tools.dfuflash.program.pattern="{path}{cmd}" {build.vid} {build.pid} "{build.path}/{build.project_name}.bin"

programmers.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ dfu.name=DFU GD32V
2929
dfu.communication=usb
3030
dfu.program.params.verbose=-v
3131
dfu.program.params.quiet=-q
32-
dfu.program.tool=dfu
32+
dfu.program.tool=dfu
33+
34+
dfuflash.name=DFU with suffix GD32V
35+
dfuflash.communication=usb
36+
dfuflash.program.params.verbose=-v
37+
dfuflash.program.params.quiet=-q
38+
dfuflash.program.tool=dfuflash

0 commit comments

Comments
 (0)