Skip to content

Commit 95da7fb

Browse files
committed
Added OpenOCD for Windows.
Paths from command line in Windows style ("C:\path\etc...") should be enclosed in double brackets like "{{C:\path\etc...}}" to avoid OpenOCD's tcl interpreter to escape them.
1 parent f12a643 commit 95da7fb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: platform.txt

+3-6
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ recipe.size.regex=\.text\s+([0-9]+).*
7272
# -------------------
7373

7474
tools.openocd.cmd=bin/openocd
75-
tools.openocd.cmd.windows=bin/openocd-0.8.0.exe
76-
tools.openocd.path={runtime.ide.path}/hardware/tools/openocd-0.8.0
75+
tools.openocd.cmd.windows=bin/openocd.exe
76+
tools.openocd.path={runtime.ide.path}/hardware/tools/OpenOCD-0.9.0-dev-arduino
7777

7878
tools.openocd.upload.params.verbose=
7979
tools.openocd.upload.params.quiet=
80-
#tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f board/atmel_samd21_xplained_pro.cfg -c "program {build.path}/{build.project_name}.elf verify reset"
81-
tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f ../../../../../arduino/samd/variants/{build.variant}/{build.openocdscript} -c "program {build.path}/{build.project_name}.elf verify reset"
82-
#tools.openocd.upload.pattern.windows="{path}/{cmd}" {upload.verbose} -s "{path}/scripts/" -f board/atmel_samd21_xplained_pro.cfg -c "program {build.path}/{build.project_name}.elf verify reset"
83-
tools.openocd.upload.pattern.windows="{path}/{cmd}" -s "{path}/scripts/" -f "../../../arduino/samd/variants/{build.variant}/{build.openocdscript}" -c "program {build.path}/{build.project_name}.elf verify reset"
80+
tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/openocd/scripts/" -f ../../../../../arduino/samd/variants/{build.variant}/{build.openocdscript} -c "program {{{build.path}/{build.project_name}.elf}} verify reset"
8481

0 commit comments

Comments
 (0)