Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea74156

Browse files
nedsebfpistm
andauthoredOct 1, 2024··
feat(platform): Add OpenOCD programming support (STlink and DAP) (#2528)
Signed-off-by: Sébastien NEDJAR <sebastien.nedjar@univ-amu.fr> Co-authored-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 8da4af2 commit ea74156

File tree

2 files changed

+422
-140
lines changed

2 files changed

+422
-140
lines changed
 

‎boards.txt

Lines changed: 413 additions & 140 deletions
Large diffs are not rendered by default.

‎platform.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@ tools.remoteproc_gen.upload.params.verbose=
238238
tools.remoteproc_gen.upload.params.quiet=
239239
tools.remoteproc_gen.upload.pattern="{busybox}" sh "{path}/{script}" generate "{build.path}/{build.project_name}.elf" "{build.path}/run_arduino_{build.project_name}.sh"
240240

241+
# OpenOCD sketch upload
242+
tools.openocd_upload.path={openocd_dir}
243+
tools.openocd_upload.cmd=bin/openocd
244+
tools.openocd_upload.cmd.windows=bin/openocd.exe
245+
tools.openocd_upload.upload.params.verbose=-d2
246+
tools.openocd_upload.upload.params.quiet=-d0
247+
tools.openocd_upload.upload.pattern="{path}/{cmd}" {upload.verbose} -f interface/{upload.protocol}.cfg -f target/{openocd.target}.cfg -c "program {build.path}/{build.project_name}.elf verify reset exit"
248+
241249
#
242250
# Debugger
243251
#
@@ -251,3 +259,4 @@ debug.server.openocd.scripts_dir={openocd_dir}/openocd/scripts
251259
# Common config
252260
debug.server.openocd.scripts.0=interface/stlink.cfg
253261
debug.server.openocd.scripts.1={runtime.platform.path}/debugger/select_hla.cfg
262+
debug.server.openocd.scripts.2=target/{openocd.target}.cfg

0 commit comments

Comments
 (0)
Please sign in to comment.