openocd-jlink-kx.cfg 713 Bytes
#
# NXP Kinetis Freedom developer board
#
# OpenSDA is the on-board debugger, some boards have a CMSIS-DAP compatible
# interface, other boards comes pre-flashed with a Segger J-Link compatible
# firmware. The OpenSDA controller can be re-flashed to provide either of the two.
# Both interfaces work with OpenOCD, but we need to tell which one we have on
# our debugger.

# J-Link compatible firmware binaries for OpenSDA can be found at:
# https://www.segger.com/downloads/jlink#JLinkOpenSDABoardSpecificFirmwares
source [find interface/jlink.cfg]

# Kinetis K series CPUs
source [find target/kx.cfg]

reset_config srst_only

$_TARGETNAME configure -event gdb-attach {
  halt
}
$_TARGETNAME configure -rtos auto