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 2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
board_runner_args (jlink "--device=ATSAME70N20B" )
5
+ board_runner_args (openocd --cmd-post-verify "atsamv gpnvm set 1" )
5
6
6
7
include (${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 1
1
# Copyright (c) 2024-2025 Henrik Brix Andersen <henrik@brixandersen.dk>
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ CONFIG_BUILD_OUTPUT_HEX=y
5
+
4
6
CONFIG_ARM_MPU=y
5
7
CONFIG_CACHE_MANAGEMENT=y
6
8
CONFIG_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