This is an automated email from Gerrit. Andrey Smirnov ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2116
-- gerrit commit 9d4cb60393a3aae3ab8ecf9d948cfd9a1753d9a4 Author: Andrey Smirnov <[email protected]> Date: Wed Apr 16 05:00:45 2014 -0700 tcl/board: Add board configuration for nRF51288-mKIT Add board configuration for Nordic's nRF51288-mKIT devkit, available here: http://mbed.org/platforms/Nordic-nRF51822/ Change-Id: Ib9329307147b1e7be061a5060b4eec8256fe2bd4 Signed-off-by: Andrey Smirnov <[email protected]> diff --git a/tcl/board/nordic_nrf51288_mkit.cfg b/tcl/board/nordic_nrf51288_mkit.cfg new file mode 100644 index 0000000..0f66c0a --- /dev/null +++ b/tcl/board/nordic_nrf51288_mkit.cfg @@ -0,0 +1,11 @@ +# +# Nordic Semiconductor PCA10024 board(aka nRF51288-mKIT) + +# + +source [find interface/cmsis-dap.cfg] + +# chip name +set CHIPNAME NRF51288QFAA + +source [find target/nrf51.cfg] diff --git a/tcl/target/nrf51.cfg b/tcl/target/nrf51.cfg new file mode 100644 index 0000000..4f502d6 --- /dev/null +++ b/tcl/target/nrf51.cfg @@ -0,0 +1,50 @@ +# +# script for Nordic nRF51 series, a CORTEX-M0 chip +# + +source [find target/swj-dp.tcl] + +if { [info exists CHIPNAME] } { + set _CHIPNAME $CHIPNAME +} else { + set _CHIPNAME nrf51 +} + +if { [info exists ENDIAN] } { + set _ENDIAN $ENDIAN +} else { + set _ENDIAN little +} + +# Work-area is a space in RAM used for flash programming +# By default use 2kB +if { [info exists WORKAREASIZE] } { + set _WORKAREASIZE $WORKAREASIZE +} else { + set _WORKAREASIZE 0x800 +} + +if { [info exists CPUTAPID] } { + set _CPUTAPID $CPUTAPID +} else { + set _CPUTAPID 0x0bb11477 +} + +swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID + + +set _TARGETNAME $_CHIPNAME.cpu +target create $_TARGETNAME cortex_m -endian $_ENDIAN -chain-position $_TARGETNAME + +$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0 + +cortex_m reset_config sysresetreq + +flash bank $_CHIPNAME.flash nrf51 0x00000000 0 1 1 $_TARGETNAME +flash bank $_CHIPNAME.uicr nrf51 0x10001000 0 1 1 $_TARGETNAME + +# +# The chip should start up from internal 16Mhz RC, so setting adapter +# clock to 1Mhz should be OK +# +adapter_khz 1000 -- ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
