Skip to content

Commit 0145c48

Browse files
brentruladyada
authored andcommitted
force jlink/swd, rename all m0 arduino_zero.cfg to board_name.cfg (arduino#81)
1 parent eef12c3 commit 0145c48

File tree

11 files changed

+112
-128
lines changed

11 files changed

+112
-128
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Adafruit Circuit Playground 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+
interface jlink
22+
transport select swd
23+
reset_config none separate
24+
25+
# chip name
26+
set CHIPNAME at91samd21g18
27+
set ENDIAN little
28+
29+
# choose a port here
30+
set telnet_port 0
31+
32+
source [find target/at91samdXX.cfg]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Adafruit Feather M0 Express 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+
interface jlink
22+
transport select swd
23+
reset_config none separate
24+
25+
# chip name
26+
set CHIPNAME at91samd21g18
27+
set ENDIAN little
28+
29+
# choose a port here
30+
set telnet_port 0
31+
32+
source [find target/at91samdXX.cfg]

variants/circuitplay/openocd_scripts/arduino_zero.cfg renamed to variants/gemma_m0/openocd_scripts/gemma_m0.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Arduino Zero OpenOCD script.
2+
# Adafruit Gemma M0 OpenOCD script.
33
#
44
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
55
#
@@ -18,7 +18,9 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
#
2020

21-
source [find interface/cmsis-dap.cfg]
21+
interface jlink
22+
transport select swd
23+
reset_config none separate
2224

2325
# chip name
2426
set CHIPNAME at91samd21g18

variants/hallowing_m0_express/openocd_scripts/arduino_zero.cfg

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Adafruit Hallowing M0 Express 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+
interface jlink
22+
transport select swd
23+
reset_config none separate
24+
25+
# chip name
26+
set CHIPNAME at91samd21g18
27+
set ENDIAN little
28+
29+
# choose a port here
30+
set telnet_port 0
31+
32+
source [find target/at91samdXX.cfg]

variants/itsybitsy_m0/openocd_scripts/arduino_zero.cfg

Lines changed: 0 additions & 30 deletions
This file was deleted.

variants/gemma_m0/openocd_scripts/arduino_zero.cfg renamed to variants/itsybitsy_m0/openocd_scripts/itsybitsy_m0.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Arduino Zero OpenOCD script.
2+
# Adafruit ItsyBitsy M0 OpenOCD script.
33
#
44
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
55
#
@@ -18,7 +18,9 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
#
2020

21-
source [find interface/cmsis-dap.cfg]
21+
interface jlink
22+
transport select swd
23+
reset_config none separate
2224

2325
# chip name
2426
set CHIPNAME at91samd21g18

variants/metro_m0/openocd_scripts/arduino_zero.cfg

Lines changed: 0 additions & 30 deletions
This file was deleted.

variants/feather_m0/openocd_scripts/arduino_zero.cfg renamed to variants/metro_m0/openocd_scripts/metro_m0.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Arduino Zero OpenOCD script.
2+
# Adafruit Metro M0 OpenOCD script.
33
#
44
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
55
#
@@ -18,7 +18,9 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
#
2020

21-
source [find interface/cmsis-dap.cfg]
21+
interface jlink
22+
transport select swd
23+
reset_config none separate
2224

2325
# chip name
2426
set CHIPNAME at91samd21g18

variants/trinket_m0/openocd_scripts/arduino_zero.cfg

Lines changed: 0 additions & 30 deletions
This file was deleted.

variants/feather_m0_express/openocd_scripts/arduino_zero.cfg renamed to variants/trinket_m0/openocd_scripts/trinket_m0.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Arduino Zero OpenOCD script.
2+
# Adafruit Trinket M0 OpenOCD script.
33
#
44
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
55
#
@@ -18,7 +18,9 @@
1818
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
#
2020

21-
source [find interface/cmsis-dap.cfg]
21+
interface jlink
22+
transport select swd
23+
reset_config none separate
2224

2325
# chip name
2426
set CHIPNAME at91samd21g18

0 commit comments

Comments
 (0)