@@ -108,28 +108,40 @@ tools.dfu-util.upload.params.quiet=
108108# -Q introduced with latest dfu-util
109109tools.dfu-util.upload.pattern="{path}/{cmd}" --device {upload.vid}:{pid.0},:{upload.pid} -D "{build.path}/{build.project_name}.bin" -a{upload.interface} -Q
110110
111+ tools.bossac.path={runtime.tools.bossac-1.9.1-arduino5.path}
112+ tools.bossac.cmd=bossac
113+ tools.bossac.upload.params.verbose=-d
114+ tools.bossac.upload.params.quiet=
115+ tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U -e -w "{build.path}/{build.project_name}.bin" -R
116+
111117# Required discoveries and monitors
112118# ---------------------------------
113119pluggable_discovery.required.0=builtin:serial-discovery
114120pluggable_discovery.required.1=builtin:mdns-discovery
115121pluggable_discovery.required.2=builtin:dfu-discovery
116122pluggable_monitor.required.serial=builtin:serial-monitor
117123
118- tools.bossac.path={runtime.tools.bossac-1.9.1-arduino5.path}
119- tools.bossac.cmd=bossac
120- tools.bossac.upload.params.verbose=-d
121- tools.bossac.upload.params.quiet=
122- tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U -e -w "{build.path}/{build.project_name}.bin" -R
124+ #
125+ # Debugger
126+ #
123127
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.11.0-arduino2.path}/bin/openocd
134- #debug.server.openocd.scripts_dir={runtime.tools.openocd-0.11.0-arduino2.path}/share/openocd/scripts/
135- #debug.server.openocd.script={runtime.platform.path}/variants/{build.variant}/openocd.cfg
128+ tools.gdb.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
129+ tools.gdb.cmd=arm-none-eabi-gdb
130+ tools.gdb.cmd.windows=arm-none-eabi-gdb.exe
131+
132+ debug.executable={build.path}/{build.project_name}.elf
133+ debug.toolchain=gcc
134+ debug.toolchain.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
135+ debug.toolchain.prefix=arm-none-eabi
136+ debug.server=openocd
137+ debug.server.openocd.path={runtime.tools.openocd-0.11.0-arduino2.path}/bin/openocd
138+ debug.server.openocd.scripts_dir={runtime.tools.openocd-0.11.0-arduino2.path}/share/openocd/scripts/
139+
140+ debug.cortex-debug.custom.postAttachCommands.0=monitor reset halt
141+ debug.cortex-debug.custom.postAttachCommands.1=monitor gdb_breakpoint_override hard
142+ debug.cortex-debug.custom.postAttachCommands.2=monitor gdb_sync
143+ debug.cortex-debug.custom.postAttachCommands.3=c
144+ debug.cortex-debug.custom.overrideRestartCommands.0=monitor reset halt
145+ debug.cortex-debug.custom.overrideRestartCommands.1=monitor gdb_sync
146+ debug.cortex-debug.custom.overrideRestartCommands.2=c
147+ debug.cortex-debug.custom.request=attach
0 commit comments