| if {[info exists env(OPENOCD_INTERFACE)]} { |
| set INTERFACE $env(OPENOCD_INTERFACE) |
| } else { |
| # By default connect over Debug USB port using the J-Link interface |
| set INTERFACE "jlink" |
| } |
| |
| source [find interface/$INTERFACE.cfg] |
| |
| transport select swd |
| |
| set CHIPNAME efm32 |
| |
| source [find target/efm32.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 |
| } |
| |
| $_TARGETNAME configure -rtos auto |