@@ -119,6 +119,8 @@ extras.path={build.system.path}/extras
119119# Create {build.opt} if not exists in the output sketch dir and force include of SrcWrapper library
120120recipe.hooks.prebuild.1.pattern="{extras.path}/prebuild.sh" "{build.path}" "{build.source.path}" "{runtime.platform.path}"
121121recipe.hooks.prebuild.1.pattern.windows="{runtime.tools.STM32Tools.path}/win/busybox.exe" sh "{extras.path}/prebuild.sh" "{build.path}" "{build.source.path}" "{runtime.platform.path}"
122+ recipe.hooks.postbuild.1.pattern="{extras.path}/postbuild.sh" "{build.path}" "{build.series}" "{runtime.platform.path}"
123+ recipe.hooks.postbuild.1.pattern.windows="{runtime.tools.STM32Tools.path}/win/busybox.exe" sh "{extras.path}/postbuild.sh" "{build.path}" "{build.series}" "{runtime.platform.path}"
122124
123125# compile patterns
124126# ---------------------
@@ -215,3 +217,16 @@ tools.remoteproc_gen.script=run_arduino_gen.sh
215217tools.remoteproc_gen.upload.params.verbose=
216218tools.remoteproc_gen.upload.params.quiet=
217219tools.remoteproc_gen.upload.pattern="{busybox}" sh "{path}/{script}" generate "{build.path}/{build.project_name}.elf" "{build.path}/run_arduino_{build.project_name}.sh"
220+
221+ # Debugger configuration (general options)
222+ # ----------------------------------------
223+ # EXPERIMENTAL feature:
224+ # - this is alpha and may be subject to change without notice
225+ debug.executable={build.path}/{build.project_name}.elf
226+ debug.toolchain=gcc
227+ debug.toolchain.path={compiler.path}
228+ debug.toolchain.prefix=arm-none-eabi-
229+ debug.server=openocd
230+ debug.server.openocd.path={runtime.tools.xpack-openocd-0.12.0-1.path}/bin/openocd
231+ debug.server.openocd.scripts_dir={runtime.tools.xpack-openocd-0.12.0-1.path}/openocd/scripts
232+ debug.server.openocd.script={build.path}/openocd.cfg