if {[info exists env(OPENOCD_INTERFACE)]} { set INTERFACE $env(OPENOCD_INTERFACE) } else { # By default connect over Debug USB port set INTERFACE "cmsis-dap" } source [find interface/$INTERFACE.cfg] transport select swd source [find target/psoc6_2m.cfg]