aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/nrf51_stlink.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/target/nrf51_stlink.tcl')
-rw-r--r--tcl/target/nrf51_stlink.tcl4
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