Skip to content

Commit 541b224

Browse files
gautierg-stfpistm
authored andcommitted
platform: add openocd debug feature to platform.txt
Signed-off-by: Guillaume Gautier <[email protected]>
1 parent ce7b53e commit 541b224

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

platform.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,16 @@ tools.remoteproc_gen.script=run_arduino_gen.sh
215215
tools.remoteproc_gen.upload.params.verbose=
216216
tools.remoteproc_gen.upload.params.quiet=
217217
tools.remoteproc_gen.upload.pattern="{busybox}" sh "{path}/{script}" generate "{build.path}/{build.project_name}.elf" "{build.path}/run_arduino_{build.project_name}.sh"
218+
219+
# Debugger configuration (general options)
220+
# ----------------------------------------
221+
# EXPERIMENTAL feature:
222+
# - this is alpha and may be subject to change without notice
223+
debug.executable={build.path}/{build.project_name}.elf
224+
debug.toolchain=gcc
225+
debug.toolchain.path={compiler.path}
226+
debug.toolchain.prefix=arm-none-eabi-
227+
debug.server=openocd
228+
debug.server.openocd.path={runtime.tools.xpack-openocd-0.12.0-1.path}/bin/openocd
229+
debug.server.openocd.scripts_dir={runtime.tools.xpack-openocd-0.12.0-1.path}/openocd/scripts
230+
debug.server.openocd.script={build.path}/openocd.cfg

0 commit comments

Comments
 (0)