Skip to content

Commit

Permalink
Merge branch 'master' of github.com:adafruit/ArduinoCore-samd
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed May 22, 2024
2 parents b64fe90 + 4693b93 commit 7473729
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 5 deletions.
3 changes: 1 addition & 2 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,8 @@ adafruit_TRRStrinkey_m0.menu.debug.on=On
adafruit_TRRStrinkey_m0.menu.debug.on.build.flags.debug=-g



# -----------------------------------
# Adafruit TRRS Trinkey M0 (SAMD21)
# Adafruit Thumbstick Trinkey M0 (SAMD21)
# -----------------------------------
adafruit_thumbsticktrinkey_m0.name=Adafruit Thumbstick Trinkey M0 (SAMD21)

Expand Down
6 changes: 3 additions & 3 deletions platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# https://arduino.github.io/arduino-cli/0.33/platform-specification/

name=Adafruit SAMD (32-bits ARM Cortex-M0+ and Cortex-M4) Boards
version=1.7.14
version=1.7.15

# Compile variables
# -----------------
Expand Down Expand Up @@ -195,7 +195,7 @@ tools.openocd.erase.pattern=

tools.openocd.bootloader.params.verbose=-d2
tools.openocd.bootloader.params.quiet=-d0
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{runtime.platform.path}/bootloaders/{bootloader.file}} verify reset; shutdown"
tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/{build.openocdscript}" -c "telnet_port disabled; init; halt; $_FLASHDRIVER bootloader 0; program {{runtime.platform.path}/bootloaders/{bootloader.file}} verify reset; shutdown"

#
# OpenOCD sketch upload - version with configurable bootloader size
Expand All @@ -221,7 +221,7 @@ tools.openocd-withbootsize.erase.pattern=

tools.openocd-withbootsize.bootloader.params.verbose=-d2
tools.openocd-withbootsize.bootloader.params.quiet=-d0
tools.openocd-withbootsize.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{runtime.platform.path}/bootloaders/{bootloader.file}} verify reset; shutdown"
tools.openocd-withbootsize.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/{build.openocdscript}" -c "telnet_port disabled; init; halt; $_FLASHDRIVER bootloader 0; program {{runtime.platform.path}/bootloaders/{bootloader.file}} verify reset; shutdown"

# ----------------------------------------
# Debugger configuration (general options)
Expand Down
2 changes: 2 additions & 0 deletions scripts/openocd/daplink_samd21.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ transport select swd
# chip name
set CHIPNAME samd21

set _FLASHDRIVER at91samd

source [find target/at91samdXX.cfg]
2 changes: 2 additions & 0 deletions scripts/openocd/daplink_samd51.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ transport select swd
# chip name
set CHIPNAME samd51

set _FLASHDRIVER atsame5

source [find target/atsame5x.cfg]
2 changes: 2 additions & 0 deletions scripts/openocd/jlink_samd21.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ transport select swd
# chip name
set CHIPNAME samd21

set _FLASHDRIVER at91samd

source [find target/at91samdXX.cfg]
2 changes: 2 additions & 0 deletions scripts/openocd/jlink_samd51.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ transport select swd
# chip name
set CHIPNAME samd51

set _FLASHDRIVER atsame5

source [find target/atsame5x.cfg]
15 changes: 15 additions & 0 deletions tools/makeboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,21 @@ def make_board(mcu, name, variant, vendor, product, vid, pid_list, boarddefine,
"SHT4XTRINKEY_M0", "-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_SHT4XTRINKEY_M0",
"sht4xtrinkey_m0/bootloader-sht4xtrinkey_m0.bin"],

["adafruit_pixeltrinkey_m0", "pixeltrinkey_m0", "Adafruit", "Pixel Trinkey M0",
"0x239A", ["0x8155", "0x0155", "0x8156"],
"PIXELTRINKEY_M0", "-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_PIXELTRINKEY_M0",
"pixeltrinkey_m0/bootloader-pixeltrinkey_m0.bin"],

["adafruit_TRRStrinkey_m0", "TRRStrinkey_m0", "Adafruit", "TRRS Trinkey M0",
"0x239A", ["0x8157", "0x0157", "0x8158"],
"TRRSTRINKEY_M0", "-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_TRRSTRINKEY_M0",
"TRRStrinkey_m0/bootloader-TRRStrinkey_m0.bin"],

["adafruit_thumbsticktrinkey_m0", "thumbsticktrinkey_m0", "Adafruit", "Thumbstick Trinkey M0",
"0x239A", ["0x8159", "0x0159", "0x8160"],
"THUMBSTICKTRINKEY_M0", "-D__SAMD21E18A__ -DCRYSTALLESS -DADAFRUIT_THUMBSTICKTRINKEY_M0",
"thumbsticktrinkey_m0/bootloader-thumbsticktrinkey_m0.bin"],

["adafruit_itsybitsy_m0", "itsybitsy_m0", "Adafruit", "ItsyBitsy M0 Express",
"0x239A", ["0x800F", "0x000F", "0x8012"],
"ITSYBITSY_M0", "-D__SAMD21G18A__ -DCRYSTALLESS -DADAFRUIT_ITSYBITSY_M0",
Expand Down

0 comments on commit 7473729

Please sign in to comment.