From: Andreas Färber Date: Tue, 17 Nov 2015 10:59:15 +0000 (+0100) Subject: tcl/target: Add Nordic nRF52 config X-Git-Tag: v0.10.0-rc1~361 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2594c23d780863a8ab3d213217085eae66ab2be3;p=openocd tcl/target: Add Nordic nRF52 config 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 --- 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 +}