From 2594c23d780863a8ab3d213217085eae66ab2be3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20F=C3=A4rber?= Date: Tue, 17 Nov 2015 11:59:15 +0100 Subject: [PATCH] tcl/target: Add Nordic nRF52 config MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Base config without flash support for now. Change-Id: I96a5b6ad35e00dc706177ea9dbdffc384ae7f62b Signed-off-by: Andreas Färber Reviewed-on: http://openocd.zylin.com/3110 Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/target/nrf52.cfg | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tcl/target/nrf52.cfg diff --git a/tcl/target/nrf52.cfg b/tcl/target/nrf52.cfg new file mode 100644 index 00000000..c1cbf1a2 --- /dev/null +++ b/tcl/target/nrf52.cfg @@ -0,0 +1,28 @@ +# +# Nordic nRF52 series: ARM Cortex-M4 @ 64 MHz +# + +source [find target/swj-dp.tcl] + +if { [info exists CHIPNAME] } { + set _CHIPNAME $CHIPNAME +} else { + set _CHIPNAME nrf52 +} + +if { [info exists CPUTAPID] } { + set _CPUTAPID $CPUTAPID +} else { + set _CPUTAPID 0x2ba01477 +} + +swj_newdap $_CHIPNAME cpu -expected-id $_CPUTAPID + +set _TARGETNAME $_CHIPNAME.cpu +target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME + +adapter_khz 10000 + +if { ![using_hla] } { + cortex_m reset_config sysresetreq +} -- 2.39.5