Skip to content

Commit e6af98a

Browse files
committed
Added gdb recipe for openocd
1 parent d78ab37 commit e6af98a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

boards.txt

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ arduino_zero_edbg.name=Arduino Zero (Programming Port)
2020
arduino_zero_edbg.vid.0=0x03eb
2121
arduino_zero_edbg.pid.0=0x2157
2222

23+
arduino_zero_edbg.debug.tool=gdb
2324
arduino_zero_edbg.upload.tool=openocd
2425
arduino_zero_edbg.upload.protocol=sam-ba
2526
arduino_zero_edbg.upload.maximum_size=262144

platform.txt

+12-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ recipe.output.save_file={build.project_name}.{build.variant}.{build.preferred_ou
113113
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
114114
recipe.size.regex=\.text\s+([0-9]+).*
115115

116-
# Uploader tools
117-
# --------------
116+
# Upload/Debug tools
117+
# ------------------
118118

119119
#
120120
# AVRDUDE
@@ -219,3 +219,13 @@ tools.openocd-withbootsize.erase.pattern=
219219
tools.openocd-withbootsize.bootloader.params.verbose=-d2
220220
tools.openocd-withbootsize.bootloader.params.quiet=-d0
221221
tools.openocd-withbootsize.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{runtime.platform.path}/bootloaders/{bootloader.file}} verify reset; shutdown"
222+
223+
#
224+
# GDB (Debugger)
225+
#
226+
227+
tools.gdb.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
228+
tools.gdb.cmd=arm-none-eabi-gdb
229+
tools.gdb.cmd.windows=arm-none-eabi-gdb.exe
230+
231+
tools.gdb.debug.pattern="{path}/{cmd}" -ex 'target extended-remote | {tools.openocd.path}/{tools.openocd.cmd} -s "{tools.openocd.path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "gdb_port pipe" -c "telnet_port 0" -c init -c halt'

0 commit comments

Comments
 (0)