adding samd51 debug, still wip

This commit is contained in:
hathach 2023-06-22 16:42:55 +07:00
parent 463beee02d
commit 41cd7a70e1
3 changed files with 31 additions and 1 deletions

View file

@ -22,6 +22,6 @@ source [find interface/cmsis-dap.cfg]
transport select swd
# chip name
#set CHIPNAME at91samd21g18
set CHIPNAME samd21
source [find target/at91samdXX.cfg]

29
debug/openocd/samd51.cfg Normal file
View file

@ -0,0 +1,29 @@
#
# Arduino Zero OpenOCD script.
#
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
source [find interface/cmsis-dap.cfg]
#source [find interface/jlink.cfg]
transport select swd
# chip name
set CHIPNAME samd51
source [find target/atsame5x.cfg]
adapter speed 500

View file

@ -234,6 +234,7 @@ debug.toolchain.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
debug.toolchain.prefix=arm-none-eabi-
debug.server=openocd
debug.server.openocd.path={runtime.tools.openocd.path}/bin/openocd
#debug.server.openocd.path=/usr/local/bin/openocd
debug.server.openocd.scripts_dir={runtime.tools.openocd.path}/share/openocd/scripts/
debug.server.openocd.script={runtime.platform.path}/{build.openocdscript}