From ba66b4c594e12e4b1dd37168376ded95a8ae4e89 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sat, 1 Mar 2014 13:40:08 -0800 Subject: nrf51: Add UICR writing support SoftDevice stack ihex binary, provided by Nordic expects being able to write data necessary for its correct operation at the adresses inside UICR. This patch exposes UICR region of flash as a second bank on the MCU to facilitate that. Signed-off-by: Andrey Smirnov Change-Id: Idbc140b8de027f60655f78043877b7c054eb06f9 Reviewed-on: http://openocd.zylin.com/2013 Tested-by: jenkins Reviewed-by: Paul Fertser --- tcl/target/nrf51_stlink.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcl') diff --git a/tcl/target/nrf51_stlink.tcl b/tcl/target/nrf51_stlink.tcl index d37ec943..7bd888ec 100644 --- a/tcl/target/nrf51_stlink.tcl +++ b/tcl/target/nrf51_stlink.tcl @@ -66,5 +66,5 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE # non-"hla" targets it would be useful to have the following in the config. # cortex_m reset_config sysresetreq -set _FLASHNAME $_CHIPNAME.flash -flash bank $_FLASHNAME nrf51 0x00000000 0 1 1 $_TARGETNAME +flash bank $_CHIPNAME.flash nrf51 0x00000000 0 1 1 $_TARGETNAME +flash bank $_CHIPNAME.uicr nrf51 0x10001000 0 1 1 $_TARGETNAME -- cgit v1.2.3-18-g5258