tcl/board: update ST NUCLEO-H745ZI-Q configuration file to use dapdirect
[fw/openocd] / tcl / board / topas910.cfg
index ce7c87a49a1fbeb2f68b330ec39522c11e1d53f1..77084a96d600f02c5b03f1633290c505fde56b7e 100644 (file)
@@ -99,7 +99,7 @@ proc topas910_init { } {
        mww 0xf4300004 0x00000000
 
        sleep 10
-#      jtag_khz NNNN
+#      adapter speed NNNN
 
 # remap off in case of IROM boot
        mww 0xf0000004 0x00000001
@@ -107,12 +107,13 @@ proc topas910_init { } {
 }
 
 # comment the following out if usinf J-Link, it soes not support DCC
-arm7_9 dcc_downloads enable       # Enable faster DCC downloads
+arm7_9 dcc_downloads enable       ;# Enable faster DCC downloads
 
 
 #####################
 # Flash configuration
 #####################
 
-#flash bank cfi <base> <size> <chip width> <bus width> <target#>
-flash bank cfi 0x20000000 0x2000000 2 2 0
+#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x20000000 0x2000000 2 2 $_TARGETNAME