@@ -106,12 +106,12 @@ compiler.elf2hex.extra_flags=
106
106
# ---------
107
107
build.usb_flags=-DUSBCON {build.usb_speed} -DUSBD_VID={build.vid} -DUSBD_PID={build.pid} -DHAL_PCD_MODULE_ENABLED
108
108
109
- # Specify defaults for vid/pid, since an empty value is impossible to
110
- # detect in the preprocessor, but a 0 can be checked for vid and -1
111
- # for pid (can be 0).
109
+ # Specify defaults for vid/pid
112
110
# Boards should specify either both, or neither of these.
113
- build.vid=0
114
- build.pid=-1
111
+ build.vid={vid.0}
112
+ build.pid={pid.0}
113
+ upload.vid=0x0483
114
+ upload.pid=0xdf11
115
115
116
116
# To customize the USB manufacturer or product string, must add defines
117
117
# for them, e.g.:
@@ -202,7 +202,7 @@ tools.stm32CubeProg.path={runtime.tools.STM32Tools.path}
202
202
tools.stm32CubeProg.cmd=stm32CubeProg.sh
203
203
tools.stm32CubeProg.upload.params.verbose=
204
204
tools.stm32CubeProg.upload.params.quiet=
205
- tools.stm32CubeProg.upload.pattern="{busybox}" sh "{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" {build.flash_offset} {upload.options}
205
+ tools.stm32CubeProg.upload.pattern="{busybox}" sh "{path}/{cmd}" -i {upload.protocol} -f "{build.path}/{build.project_name}.bin" -o {build.flash_offset} {upload.options}
206
206
207
207
# blackmagic upload for generic STM32
208
208
tools.bmp_upload.cmd=arm-none-eabi-gdb
@@ -225,7 +225,7 @@ tools.maple_upload.script=maple_upload.sh
225
225
tools.maple_upload.path={runtime.tools.STM32Tools.path}
226
226
tools.maple_upload.upload.params.verbose=-d
227
227
tools.maple_upload.upload.params.quiet=n
228
- tools.maple_upload.upload.pattern="{busybox}" sh "{path}/{script}" {serial.port.file} {upload.altID} {upload.usbID} "{build.path}/{build.project_name}.bin "
228
+ tools.maple_upload.upload.pattern="{busybox}" sh "{path}/{script}" {serial.port.file} {upload.altID} {upload.vid} {upload.pid} "{build.path}/{build.project_name}.dfu "
229
229
230
230
# STM32MP1 self-contained shell script
231
231
tools.remoteproc_gen.path={runtime.tools.STM32Tools.path}
0 commit comments