config: do not use deprecated stm32.cfg
[fw/openocd] / tcl / board / at91rm9200-dk.cfg
index 476f5a80d5fc4549fb8278a86b69a96fb5e61919..f484fded1f78faf5c6b6b83c44817a9844426bc6 100644 (file)
@@ -5,11 +5,15 @@
 #
 # It has atmel at91rm9200 chip.
 source [find target/at91rm9200.cfg]
+
+reset_config trst_and_srst
+
 $_TARGETNAME configure -event gdb-attach { reset init }
 $_TARGETNAME configure -event reset-init { at91rm9200_dk_init }
 
-#flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash_bank cfi 0x10000000 0x00200000 2 2 0
+#flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x10000000 0x00200000 2 2 $_TARGETNAME
 
 
 proc at91rm9200_dk_init { } {