Skip to content

Commit 41cd7a7

Browse files
committed
adding samd51 debug, still wip
1 parent 463beee commit 41cd7a7

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

debug/openocd/samd21.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ source [find interface/cmsis-dap.cfg]
2222
transport select swd
2323

2424
# chip name
25-
#set CHIPNAME at91samd21g18
25+
set CHIPNAME samd21
2626

2727
source [find target/at91samdXX.cfg]

debug/openocd/samd51.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Arduino Zero OpenOCD script.
3+
#
4+
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
# See the GNU Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
#
20+
21+
source [find interface/cmsis-dap.cfg]
22+
#source [find interface/jlink.cfg]
23+
transport select swd
24+
25+
# chip name
26+
set CHIPNAME samd51
27+
28+
source [find target/atsame5x.cfg]
29+
adapter speed 500

platform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ debug.toolchain.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
234234
debug.toolchain.prefix=arm-none-eabi-
235235
debug.server=openocd
236236
debug.server.openocd.path={runtime.tools.openocd.path}/bin/openocd
237+
#debug.server.openocd.path=/usr/local/bin/openocd
237238
debug.server.openocd.scripts_dir={runtime.tools.openocd.path}/share/openocd/scripts/
238239
debug.server.openocd.script={runtime.platform.path}/{build.openocdscript}
239240

0 commit comments

Comments
 (0)