Skip to content

Commit

Permalink
Merge pull request #358 from rcross-lc/master
Browse files Browse the repository at this point in the history
Use the correct openocd flash driver for ATSAMD51 devices
  • Loading branch information
hathach authored May 15, 2024
2 parents 72e88b4 + 634b97c commit ac9e81e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform.txt
Original file line number Diff line number Diff line change
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]

0 comments on commit ac9e81e

Please sign in to comment.