Skip to content

Commit 3191628

Browse files
committed
usb: optimize 1200bps wait for IDE2
1 parent 8d6bc45 commit 3191628

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: boards.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ giga.upload.vid=0x2341
3737
giga.upload.pid=0x0366
3838
giga.upload.interface=0
3939
giga.upload.use_1200bps_touch=true
40-
giga.upload.wait_for_upload_port=true
40+
giga.upload.wait_for_upload_port=false
4141
giga.upload.native_usb=true
4242
giga.upload.maximum_size=1966080
4343
giga.upload.maximum_data_size=523624
4444

4545
giga.upload.address=0x080E0000
46+
giga.upload.wait_for_device=-w
4647

4748
giga.upload.maximum_size=786432
4849
giga.upload.maximum_data_size=523624
@@ -268,12 +269,13 @@ portentah7.upload.vid=0x2341
268269
portentah7.upload.pid=0x035b
269270
portentah7.upload.interface=0
270271
portentah7.upload.use_1200bps_touch=true
271-
portentah7.upload.wait_for_upload_port=true
272+
portentah7.upload.wait_for_upload_port=false
272273
portentah7.upload.native_usb=true
273274
portentah7.upload.maximum_size=1966080
274275
portentah7.upload.maximum_data_size=523624
275276

276277
portentah7.upload.address=0x080E0000
278+
portentah7.upload.wait_for_device=-w
277279

278280
portentah7.upload.maximum_size=786432
279281
portentah7.upload.maximum_data_size=523624
@@ -464,7 +466,7 @@ portentac33.upload.native_usb=true
464466
portentac33.upload.maximum_size=1966080
465467
portentac33.upload.maximum_data_size=523624
466468
portentac33.upload.address=0x100000
467-
portentac33.upload.dfuse=-Q
469+
portentac33.upload.dfuse=-Q -w
468470

469471
portentac33.bootloader.tool=dfu-util
470472
portentac33.bootloader.tool.default=dfu-util

Diff for: 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)