set tname [target number $target_num]
if { 0 == [string compare $eventname "reset"] } {
- $tname configure -event old-post_reset "script $scriptname"
+ $tname configure -event reset-init "script $scriptname"
return
}
if { 0 == [string compare $eventname "post_reset"] } {
- $tname configure -event old-post_reset "script $scriptname"
+ $tname configure -event reset-init "script $scriptname"
return
}
if { 0 == [string compare $eventname "pre_reset"] } {
- $tname configure -event old-pre_reset "script $scriptname"
+ $tname configure -event reset-start "script $scriptname"
return
}
}
foreach t [ target names ] {
- # For compatiblity with 'old scripts'
- $t invoke-event old-pre_reset
-
# New event script.
$t invoke-event reset-start
}
set err [catch "$t arp_waitstate halted 5000"]
# Did it halt?
if { $err == 0 } {
- $t invoke-event old-post_reset
$t invoke-event reset-init
}
}
}
const Jim_Nvp nvp_target_event[] = {
- { .value = TARGET_EVENT_OLD_pre_reset , .name = "old-pre_reset" },
{ .value = TARGET_EVENT_OLD_gdb_program_config , .name = "old-gdb_program_config" },
- { .value = TARGET_EVENT_OLD_post_reset , .name = "old-post_reset" },
{ .value = TARGET_EVENT_OLD_pre_resume , .name = "old-pre_resume" },
global reset_count
set reset_count 0
-[new_target_name] configure -event old-post_reset {
+[new_target_name] configure -event reset-init {
puts "Running reset init script for AT91EB40A"
global reset_count
# Reset script for AT91EB40a
}
-[new_target_name] configure -event old-pre_reset {
+[new_target_name] configure -event reset-start {
global reset_count
set reset_count [expr $reset_count+1]
echo "Testing pre_reset $reset_count !"
#target <type> <endianess> <reset mode> <JTAG pos> <variant>
target arm926ejs little 0 arm926ejs
-[new_target_name] configure -event old-post_reset { script event/at91sam9260_reset.script }
+[new_target_name] configure -event reset-init { script event/at91sam9260_reset.script }
#working area <target#> <address> <size> <backup|nobackup>
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-post_reset { script event/eir-sam7se512_reset.script }
+[new_target_name] configure -event reset-init { script event/eir-sam7se512_reset.script }
working_area 0 0x00200000 0x4000 nobackup
target arm920t little 0 arm920t
-[new_target_name] configure -event old-post_reset { script event/hammer_reset.script }
+[new_target_name] configure -event reset-init { script event/hammer_reset.script }
# speed up memory downloads
arm7 fast_memory_access enable
jtag_device 4 0x1 0xf 0xe
target arm7tdmi little 0 arm7tdmi-s_r4
-[new_target_name] configure -event old-post_reset {
+[new_target_name] configure -event reset-init {
# Force target into ARM state
soft_reset_halt
#do not remap 0x0000-0x0020 to anything but the flash
jtag_device 8 0x0 0x0 0x0
target arm926ejs little 1 arm926ejs
-[new_target_name] configure -event old-post_reset { script event/omap5912_reset.script }
+[new_target_name] configure -event reset-init { script event/omap5912_reset.script }
# omap5912 lcd frame buffer as working area
working_area 0 0x20000000 0x3e800 nobackup
jtag_ntrst_delay 200
target xscale little 0 pxa255
-[new_target_name] configure -event old-post_reset { script event/pxa255_reset.script }
+[new_target_name] configure -event reset-init { script event/pxa255_reset.script }
reset_config trst_and_srst
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-post_reset { script event/sam7x256_reset.script }
+[new_target_name] configure -event reset-init { script event/sam7x256_reset.script }
working_area 0 0x00200000 0x4000 nobackup
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
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 6000 }
+[new_target_name] configure -event reset-start { jtag_khz 10 }
+[new_target_name] configure -event reset-init { jtag_khz 6000 }
[new_target_name] configure -event old-gdb_program_config { script event/str710_program.script }
jtag_ntrst_delay 500
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 reset-start { jtag_khz 10 }
+[new_target_name] configure -event reset-init { jtag_khz 3000 }
[new_target_name] configure -event old-gdb_program_config { script event/str730_program.script }
working_area 0 0x40000000 0x4000 nobackup
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
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 reset-start { jtag_khz 10 }
+[new_target_name] configure -event reset-init { jtag_khz 3000 }
[new_target_name] configure -event old-gdb_program_config { script event/str750_program.script }
working_area 0 0x40000000 0x4000 nobackup
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm966e little 1 arm966e
-[new_target_name] configure -event old-pre_reset { jtag_rclk 16 }
+[new_target_name] configure -event reset-start { jtag_rclk 16 }
-[new_target_name] configure -event old-post_reset {
+[new_target_name] configure -event reset-init {
# We can increase speed now that we know the target is halted.
jtag_rclk 3000
#target <type> <endianess> <reset mode> <JTAG pos> <variant>
target arm926ejs big 0 arm926ejs
-[new_target_name] configure -event old-post_reset { script event/wi-9c_reset.script }
+[new_target_name] configure -event reset-init { script event/wi-9c_reset.script }
#working area <target#> <address> <size> <backup|nobackup>
jtag_device 7 0x1 0x7f 0x7e
target xscale big 0 ixp42x
-[new_target_name] configure -event old-post_reset { script event/xba_revA3.script }
+[new_target_name] configure -event reset-init { script event/xba_revA3.script }
flash bank cfi 0x50000000 0x400000 2 2 0