create target/pxa3xx.cfg
[fw/openocd] / tcl / target / lm3s6965.cfg
index c12b48d78a20e81f80a11bd12a0f397d86ce9bb7..02d85d467aaf9cfd5d0188629c5b7141a39ab0cb 100644 (file)
@@ -1,8 +1,8 @@
 # TI/Luminary Stellaris lm3s6965
 
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
+if { [info exists CHIPNAME] } {
+   set  _CHIPNAME $CHIPNAME
+} else {
    set  _CHIPNAME lm3s6965
 }
 
@@ -34,4 +34,5 @@ target create $_TARGETNAME cortex_m3 -chain-position $_CHIPNAME.cpu -variant lm3
 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000
 
 #flash configuration
-flash bank stellaris 0 0 0 0 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME stellaris 0 0 0 0 $_TARGETNAME