1if {[info exists env(OPENOCD_INTERFACE)]} { 2 set INTERFACE $env(OPENOCD_INTERFACE) 3} else { 4 # By default connect over Debug USB port using the J-Link interface 5 set INTERFACE "jlink" 6} 7 8source [find interface/$INTERFACE.cfg] 9 10transport select swd 11 12set CHIPNAME efr32 13 14source [find target/efm32.cfg] 15 16$_TARGETNAME configure -event gdb-attach { 17 echo "Debugger attaching: halting execution" 18 reset halt 19 gdb_breakpoint_override hard 20} 21 22$_TARGETNAME configure -event gdb-detach { 23 echo "Debugger detaching: resuming execution" 24 resume 25} 26