Browse Source
Add OpenOCD support to the CANbardo board definition. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>pull/92180/merge
3 changed files with 28 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
if {[info exists env(OPENOCD_INTERFACE)]} { |
||||||
|
set INTERFACE $env(OPENOCD_INTERFACE) |
||||||
|
} else { |
||||||
|
set INTERFACE "cmsis-dap" |
||||||
|
} |
||||||
|
|
||||||
|
source [find interface/$INTERFACE.cfg] |
||||||
|
|
||||||
|
transport select swd |
||||||
|
|
||||||
|
set CHIPNAME atsame70n20b |
||||||
|
|
||||||
|
source [find target/atsamv.cfg] |
||||||
|
|
||||||
|
$_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 |
||||||
|
} |
Loading…
Reference in new issue