Skip to content

Commit 9596e5d

Browse files
committed
add ram mode
1 parent e000ccc commit 9596e5d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

boards.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
menu.debug=Debug
22
menu.link_mode=Link mode
3+
menu.flash_mode=Flash mode
34

45
##########################################################################################
56

@@ -532,6 +533,11 @@ unoq.menu.link_mode.static=Static
532533
unoq.menu.link_mode.static.build.link_mode=static
533534
unoq.menu.link_mode.static.upload.extension=bin-zsk.bin
534535

536+
unoq.menu.flash_mode.flash=Flash
537+
unoq.menu.flash_mode.flash.openocd_cfg=flash_sketch.cfg
538+
unoq.menu.flash_mode.ram=RAM
539+
unoq.menu.flash_mode.ram.openocd_cfg=flash_sketch_ram.cfg
540+
535541
unoq.build.zephyr_target=arduino_uno_q
536542
unoq.build.zephyr_args=
537543
unoq.build.variant=arduino_uno_q_stm32u585xx

platform.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,12 @@ tools.remoteocd.path={runtime.tools.remoteocd.path}
269269
tools.remoteocd.cmd=remoteocd
270270
tools.remoteocd.upload.params.verbose=--verbose
271271
tools.remoteocd.upload.params.quiet=
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}"
272+
tools.remoteocd.upload.pattern="{path}/{cmd}" upload --adb-path "{runtime.tools.adb.path}/adb" -s "{upload.port.properties.serialNumber}" -f "{build.variant.path}/{openocd_cfg}" "{upload.verbose}" "{build.path}/{build.project_name}.{upload.extension}"
273273

274274
tools.remoteocd.bootloader.params.verbose=--verbose
275275
tools.remoteocd.bootloader.params.quiet=
276276
tools.remoteocd.erase.pattern=
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}"
277+
tools.remoteocd.bootloader.pattern="{path}/{cmd}" upload --adb-path "{runtime.tools.adb.path}/adb" -s "{upload.port.properties.serialNumber}" -f "{build.variant.path}/{openocd_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
@@ -283,7 +283,7 @@ tools.remoteocd_network.path={runtime.tools.remoteocd.path}
283283
tools.remoteocd_network.cmd=remoteocd
284284
tools.remoteocd_network.upload.params.verbose=--verbose
285285
tools.remoteocd_network.upload.params.quiet=
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}"
286+
tools.remoteocd_network.upload.pattern="{path}/{cmd}" upload -a "{upload.port.address}" --password "{upload.field.password}" -f "{build.variant.path}/{openocd_cfg}" "{upload.verbose}" "{build.path}/{build.project_name}.{upload.extension}"
287287

288288
#
289289
# PYOCD WRAPPER

0 commit comments

Comments
 (0)