File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ arduino_zero_edbg.name=Arduino Zero (Programming Port)
2020arduino_zero_edbg.vid.0=0x03eb
2121arduino_zero_edbg.pid.0=0x2157
2222
23+ arduino_zero_edbg.debug.tool=gdb
2324arduino_zero_edbg.upload.tool=openocd
2425arduino_zero_edbg.upload.protocol=sam-ba
2526arduino_zero_edbg.upload.maximum_size=262144
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ recipe.output.save_file={build.project_name}.{build.variant}.{build.preferred_ou
113113recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
114114recipe.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=
219219tools.openocd-withbootsize.bootloader.params.verbose=-d2
220220tools.openocd-withbootsize.bootloader.params.quiet=-d0
221221tools.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'
You can’t perform that action at this time.
0 commit comments