From 6dbc8d7e1778b22c7a43c36744ed7397dc971c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Mon, 1 May 2017 16:28:00 +0200 Subject: [PATCH] frdm-common: Add OpenOCD configurations for Kinetis L devices --- boards/common/frdm/dist/openocd-klx.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 boards/common/frdm/dist/openocd-klx.cfg diff --git a/boards/common/frdm/dist/openocd-klx.cfg b/boards/common/frdm/dist/openocd-klx.cfg new file mode 100644 index 0000000000..47a447b7b8 --- /dev/null +++ b/boards/common/frdm/dist/openocd-klx.cfg @@ -0,0 +1,24 @@ +# +# 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. + +# CMSIS-DAP (DAPLink) compatible OpenSDA firmware binary images can be found at: +# http://www.nxp.com/opensda + +# Kinetis L only supports SWD +transport select swd + +# Kinetis L series CPUs +source [find target/klx.cfg] + +reset_config srst_only + +$_TARGETNAME configure -event gdb-attach { + halt +} +$_TARGETNAME configure -rtos auto -- GitLab