Skip to content

Commit ebac2b4

Browse files
committed
Upgrades for debugging support on arduino-cli (alpha)
1 parent ac51448 commit ebac2b4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

platform.txt

+14
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build
120120
recipe.size.regex=^(?:\.text|\.data|)\s+([0-9]+).*
121121
recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).*
122122

123+
124+
# Debugger configuration (general options)
125+
# ----------------------------------------
126+
# EXPERIMENTAL feature:
127+
# - this is alpha and may be subject to change without notice
128+
debug.executable={build.path}/{build.project_name}.elf
129+
debug.toolchain=gcc
130+
debug.toolchain.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
131+
debug.toolchain.prefix=arm-none-eabi-
132+
debug.server=openocd
133+
debug.server.openocd.path={runtime.tools.openocd-0.10.0-arduino7.path}/bin/openocd
134+
debug.server.openocd.scripts_dir={runtime.tools.openocd-0.10.0-arduino7.path}/share/openocd/scripts/
135+
debug.server.openocd.script={runtime.platform.path}/variants/{build.variant}/{build.openocdscript}
136+
123137
# Upload/Debug tools
124138
# ------------------
125139

0 commit comments

Comments
 (0)