Files
zephyr/boards/atmel/sam0/samc21n_xpro/support/openocd.cfg
Gerson Fernando Budke e48e1f5d5b boards: samc21n_xpro: Convert to HWMv2
Port the board to HWMv2.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2024-03-01 15:50:02 +01:00

26 lines
561 B
INI

# Copyright (c) 2018 Bryan O'Donoghue
# Copyright (c) 2022 Kamil Serwus
# SPDX-License-Identifier: Apache-2.0
source [find interface/cmsis-dap.cfg]
transport select swd
# chip name
set CHIPNAME at91samc21n18a
set ENDIAN little
set CPUTAPID 0x0bc11477
source [find target/at91samdXX.cfg]
reset_config trst_and_srst separate
$_TARGETNAME configure -event gdb-attach {
echo "Debugger attaching: halting execution"
reset halt
gdb_breakpoint_override hard
}
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution"
resume
}