source [find interface/jlink.cfg]

transport select swd

set CHIPNAME atsamd51p20a
source [find target/atsame5x.cfg]

reset_config srst_only

$_TARGETNAME configure -event gdb-attach {
        echo "Debugger attaching: halting execution"
        reset halt
}

$_TARGETNAME configure -event gdb-detach {
        echo "Debugger detaching: resuming execution"
        resume
}
