File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: Apache-2.0
33
44board_runner_args(jlink "--device=ATSAME70N20B" )
5+ board_runner_args(openocd --cmd-post-verify "atsamv gpnvm set 1" )
56
67include (${ZEPHYR_BASE} /boards/common/jlink.board.cmake)
8+ include (${ZEPHYR_BASE} /boards/common/openocd.board.cmake)
Original file line number Diff line number Diff line change 11# Copyright (c) 2024-2025 Henrik Brix Andersen <
[email protected] >
22# SPDX-License-Identifier: Apache-2.0
33
4+ CONFIG_BUILD_OUTPUT_HEX=y
5+
46CONFIG_ARM_MPU=y
57CONFIG_CACHE_MANAGEMENT=y
68CONFIG_HW_STACK_PROTECTION=y
Original file line number Diff line number Diff line change 1+ if {[info exists env(OPENOCD_INTERFACE)]} {
2+ set INTERFACE $env(OPENOCD_INTERFACE)
3+ } else {
4+ set INTERFACE " cmsis-dap"
5+ }
6+
7+ source [find interface/$INTERFACE.cfg]
8+
9+ transport select swd
10+
11+ set CHIPNAME atsame70n20b
12+
13+ source [find target/atsamv.cfg]
14+
15+ $_TARGETNAME configure -event gdb-attach {
16+ echo " Debugger attaching: halting execution"
17+ reset halt
18+ gdb_breakpoint_override hard
19+ }
20+
21+ $_TARGETNAME configure -event gdb-detach {
22+ echo " Debugger detaching: resuming execution"
23+ resume
24+ }
You can’t perform that action at this time.
0 commit comments