Skip to content

Commit a036f31

Browse files
committed
usb: optimize 1200bps wait for IDE2
1 parent eedfdaf commit a036f31

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

boards.txt

+7-4
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ giga.upload.vid=0x2341
3939
giga.upload.pid=0x0366
4040
giga.upload.interface=0
4141
giga.upload.use_1200bps_touch=true
42-
giga.upload.wait_for_upload_port=true
42+
giga.upload.wait_for_upload_port=false
4343
giga.upload.native_usb=true
4444
giga.upload.maximum_size=1966080
4545
giga.upload.maximum_data_size=523624
4646

4747
giga.upload.address=0x080E0000
48+
giga.upload.wait_for_device=-w
4849

4950
giga.upload.maximum_size=786432
5051
giga.upload.maximum_data_size=523624
@@ -278,12 +279,13 @@ portentah7.upload.vid=0x2341
278279
portentah7.upload.pid=0x035b
279280
portentah7.upload.interface=0
280281
portentah7.upload.use_1200bps_touch=true
281-
portentah7.upload.wait_for_upload_port=true
282+
portentah7.upload.wait_for_upload_port=false
282283
portentah7.upload.native_usb=true
283284
portentah7.upload.maximum_size=1966080
284285
portentah7.upload.maximum_data_size=523624
285286

286287
portentah7.upload.address=0x080E0000
288+
portentah7.upload.wait_for_device=-w
287289

288290
portentah7.upload.maximum_size=786432
289291
portentah7.upload.maximum_data_size=523624
@@ -480,7 +482,7 @@ portentac33.upload.native_usb=true
480482
portentac33.upload.maximum_size=1966080
481483
portentac33.upload.maximum_data_size=523624
482484
portentac33.upload.address=0x100000
483-
portentac33.upload.dfuse=-Q
485+
portentac33.upload.dfuse=-Q -w
484486

485487
portentac33.bootloader.tool=dfu-util
486488
portentac33.bootloader.tool.default=dfu-util
@@ -527,12 +529,13 @@ opta.upload.vid=0x2341
527529
opta.upload.pid=0x0364
528530
opta.upload.interface=0
529531
opta.upload.use_1200bps_touch=true
530-
opta.upload.wait_for_upload_port=true
532+
opta.upload.wait_for_upload_port=false
531533
opta.upload.native_usb=true
532534
opta.upload.maximum_size=1966080
533535
opta.upload.maximum_data_size=523624
534536

535537
opta.upload.address=0x080E0000
538+
opta.upload.wait_for_device=-w
536539

537540
opta.upload.maximum_size=786432
538541
opta.upload.maximum_data_size=523624

platform.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,13 @@ tools.stm32flash.erase.pattern="{path}/{cmd}" {serial.port} -e 1024 -b 2400
200200

201201
upload.dfuse=--dfuse-address={upload.address}:leave
202202
bootloader.dfuse=--dfuse-address={bootloader.address}:leave
203+
upload.wait_for_device=
203204

204205
tools.dfu-util.path={runtime.tools.dfu-util.path}
205206
tools.dfu-util.cmd=dfu-util
206207
tools.dfu-util.upload.params.verbose=-d
207208
tools.dfu-util.upload.params.quiet=
208-
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}
209+
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}
209210

210211
tools.dfu-util.bootloader.params.verbose=-d
211212
tools.dfu-util.bootloader.params.quiet=

0 commit comments

Comments
 (0)