Skip to content

Commit abbad5f

Browse files
committed
Merge branch 'master' of github.com:adafruit/ArduinoCore-samd
2 parents e49bf19 + 0145c48 commit abbad5f

File tree

13 files changed

+124
-132
lines changed

13 files changed

+124
-132
lines changed

programmers.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ sam_ice.protocol=
3434
sam_ice.program.protocol=
3535
sam_ice.program.tool=openocd
3636
sam_ice.program.extra_params=
37+
38+
jlink.name=J-Link
39+
jlink.communication=USB
40+
jlink.protocol=jlink
41+
jlink.program.protocol=jlink
42+
jlink.program.tool=openocd
43+
jlink.program.setup_command=transport select swd; set WORKAREASIZE 0;
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/feather_m4/variant.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,11 @@ static const uint8_t SCL = PIN_WIRE_SCL;
175175
#define I2S_DEVICE 0
176176
#define I2S_CLOCK_GENERATOR 3
177177

178-
#define PIN_I2S_SDO (5u)
179-
#define PIN_I2S_SDI PIN_SPI_MOSI
180-
#define PIN_I2S_SCK PIN_A2
181-
#define PIN_I2S_FS PIN_SPI_MISO
178+
#define PIN_I2S_SDO (11u)
179+
#define PIN_I2S_SDI (12u)
180+
#define PIN_I2S_SCK PIN_SERIAL1_TX
181+
#define PIN_I2S_FS (10u)
182+
#define PIN_I2S_MCK PIN_SERIAL1_RX
182183

183184
//QSPI Pins
184185
#define PIN_QSPI_SCK (34u)

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.

0 commit comments

Comments
 (0)