Skip to content

Commit 6097fe3

Browse files
committed
fix: network flash for unoq
1 parent 10c342a commit 6097fe3

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

platform.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,23 +267,23 @@ tools.adb.upload.pattern="{path}/{cmd}" push "{build.path}/{build.project_name}.
267267
#
268268
tools.remoteocd.path={runtime.tools.remoteocd.path}
269269
tools.remoteocd.cmd=remoteocd
270-
tools.remoteocd.upload.params.verbose=
270+
tools.remoteocd.upload.params.verbose=--verbose
271271
tools.remoteocd.upload.params.quiet=
272-
tools.remoteocd.upload.pattern="{path}/{cmd}" --adb-path "{runtime.tools.adb.path}/adb" -s "{upload.port.properties.serialNumber}" upload -a "{upload.address}" "{build.path}/{build.project_name}.{upload.extension}"
272+
tools.remoteocd.upload.pattern="{path}/{cmd}" upload --adb-path "{runtime.tools.adb.path}/adb" -s "{upload.port.properties.serialNumber}" -f "{build.variant.path}/flash_sketch.cfg" "{upload.verbose}" "{build.path}/{build.project_name}.{upload.extension}"
273273

274-
tools.remoteocd.bootloader.params.verbose=
274+
tools.remoteocd.bootloader.params.verbose=--verbose
275275
tools.remoteocd.bootloader.params.quiet=
276276
tools.remoteocd.erase.pattern=
277-
tools.remoteocd.bootloader.pattern="{path}/{cmd}" --adb-path "{runtime.tools.adb.path}/adb" -s "{upload.port.properties.serialNumber}" upload "{runtime.platform.path}/firmwares/{bootloader.file}"
277+
tools.remoteocd.bootloader.pattern="{path}/{cmd}" upload --adb-path "{runtime.tools.adb.path}/adb" -s "{upload.port.properties.serialNumber}" -f "{build.variant.path}/flash_bootloader.cfg" "{upload.verbose}" "{runtime.platform.path}/firmwares/{bootloader.file}"
278278

279279
tools.remoteocd_network.upload.protocol=network
280280
tools.remoteocd_network.upload.field.password=Password
281281
tools.remoteocd_network.upload.field.password.secret=true
282282
tools.remoteocd_network.path={runtime.tools.remoteocd.path}
283283
tools.remoteocd_network.cmd=remoteocd
284-
tools.remoteocd_network.upload.params.verbose=
284+
tools.remoteocd_network.upload.params.verbose=--verbose
285285
tools.remoteocd_network.upload.params.quiet=
286-
tools.remoteocd_network.upload.pattern="{path}/{cmd}" --adb-path "{runtime.tools.adb.path}/adb" -i "{upload.port.address}" upload -a "{upload.address}" "{build.path}/{build.project_name}.{upload.extension}"
286+
tools.remoteocd_network.upload.pattern="{path}/{cmd}" upload -a "{upload.port.address}" --password "{upload.field.password}" -f "{build.variant.path}/flash_sketch.cfg" "{upload.verbose}" "{build.path}/{build.project_name}.{upload.extension}"
287287

288288
#
289289
# PYOCD WRAPPER
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
reset_config srst_only srst_push_pull
2+
init
3+
reset
4+
halt
5+
flash info 0
6+
flash write_image erase ${filename}
7+
reset
8+
shutdown
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
reset_config srst_only srst_push_pull
2+
init
3+
reset
4+
halt
5+
flash info 0
6+
flash write_image erase ${filename} 0x80F0000 bin
7+
reset
8+
shutdown

0 commit comments

Comments
 (0)