lpc2900: use register_commands()
[fw/openocd] / tcl / target / str730.cfg
index fe70802b944a1b748c68e694184140e108ac5f94..6432d1542841e05584a8b3f40edcad6b9f950d5e 100644 (file)
@@ -21,7 +21,6 @@ if { [info exists CPUTAPID] } {
 }
 
 #use combined on interfaces or targets that can't set TRST/SRST separately
-#reset_config trst_and_srst srst_pulls_trst
 reset_config trst_and_srst srst_pulls_trst
 
 #jtag scan chain
@@ -43,5 +42,6 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
 $_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
 
 #flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash bank str7x 0x20000000 0x00040000 0 0 0 STR3x
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME str7x 0x20000000 0x00040000 0 0 0 STR3x