Skip to content

Commit 064bc7e

Browse files
committed
usb: optimize 1200bps wait for IDE2
1 parent 45128fd commit 064bc7e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

boards.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ giga.upload.vid=0x2341
3838
giga.upload.pid=0x0366
3939
giga.upload.interface=0
4040
giga.upload.use_1200bps_touch=true
41-
giga.upload.wait_for_upload_port=true
41+
giga.upload.wait_for_upload_port=false
4242
giga.upload.native_usb=true
4343
giga.upload.maximum_size=1966080
4444
giga.upload.maximum_data_size=523624
4545

4646
giga.upload.address=0x080E0000
47+
giga.upload.wait_for_device=-w
4748

4849
giga.upload.maximum_size=786432
4950
giga.upload.maximum_data_size=523624
@@ -263,12 +264,13 @@ portentah7.upload.vid=0x2341
263264
portentah7.upload.pid=0x035b
264265
portentah7.upload.interface=0
265266
portentah7.upload.use_1200bps_touch=true
266-
portentah7.upload.wait_for_upload_port=true
267+
portentah7.upload.wait_for_upload_port=false
267268
portentah7.upload.native_usb=true
268269
portentah7.upload.maximum_size=1966080
269270
portentah7.upload.maximum_data_size=523624
270271

271272
portentah7.upload.address=0x080E0000
273+
portentah7.upload.wait_for_device=-w
272274

273275
portentah7.upload.maximum_size=786432
274276
portentah7.upload.maximum_data_size=523624
@@ -449,7 +451,7 @@ portentac33.upload.native_usb=true
449451
portentac33.upload.maximum_size=1966080
450452
portentac33.upload.maximum_data_size=523624
451453
portentac33.upload.address=0x100000
452-
portentac33.upload.dfuse=-Q
454+
portentac33.upload.dfuse=-Q -w
453455

454456
portentac33.bootloader.tool=dfu-util
455457
portentac33.bootloader.tool.default=dfu-util
@@ -495,12 +497,13 @@ opta.upload.vid=0x2341
495497
opta.upload.pid=0x0364
496498
opta.upload.interface=0
497499
opta.upload.use_1200bps_touch=true
498-
opta.upload.wait_for_upload_port=true
500+
opta.upload.wait_for_upload_port=false
499501
opta.upload.native_usb=true
500502
opta.upload.maximum_size=1966080
501503
opta.upload.maximum_data_size=523624
502504

503505
opta.upload.address=0x080E0000
506+
opta.upload.wait_for_device=-w
504507

505508
opta.upload.maximum_size=786432
506509
opta.upload.maximum_data_size=523624

platform.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,13 @@ tools.stm32flash.erase.pattern="{path}/{cmd}" {serial.port} -e 1024 -b 2400
220220

221221
upload.dfuse=--dfuse-address={upload.address}:leave
222222
bootloader.dfuse=--dfuse-address={bootloader.address}:leave
223+
upload.wait_for_device=
223224

224225
tools.dfu-util.path={runtime.tools.dfu-util.path}
225226
tools.dfu-util.cmd=dfu-util
226227
tools.dfu-util.upload.params.verbose=-d
227228
tools.dfu-util.upload.params.quiet=
228-
tools.dfu-util.upload.pattern="{path}/{cmd}" --device ,{upload.vid}:{upload.pid} -D "{build.path}/{build.project_name}.{upload.extension}" -a{upload.interface} {upload.dfuse}
229+
tools.dfu-util.upload.pattern="{path}/{cmd}" --device ,{upload.vid}:{upload.pid} -D "{build.path}/{build.project_name}.{upload.extension}" -a{upload.interface} {upload.dfuse} {upload.wait_for_device}
229230

230231
tools.dfu-util.bootloader.params.verbose=-d
231232
tools.dfu-util.bootloader.params.quiet=

0 commit comments

Comments
 (0)