Tcl and doc: update to match new 'arm mcr ...' etc
[fw/openocd] / tcl / target / at91r40008.cfg
index fe755b4d96f6ee45ce4ccbdb354de19de343c108..9069ae563b15f3c4cbe375bf3b9929c55f42bf0b 100644 (file)
@@ -43,9 +43,10 @@ $_TARGETNAME configure -event gdb-flash-erase-start {
        mww 0xffe00020 0x00000001
 }
 
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
+$_TARGETNAME configure -work-area-phys 0x3C000 -work-area-size 0x4000 -work-area-backup 0
 
-flash bank cfi 0x10000000 0x400000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x10000000 0x400000 2 2 $_TARGETNAME
 
 # For more information about the configuration files, take a look at:
 # openocd.texi