Duane Ellis: "target as an [tcl] object" feature.
[fw/openocd] / src / target / target / str730.cfg
index 9965fa3d9f1d30038283a3b782455b2ffa7be643..a65f75a05b5ae8563dfd50408f06953dc8b25e3f 100644 (file)
@@ -1,6 +1,8 @@
 #STR730 CPU
 
-jtag_khz 10, 3000
+
+jtag_khz 3000
+
 
 #use combined on interfaces or targets that can\92t set TRST/SRST separately
 #reset_config trst_and_srst srst_pulls_trst
@@ -14,14 +16,10 @@ jtag_device 4 0x1 0xf 0xe
 jtag_nsrst_delay 500
 jtag_ntrst_delay 500
 
-#target configuration
-daemon_startup reset
-
-#target <type> <startup mode>
-#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
-target arm7tdmi little run_and_halt 0 arm7tdmi
-
-run_and_halt_time 0 30
+target arm7tdmi little 0 arm7tdmi
+[new_target_name] configure -event old-pre_reset { jtag_khz 10 }
+[new_target_name] configure -event old-post_reset { jtag_khz 3000 }
+[new_target_name] configure -event old-gdb_program_config { script event/str730_program.script }
 
 working_area 0 0x40000000 0x4000 nobackup