diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2014-03-01 13:40:08 -0800 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2014-03-29 07:25:21 +0000 |
commit | ba66b4c594e12e4b1dd37168376ded95a8ae4e89 (patch) | |
tree | f9a32e426c37473d2fa1be255f6e068699a7ad8c /tcl | |
parent | c619f74ca4d952c30f8c629130373d6b54db6c19 (diff) |
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 <andrew.smirnov@gmail.com>
Change-Id: Idbc140b8de027f60655f78043877b7c054eb06f9
Reviewed-on: http://openocd.zylin.com/2013
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r-- | tcl/target/nrf51_stlink.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
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 |